moricho
2beb731a7e
go: move to gomodules
...
This switches Rook to use `go mod` instead of `dep` for
dependencies management.
Signed-off-by: moricho <ikeda.morito@gmail.com >
2020-03-17 16:47:53 +09:00
Sébastien Han
9cfdc4f51b
ceph: detect mount fstype more accurately
...
Using `df --type ceph` has proven not to be reliable enough, so let's try
with findmnt.
Closes: https://github.com/rook/rook/issues/4107
Signed-off-by: Sébastien Han <seb@redhat.com >
2019-10-16 17:58:54 +02:00
travisn
f5eb11d863
tests: add logging to track down file test cleanup issue
...
Adding more logging until we can track down the file-test pod
cleanup issue
Signed-off-by: travisn <tnielsen@redhat.com >
2019-10-15 17:13:25 -06:00
Maksim Nabokikh
179e1a310d
ceph: Add dynamic flexvolume expansion
...
Allow to dynamic resize of rook volumes
Signed-off-by: Maksim Nabokikh <maksim.nabokikh@flant.com >
2019-09-05 02:40:22 +04:00
travisn
fd341ae928
ceph: set the fsgroup only on the top level of the mount
...
If setting the fsgroup recursively on a shared filesystem mount is
not desirable, the fsgroup capability on the flex driver
should first be disabled in the operator env vars. Now the driver
will apply the fsgroup only at the top level instead of
recursively for the entire shared filesystem.
Signed-off-by: travisn <tnielsen@redhat.com >
2019-06-06 17:17:29 -07:00
travisn
7cdfcc395a
write flex settings to config file instead of env vars
...
The flex settings cannot be passed to the driver with environment variables.
There is no context available for returning the flex settings except
that the flex driver will look in a config file in the same directory.
These settings must be valid or else the driver will return the default
settings.
Signed-off-by: travisn <tnielsen@redhat.com >
2019-04-30 14:50:43 -06:00
travisn
20f6af8a4d
remove obsolete flex driver version checks
...
The flex driver no longer needs to check whether a kubelet
restart is needed or whether the namespace-specific driver
can be supported. The copy of k8s 1.13 types can also
be removed since we have updated to a newer k8s client.
Signed-off-by: travisn <tnielsen@redhat.com >
2019-04-30 14:50:33 -06:00
travisn
bc87b440fb
update to the k8s 1.14 client libraries
...
Signed-off-by: travisn <tnielsen@redhat.com >
2019-04-18 07:51:41 -06:00
travisn
91e9a5cd04
reference K8s1.13 and client-go 1.10 and the external provisioner for flex
...
Signed-off-by: travisn <tnielsen@redhat.com >
2019-04-18 07:51:41 -06:00
travisn
bd25630d91
allow disabling of fsGroup in the flex driver
...
Signed-off-by: travisn <tnielsen@redhat.com >
2019-01-24 07:53:44 -07:00
Madhu Rajanna
6349ce8e0d
cassandra,edgefs: Fix misspelled words
...
This PR fixes the misspelled words in comment
and struct fields.
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com >
2019-01-17 15:40:05 +05:30
Timothy Allen
ae46f31882
Add ENV flag for selinux labeling
...
Signed-off-by: Timothy Allen <kex.allen13@gmail.com >
2019-01-10 15:05:39 +00:00
travisn
a29b876337
rename ceph v1 crds with the ceph prefix
...
Signed-off-by: travisn <tnielsen@redhat.com >
2018-12-05 16:23:55 -07:00
Alexander Trost
ac19f85fbb
Allow specifying custom Ceph user and secret name for mounting
...
Introduce mount security mode for basic multi tenancy
Fixes #2164 .
This adds three new parameters/options to StorageClass/flexvolume entry:
* `mountUser`
* `mountSecret`
* `mountSecretNamespace`
Signed-off-by: Alexander Trost <galexrt@googlemail.com >
2018-12-04 20:17:15 +01:00
Angus Lees
72278a7e15
Disable seLinux relabelling
...
seLinux relabelling breaks (times out) on large filesystems, and
doesn't work with cephfs ReadWriteMany volumes (last relabel wins).
See also https://github.com/kubernetes/kubernetes/blob/02cca1f11a8ae570369540564604d0cde06e0720/pkg/volume/cephfs/cephfs.go#L209
Fixes #2177
Signed-off-by: Angus Lees <gus@inodes.org >
2018-10-15 21:40:56 +11:00
Huamin Chen
97d20f9833
don't print console logs during flex driver call
...
Signed-off-by: Huamin Chen <hchen@redhat.com >
2018-10-03 08:46:28 -04:00
Huamin Chen
3832708c4f
Revert "log the output of blkid to see if device should be formatted"
...
This reverts commit c67542829b .
Signed-off-by: Huamin Chen <hchen@redhat.com >
2018-09-26 12:42:49 +00:00
travisn
c67542829b
log the output of blkid to see if device should be formatted
...
Signed-off-by: travisn <tnielsen@redhat.com >
2018-09-14 08:27:02 -06:00
Dennis Chen
3f46c44ee8
Correct the rookflex usage information
...
As the `rookflex` volume plugin, the root command should be
`rookflex` instead of `rook`, else we'll get below confusing
message:
```
...bin/#./rookflex help
Rook Flex volume plugin
Usage:
rook [command]
Available Commands:
help Help about any command
init Initialize the volume plugin
mount Mounts the volume to the pod volume
unmount Unmounts the pod volume
```
Signed-off-by: Dennis Chen <dennis.chen@arm.com >
2018-08-23 16:24:00 +08:00
Jared Watts
f3df68e573
operator, daemon, and cmd updates for supporting multiple storage types
...
Signed-off-by: Jared Watts <jbw976@gmail.com >
2018-05-18 14:32:20 -07:00
travisn
7bd850e7fc
flex: base driver name on the namespace
...
Signed-off-by: travisn <tnielsen@redhat.com >
2018-05-11 14:02:16 -07:00
rohan47
c80decbba8
updated storage class parameter clusterName to clusterNamespace
...
cluster name and namespace are required to match.
clusterName still works for backward compatiblity
Signed-off-by: rohan47 <rohanrgupta1996@gmail.com >
2018-04-25 18:24:13 +00:00
travisn
b121357215
api: completed removal of api service
...
remove dependency of e2e tests on api service
remove the obsolete model package
Signed-off-by: travisn <tnielsen@redhat.com >
2018-03-16 08:31:34 -07:00
Travis Nielsen
6465b1da28
logs: init flags parsing to avoid logged error
...
Signed-off-by: Travis Nielsen <travisn@live.com >
2018-02-12 12:51:31 -08:00
Travis Nielsen
0298d1fb29
completed conversion for k8s 1.8 client conversion
...
move core rados packages under cluster folder
move daemons under daemon pkg
rename flex crd package to attachment
pin dep to k8s 1.8.2
2017-12-11 14:35:07 -08:00
Bassam Tabbara
9b611abda7
inital attempt at upgrading to kubernetes 1.8
...
Update all K8s dependencies to the release-1.8 branches.
Added build and make file support for generating code.
Fixed our use of client-go to match changes in new release.
2017-12-11 14:34:24 -08:00
Steve Leon
7b71baba06
Handle cephfs mount for kernel older than 4.7
...
- If kernel is older than 4.7, a warning message
will be printed in the agent's logs
Fixes https://github.com/rook/rook/issues/1044
2017-11-06 17:50:15 -08:00
Steve Leon
9e1c6af0ad
Adding support to mount cephfs in rook flexvolume
...
fixes https://github.com/rook/rook/issues/1008
2017-10-26 13:50:04 -07:00
Steve Leon
ad459085ec
Clean up files in rookflex
...
- Consolidate commands that are not supported in flexvolume
2017-10-17 14:30:06 -07:00
Steve Leon
08f67ba4c9
Allow attach request to proceed when VolumeAttachment is already created
...
Fixes https://github.com/rook/rook/issues/1082
2017-10-16 17:39:36 -07:00
Steve Leon
e290cee720
Executing modprobe in agent pod
...
Fixes https://github.com/rook/rook/issues/1062
2017-10-12 14:44:26 -07:00
Steve Leon
9f4df4f7ad
Renaming flexvolume to rookflex
...
Fixes https://github.com/rook/rook/issues/1052
2017-10-12 13:19:55 -07:00