dependabot[bot]
51895f8619
rebase: bump k8s.io/kubernetes in the k8s-dependencies group
...
Bumps the k8s-dependencies group with 1 update: [k8s.io/kubernetes](https://github.com/kubernetes/kubernetes ).
Updates `k8s.io/kubernetes` from 1.32.3 to 1.33.0
- [Release notes](https://github.com/kubernetes/kubernetes/releases )
- [Commits](https://github.com/kubernetes/kubernetes/compare/v1.32.3...v1.33.0 )
---
updated-dependencies:
- dependency-name: k8s.io/kubernetes
dependency-version: 1.33.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: k8s-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-05-06 11:26:06 +00:00
dependabot[bot]
4147d5d15a
rebase: bump golang.org/x/oauth2 in /actions/retest
...
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2 ) from 0.29.0 to 0.30.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.29.0...v0.30.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
dependency-version: 0.30.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-05-06 06:54:47 +00:00
Niels de Vos
86576b4e11
rbd: include a delay and check for syncing
status after resyncing
...
It may take some time for the RBD-mirror daemon to start syncing the
image. After the resync operation is executed, the status of the resync
is checked with a small delay to prevent subsequent resync calls from
re-starting the resync quickly after each other.
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-05-05 17:28:58 +00:00
Niels de Vos
b0994a5356
rbd: split mirror functions off into rbdMrror type
...
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-05-05 17:28:58 +00:00
Niels de Vos
af4431f60b
rbd: prevent calling mirror.Resync() if the mirror is syncing
...
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-05-05 17:28:58 +00:00
Niels de Vos
04257464bb
rbd: cleanup mirror last-sync-info parsing
...
By introducing a SyncInfo interface, the `getLastSyncInfo` function can
be removed from the csi-addons/rbd package. Getting details from an RBD
mirror status, should be part of the main internal/rbd package, the
CSI-Addons components should only use the internal API, and not add any
parsing logic.
This makes it easier to enhance the SyncInfo interface in the future.
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-05-05 17:28:58 +00:00
Niels de Vos
31da09863e
rbd: do not resize read-only volumes while staging
...
Volumes that were requested with a read-only capability should not be
resized.
Reported-by: Alex Kalenyuk <akalenyu@redhat.com>
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-04-30 13:54:53 +00:00
Niels de Vos
ea7be34396
rbd: use helper functions from csi-common for VolumeCapability checking
...
The internal/csi-common package offers helper functions like
`IsReaderOnly()` and `IsBlockMultiNode()`. These should be used instead
of checking the VolumeCapability that is passed in a request in
different places.
This also suggested that adding the "ro" mount option in
`NodeServer.mountVolumeToStagePath()` is not appropriate, as the
csi-common helper `ConstructMountOptions()` can take care of that
already too.
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-04-30 13:54:53 +00:00
dependabot[bot]
34be059dd5
rebase: bump github.com/aws/aws-sdk-go in the github-dependencies group
...
Bumps the github-dependencies group with 1 update: [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ).
Updates `github.com/aws/aws-sdk-go` from 1.55.6 to 1.55.7
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG_PENDING.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.55.6...v1.55.7 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-version: 1.55.7
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-29 09:17:07 +00:00
Felix Prasse
031e900c7d
doc: Update cephfs caps
...
When cephfs is used with encryption an exclusive lock is acquired. This
needs the execute permission on the metadata pool.
Fixes : #4728
Signed-off-by: Felix Prasse <1330854+flx5@users.noreply.github.com>
2025-04-29 07:32:03 +00:00
ShravaniVangur
c19f47226e
e2e: test for PVC with volumeBindingMode on helm installation
...
Test PVC binding with WaitForFirstConsumer in Helm installation.
Signed-off-by: ShravaniVangur <shravanivangur@gmail.com>
2025-04-24 09:46:29 +00:00
dependabot[bot]
3fa030ead1
rebase: bump github.com/ceph/go-ceph
...
Bumps [github.com/ceph/go-ceph](https://github.com/ceph/go-ceph ) from 0.32.1-0.20250307053135-38b9676b1d4e to 0.33.0.
- [Release notes](https://github.com/ceph/go-ceph/releases )
- [Changelog](https://github.com/ceph/go-ceph/blob/master/docs/release-process.md )
- [Commits](https://github.com/ceph/go-ceph/commits/v0.33.0 )
---
updated-dependencies:
- dependency-name: github.com/ceph/go-ceph
dependency-version: 0.33.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-23 16:50:15 +00:00
Niels de Vos
3622fc4635
ci: add ok-to-test
label after Mergify rephrase
...
Mergify rephrased the status when a PR is the 1st in the queue. Instead
of the "Queue: Embarked in merge train", the status is now reported as
"Queue: Embarked in merge queue".
Because the status did not match the rule in the configuration anymore,
the `ok-to-test` label was not automatically added.
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-04-23 09:10:33 +00:00
Niraj Yadav
20b9ecc15c
helm: mark userID and userKey required in secret
...
This patch marks `userID` and `userKey` required in
helm values.
A release note has been added for the same as well.
Signed-off-by: Niraj Yadav <niryadav@redhat.com>
2025-04-23 09:05:53 +00:00
dependabot[bot]
c82b38deda
rebase: bump google.golang.org/grpc from 1.71.1 to 1.72.0
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.71.1 to 1.72.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.71.1...v1.72.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-version: 1.72.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-22 10:42:15 +00:00
dependabot[bot]
7ee9fa24dd
rebase: bump golang.org/x/net from 0.37.0 to 0.38.0 in /e2e
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.37.0...v0.38.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.38.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-22 05:52:04 +00:00
Niels de Vos
20f31566c8
ci: install awk in Fedora test container-image
...
Fedora 42 has been released, and its container-image does not seem to
include `awk` anymore. `awk` is used during the preparation phase of the
golangci-lint test, and possibly others.
By installing `awk` in the test container-image, all scripts seem to
work well with the Fedora 42 container-image.
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-04-21 05:42:30 +00:00
dependabot[bot]
f47ae5e991
rebase: bump golang.org/x/net from 0.36.0 to 0.38.0 in /api
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.36.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.36.0...v0.38.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.38.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-17 11:20:30 +00:00
dependabot[bot]
72c19ab743
rebase: bump the github-dependencies group with 3 updates
...
Bumps the github-dependencies group with 3 updates: [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go ), [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2 ) and [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ).
Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.8.2 to 1.9.0
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases )
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md )
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azidentity/v1.8.2...sdk/azcore/v1.9.0 )
Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.33.18 to 1.33.19
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/sns/v1.33.18...service/sns/v1.33.19 )
Updates `github.com/prometheus/client_golang` from 1.21.1 to 1.22.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.21.1...v1.22.0 )
---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
dependency-version: 1.9.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-dependencies
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
dependency-version: 1.33.19
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-dependencies
- dependency-name: github.com/prometheus/client_golang
dependency-version: 1.22.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-16 17:06:54 +00:00
dependabot[bot]
0b811ff8b1
rebase: bump golang.org/x/net in the golang-dependencies group
...
Bumps the golang-dependencies group with 1 update: [golang.org/x/net](https://github.com/golang/net ).
Updates `golang.org/x/net` from 0.38.0 to 0.39.0
- [Commits](https://github.com/golang/net/compare/v0.38.0...v0.39.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.39.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: golang-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-16 16:33:04 +00:00
Rakshith R
86f2ad9e0d
util: fix bug in health checker
...
This commit fixes a bug in health checker that
caused shared checker to get keyed with volumeID+volumepath
instead of just volumeID and the other way around
for non-shared checkers.
Signed-off-by: Rakshith R <rar@redhat.com>
2025-04-14 14:55:56 +00:00
dependabot[bot]
98a2256e4d
rebase: bump the golang-dependencies group across 1 directory with 3 updates
...
Bumps the golang-dependencies group with 2 updates in the / directory: [golang.org/x/crypto](https://github.com/golang/crypto ) and [golang.org/x/net](https://github.com/golang/net ).
Updates `golang.org/x/crypto` from 0.36.0 to 0.37.0
- [Commits](https://github.com/golang/crypto/compare/v0.36.0...v0.37.0 )
Updates `golang.org/x/net` from 0.37.0 to 0.38.0
- [Commits](https://github.com/golang/net/compare/v0.37.0...v0.38.0 )
Updates `golang.org/x/sys` from 0.31.0 to 0.32.0
- [Commits](https://github.com/golang/sys/compare/v0.31.0...v0.32.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.37.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: golang-dependencies
- dependency-name: golang.org/x/net
dependency-version: 0.38.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: golang-dependencies
- dependency-name: golang.org/x/sys
dependency-version: 0.32.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: golang-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 07:41:34 +00:00
Rakshith R
73579f94c7
ci: update pr-commentor action for v3.14
...
This commit updates pr-commentor action
for v3.14 release.
Signed-off-by: Rakshith R <rar@redhat.com>
2025-04-10 09:44:37 +00:00
Rakshith R
e4cc034777
doc: update PendingReleaseNotes.md for v3.14
...
Signed-off-by: Rakshith R <rar@redhat.com>
2025-04-10 09:44:37 +00:00
Rakshith R
be3455623e
ci: update mergifyio rules for 3.14 release
...
This commit updates mergifyio rules for
3.14 release.
Signed-off-by: Rakshith R <rar@redhat.com>
2025-04-10 09:44:37 +00:00
Rakshith R
b7c6865456
doc: update the upgrade doc
...
This commit updates the upgrade doc to
prepare for 3.14 release
Signed-off-by: Rakshith R <rar@redhat.com>
2025-04-10 09:44:37 +00:00
Rakshith R
dc9a6ad6d0
doc: update README.md for 3.14
...
This commit updates README.md for 3.14.0 release
Signed-off-by: Rakshith R <rar@redhat.com>
2025-04-10 09:44:37 +00:00
dependabot[bot]
f4cea29ca6
rebase: bump google.golang.org/grpc from 1.71.0 to 1.71.1
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.71.0 to 1.71.1.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.71.0...v1.71.1 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-version: 1.71.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-10 07:57:52 +00:00
ShravaniVangur
0f572b62d1
rebase: update golang.org/x/oauth2 to v0.27.0
...
update golang.org/x/oauth2 wrt CVE-2025-22868
Signed-off-by: ShravaniVangur <shravanivangur@gmail.com>
2025-04-09 15:24:36 +00:00
Niels de Vos
49d094e3d5
e2e: Skip()
inside a test case causes other cases to be skipped
...
The Ginkgo `Skip()` function does not only skip the current `By()`, but
it's parent `It()` function. That means other `By()` tests will not be
run after a `Skip()` was called.
Replacing the `Skip()` with an early return of the function makes sure
that all `By()` tests are executed.
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-04-09 09:22:43 +00:00
dependabot[bot]
25c9c11d23
rebase: bump the github-dependencies group in /e2e with 2 updates
...
Bumps the github-dependencies group in /e2e with 2 updates: [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) and [github.com/onsi/gomega](https://github.com/onsi/gomega ).
Updates `github.com/onsi/ginkgo/v2` from 2.23.3 to 2.23.4
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.23.3...v2.23.4 )
Updates `github.com/onsi/gomega` from 1.36.3 to 1.37.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.36.3...v1.37.0 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-version: 2.23.4
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-dependencies
- dependency-name: github.com/onsi/gomega
dependency-version: 1.37.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-08 17:38:59 +00:00
dependabot[bot]
215280749b
rebase: bump golang.org/x/oauth2 in /actions/retest
...
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2 ) from 0.28.0 to 0.29.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.28.0...v0.29.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
dependency-version: 0.29.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-08 11:47:21 +00:00
dependabot[bot]
a6809328e5
rebase: bump actions/dependency-review-action from 4.5.0 to 4.6.0
...
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action ) from 4.5.0 to 4.6.0.
- [Release notes](https://github.com/actions/dependency-review-action/releases )
- [Commits](3b139cfc5f...ce3cf9537a
)
---
updated-dependencies:
- dependency-name: actions/dependency-review-action
dependency-version: 4.6.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-08 11:14:44 +00:00
dependabot[bot]
bbe0e0375a
rebase: bump github.com/aws/aws-sdk-go-v2/service/sts
...
Bumps the github-dependencies group with 1 update: [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2 ).
Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.33.17 to 1.33.18
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/sns/v1.33.17...service/sns/v1.33.18 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
dependency-version: 1.33.18
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-08 10:42:12 +00:00
Niels de Vos
437d90c84d
rbd: do not start the healer for NBD on non-Kubernetes platforms
...
When running on Docker Swarm, the RBD-healer fails with an error like:
> healer had failures, err failed to get cluster config: unable to load
> in-cluster configuration, KUBERNETES_SERVICE_HOST and
> KUBERNETES_SERVICE_PORT must be defined
Before starting the healer, check if we're running on Kubernetes, so
that non-Kubernetes platforms do not get confusing warnings.
Updates: #3769
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-04-02 13:59:11 +00:00
dependabot[bot]
4b113097be
rebase: bump google.golang.org/protobuf from 1.36.5 to 1.36.6
...
Bumps google.golang.org/protobuf from 1.36.5 to 1.36.6.
---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-02 09:37:52 +00:00
monoamin
71decb822d
rbd: Register FenceController only once
...
Running cephcsi in docker swarm currently requires serving both
the nodeserver and controllerserver over the same socket.
This leads to errors like
> FATAL: [core] grpc: Server.RegisterService found duplicate
> service registration for \"fence.FenceController\""
...since `FenceController` is registererd once per server type.
Commit proposes simple fix by registering `FenceController` only once
when at least one of `IsControllerServer` or `IsNodeServer` is `true`.
Signed-off-by: monoamin <precision1998@gmail.com>
2025-04-01 16:21:40 +00:00
Nikhil-Ladha
23fce43925
rbd: cleanup volume info from group even if image is not part of group
...
we should continue to cleanup the volume info like the
omap data, mappings from the group if the image is not
part of the goup anymore.
Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
2025-04-01 12:34:03 +00:00
dependabot[bot]
2fe7dbe2af
rebase: bump the github-dependencies group in /e2e with 2 updates
...
Bumps the github-dependencies group in /e2e with 2 updates: [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) and [github.com/onsi/gomega](https://github.com/onsi/gomega ).
Updates `github.com/onsi/ginkgo/v2` from 2.23.0 to 2.23.3
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.23.0...v2.23.3 )
Updates `github.com/onsi/gomega` from 1.36.2 to 1.36.3
- [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.36.2...v1.36.3 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-dependencies
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-28 16:11:09 +00:00
dependabot[bot]
9002d95e53
rebase: bump sigs.k8s.io/controller-runtime
...
Bumps the k8s-dependencies group with 1 update: [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime ).
Updates `sigs.k8s.io/controller-runtime` from 0.20.3 to 0.20.4
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases )
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md )
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.20.3...v0.20.4 )
---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: k8s-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-28 10:40:59 +00:00
Praveen M
c1564a135f
ci: use ceph-csi-operator latest tag
...
Use the main branch instead of the release till the following fixes
are available in next release (> v0.2.0)
- https://github.com/ceph/ceph-csi-operator/pull/206
- https://github.com/ceph/ceph-csi-operator/pull/207
Signed-off-by: Praveen M <m.praveen@ibm.com>
2025-03-28 06:23:44 +00:00
Praveen M
0f6b93ed17
e2e: handle ceph-csi-operator deployment changes
...
This commits adds e2e/operator.go containing utility
methods specific to the operator.
Signed-off-by: Praveen M <m.praveen@ibm.com>
2025-03-28 06:23:44 +00:00
Praveen M
954f36520b
ci: script to deploy ceph-csi via ceph-csi-operator
...
Signed-off-by: Praveen M <m.praveen@ibm.com>
2025-03-28 06:23:44 +00:00
Niels de Vos
3f33e87e70
rbd: improve the description for GetID() and GetName() interfaces
...
The `GetID()` and `GetName()` functions can be confusing, as names and
ID's are not always distinctive enough. The name is used to reference an
object that exists in a pool. The ID the CSI-handle formatted and can be
used to locate the entry for the object in the journal.
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-03-27 14:09:44 +00:00
Niels de Vos
63df17171a
rbd: use the existing VolumeGroup if contents are matching
...
When a VolumeGroup has been created through the CSI-Addons API, the
VolumeGroupSnapshot CSI API will now use the existing VolumeGroup. There
are checks in place to validate that the Volumes in the VolumeGroup
match the Volumes in the VolumeGroupSnapshot request.
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-03-27 14:09:44 +00:00
Niels de Vos
e489413dbd
rbd: introduce functions for comparing Volumes in a VolumeGroup
...
CompareVolumesInGroup() verifies that all the volumes are part of the
given VolumeGroup. It does so by obtaining the VolumeGroupID for each
volume with GetVolumeGroupByID().
The helper VolumesInSameGroup() verifies that all volumes belong to the
same (or no) VolumeGroup. It can be called by CSI(-Addons) procedures
before acting on a VolumeGroup.
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-03-27 14:09:44 +00:00
Niels de Vos
32285c8365
rbd: add MakeVolumeGroupID() utility function
...
The Manager.MakeVolumeGroupID() function can be used to build a CSI
VolumeGroupID from the backend (pool and name of the RBD-group). This
will be used when checking if an RBD-image belongs to a group already.
It is also possible to resolve the VolumeGroup by passing the
VolumeGroupID to the existing Manager.GetVolumeGroupByID() function.
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-03-27 14:09:44 +00:00
Niels de Vos
a8ee0fe304
rbd: add Manager.getVolumeGroupNamePrefix()
...
The `prefix` is passed to several functions, but it can easily be
obtained with a small helper function. This makes calling the functions
a little simpler.
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-03-27 14:09:44 +00:00
Niels de Vos
45c91ab0f1
rbd: prevent panic in CreateVolumeGroup if volumeID was not found
...
When an incorrect volumeID is passed while creating a VolumeGroup, the
`.Destroy()` function caused a panic. By appending each volume to the
volumes slice, the slice won't contain any `nil` volumes anymore.
Signed-off-by: Niels de Vos <ndevos@ibm.com>
2025-03-27 14:09:44 +00:00
Nikhil-Ladha
d10c83eeae
ci: fix codespell and lint issues
...
fix codespell for "respository" and update ignore word list.
Fix extra whitespace lint issue from "tracevol.py" script
Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
2025-03-27 11:04:07 +00:00