13f1611396
deploy: correct typos in aws encryption yamls
...
The field name was wrong in example yaml and this correct the same
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-02-02 14:26:27 +00:00
66f8a51c93
doc: clarified subvol in shallow-ro-vol.md
...
instead of subvol, subvolume has been used for consistency across
the doc
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-02-02 13:46:52 +00:00
e1cbd90c0b
doc: correct typo in hpcs or key protect design
...
File name is corrected and also a typo in the same
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-02-02 13:46:52 +00:00
28fef9b379
cleanup: remove thick provisioning code
...
This commit removes the thick provisioning
code as thick provisioning is deprecated in
cephcsi 3.5.0.
fixes : #2795
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-28 11:17:15 +00:00
4ee4fdfebd
rbd: unexport SecretsKMS from KMS implementation
...
This commit unexport SecretsKMS from KMS implementation.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-01-28 06:55:12 +00:00
4058246637
rbd: unexport vaultTokenSA struct from KMS implementation
...
This commit unexport the vaultTokenSA from the vault KMS
implementation
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-01-28 06:55:12 +00:00
b75c562217
rbd: Unexport VaultTenantSA struct from KMS implementation
...
This commit unexport VaultTenantSA struct from KMS implemenation
of Vault KMS.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-01-28 06:55:12 +00:00
c8a3b9352e
rbd: Unexport SecretsMetadataKMS struct
...
This commit unexport SecretsMetadataKMS struct from KMS
implementation
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-01-28 06:55:12 +00:00
3f18d6e4b4
rbd: Unexport IntegratedDEK struct from kms
...
This commit unexport IntegratedDEK struct from KMS
implementation
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-01-28 06:55:12 +00:00
6141aabcd2
rbd: unexport KeyProtect kms struct
...
At present the KMS structs are exported and ideally we should be
able to work without exporting the same.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-01-28 06:55:12 +00:00
a86121f756
rbd: unexport aws kms structs
...
At present the KMS structs are exported and ideally we should be
able to work without exporting the same.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-01-28 06:55:12 +00:00
a553157b15
ci: don't dismiss review if PR has not merged
...
Pull requests are not going to be queued if at the same time the pull
request review are dismiss
Original-author: Mehdi ABAAKOUK <sileht@sileht.net >
Signed-off-by: Niels de Vos <ndevos@redhat.com >
2022-01-27 20:57:15 +05:30
177cc078e1
ci: remove duplicate validation DCO in default rule
...
removing duplicated validation of DCO from the default
rule.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-01-27 16:07:45 +01:00
992d257530
cephfs: fix error logging in filesystem.go
...
fix error message logging in filesystem.go
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-27 14:31:12 +00:00
14c008c419
cleanup: use interface in filesystem.go
...
Currently, we are using methods and all the methods
makes a network call to fetch details from the ceph
clusters, its difficult to write test cases for
these functions, if we move to the interfaces
we can make use of mock to write unit testing
for the caller functions.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-27 14:31:12 +00:00
ab20ab728f
rebase: bump github.com/onsi/gomega from 1.17.0 to 1.18.0
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.17.0...v1.18.0 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-27 09:39:21 +00:00
e08084fbb6
e2e: update cephfs data pool name
...
cephfs data pool name is changed from filesystem-data0
to filesystem-replicated in Rook 1.8. updating
the cephcsi helper functions also to use new
pool names.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-27 04:18:01 +00:00
8a479d3865
deploy: use osd as failureDomain for ec pool
...
in Rook 1.8 templates the failureDomain is
set to host for ec pools, as we are using
single node minikube cluster, setting the
failureDomain for osd.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-27 04:18:01 +00:00
0d6db19252
deploy: disable startupProbe
...
As startup probe is failing on the ceph pods,
disabling startupProbe in ceph cluster CRD.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-27 04:18:01 +00:00
e5100eacd4
deploy: add check for device-health-metrics pool
...
Rook creates a detault pool with name
device_health_metrics for
device-health-metrics CephBlockPool CR.
device-health-metrics is added to cluster-test.yaml
in Rook 1.8
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-27 04:18:01 +00:00
493db5c183
deploy: log complete ouput of rook operator
...
kubectl log with labels will log only
last 10 lines by default adding tail=-1
to log complete output.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-27 04:18:01 +00:00
25796aa4ea
deploy: update rook version to 1.8.2
...
update rook version to 1.8.2 in build.env
to pick up the latest rook release.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-27 04:18:01 +00:00
04f2261e60
deploy: support rook deployment for v1.8+
...
In Rook v1.8+ the path for the deployment articafts
are changed from `"cluster/examples/kubernetes/ceph`
to `deploy/examples`.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-27 04:18:01 +00:00
c32bf71846
deploy: re-alignment of code in rook.sh
...
currently, rook.sh code is not aligned properly
unside the functions, this commit does
the code alignment.
PS: this is done by vscode for me :)
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-27 04:18:01 +00:00
901a1368ab
rebase: bump k8s.io/kubernetes from 1.23.1 to 1.23.2
...
Bumps [k8s.io/kubernetes](https://github.com/kubernetes/kubernetes ) from 1.23.1 to 1.23.2.
- [Release notes](https://github.com/kubernetes/kubernetes/releases )
- [Commits](https://github.com/kubernetes/kubernetes/compare/v1.23.1...v1.23.2 )
---
updated-dependencies:
- dependency-name: k8s.io/kubernetes
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-26 20:05:06 +00:00
3a445cfc36
deploy: update resizer to 1.4.0
...
updating external resizer image version
from 1.3.0 to latest available release i.e
1.4.0
1.4.0 changelog link
https://github.com/kubernetes-csi/
external-resizer/blob/master/CHANGELOG/CHANGELOG-1.4.md
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-26 15:22:24 +00:00
f822600689
rbd: change the keyprotect metadata name to ibmkeyprotect
...
To be consistent with other components and also to explictly
state it belong to `ibm keyprotect` service introducing this
change
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-01-26 02:28:05 +00:00
7ff048bf1e
e2e: add podsecuritycontext fsgroup for normal user validation
...
considering the pod has run as normal user, the fsgroup has also
set to the same.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-01-25 16:25:11 +00:00
bf4ba0ec84
rbd: dont attempt explicit permission mod change from the RBD driver
...
currently we are overriding the permission to `0o777` at time of node
stage which is not the correct action. That said, this permission
change causes an extra permission correction at time of nodestaging
by the CO while the FSGROUP change policy has been set to
`OnRootMismatch`.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-01-25 16:25:11 +00:00
5f4c6e033b
rebase: bump github.com/aws/aws-sdk-go from 1.42.37 to 1.42.40
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.42.37 to 1.42.40.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.42.37...v1.42.40 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-25 13:28:05 +00:00
9c1c1306cb
rebase: bump github.com/hashicorp/vault/api from 1.3.0 to 1.3.1
...
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/hashicorp/vault/releases )
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/vault/compare/v1.3.0...v1.3.1 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-25 08:27:29 +00:00
bce5c3dc7c
doc: update upgrade doc for 3.5.1
...
updating upgrade to to point to 3.5.1
for upgrades a 3.5.1 release is out.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-24 12:45:31 +00:00
6df71410e3
doc: update readme for 3.5.1 release
...
updated Readme for 3.5.1 release.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-24 12:45:31 +00:00
f0a2a20466
ci: update minikube to latest release
...
update minikube to latest release i.e
1.25.0
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-24 09:07:32 +00:00
8096dd47e4
cleanup: remove unwanted type declaration
...
removed unwanted int64 type declaration to
fix style check.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-24 05:25:11 +00:00
9c841c83d4
cleanup: rename errorPair to pairError
...
to fix the errname check renaming the
struct.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-24 05:25:11 +00:00
4938fc2ff4
cleanup: use 0o600 intead of 0600
...
as we are using 0o600 in multiple files
use the same in all files which also fixes
go lint issue.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-24 05:25:11 +00:00
c67bacdb11
cleanup: use %s instead of %w for t.Errorf
...
As t.Errorf does not support error-wrapping
directive using %s.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-24 05:25:11 +00:00
813f6c30cc
cleanup: use WriteString instead of Write
...
use WriteString instead of Write for the temp
files.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-24 05:25:11 +00:00
aba6979d29
cleanup: use os.ReadFile to read file
...
as ioutil.ReadFile is deprecated and
suggestion is to use os.ReadFile as
per https://pkg.go.dev/io/ioutil updating
the same.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-24 05:25:11 +00:00
562dff0d19
cleanup: use os.WriteFile to write files
...
as ioutil.WriteFile is deprecated and
suggestion is to use os.WriteFile as
per https://pkg.go.dev/io/ioutil updating
the same.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-24 05:25:11 +00:00
15ed9709d4
ci: skip new checks in golangci-lint
...
skipping new checks in golangci-lint as
its much work to addresses new check errors
in this PR.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-24 05:25:11 +00:00
1a69957e1d
ci: update golangci-lint to 1.43.0
...
As we have latest golangci-lint 1.43.0
using the same in cephcsi.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-24 05:25:11 +00:00
f56ee59515
rebase: bump github.com/aws/aws-sdk-go from 1.42.7 to 1.42.37
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.42.7 to 1.42.37.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.42.7...v1.42.37 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-21 10:25:25 +00:00
6f0087e870
build: use cephcsi image version from build.env
...
we dont need to specify the image version
separately in minikube script, use the image
version defined in the build.env
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-20 17:53:30 +00:00
6bdeffda59
build: pull ceph base image from quay.io
...
pull the ceph image from quay.io instead
of dockerhub.
From ceph doc, the images are available
in both quay and dockerhub
https://docs.ceph.com/en/latest/install/
containers/#official-releases but latest
images are not updated in dockerhub.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com >
2022-01-20 14:28:12 +00:00
0f53f2385f
rebase: bump github.com/prometheus/client_golang from 1.11.0 to 1.12.0
...
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.11.0...v1.12.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-20 07:02:06 +00:00
c313fcd69d
rebase: bump k8s.io/klog/v2 from 2.30.0 to 2.40.1
...
Bumps [k8s.io/klog/v2](https://github.com/kubernetes/klog ) from 2.30.0 to 2.40.1.
- [Release notes](https://github.com/kubernetes/klog/releases )
- [Changelog](https://github.com/kubernetes/klog/blob/main/RELEASE.md )
- [Commits](https://github.com/kubernetes/klog/compare/v2.30.0...v2.40.1 )
---
updated-dependencies:
- dependency-name: k8s.io/klog/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-19 13:25:35 +00:00
bbce265ead
rebase: bump google.golang.org/grpc from 1.42.0 to 1.43.0
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.42.0 to 1.43.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.42.0...v1.43.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-19 08:06:59 +00:00
097e339d69
rbd: lift snapshot, clone and metrics to GA version
...
We have added enough e2e tests and the below functionality is
also proven as working based on the user reports so far. The
support at CO side is also pretty stable for these features.
* snapshot
* clone
* metrics
* RWO/RWX CephFS volumes
This commit lift the support state of above features to GA from next
release onwards.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-01-19 04:35:28 +00:00