-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to disable KeyRotation #659
Add option to disable KeyRotation #659
Conversation
TestingUsing RBACs
Using annotationsDisable key rotation❯ oc get encryptionkeyrotationcronjobs
NAME SCHEDULE SUSPEND ACTIVE LASTSCHEDULE AGE
rbd-pvc-1730200402 */22 * * * * 6s
❯ oc annotate sc/rook-ceph-block "keyrotation.csiaddons.openshift.io/enable=false" --overwrite
storageclass.storage.k8s.io/rook-ceph-block annotated
❯ oc get encryptionkeyrotationcronjobs
No resources found in rook-ceph namespace. Logs:
Enable key rotation❯ oc annotate sc/rook-ceph-block "keyrotation.csiaddons.openshift.io/enable=true" --overwrite
storageclass.storage.k8s.io/rook-ceph-block annotated
❯ oc get encryptionkeyrotationcronjobs
NAME SCHEDULE SUSPEND ACTIVE LASTSCHEDULE AGE
rbd-pvc-1730200430 */22 * * * * 3 Logs:
|
internal/controller/csiaddons/persistentvolumeclaim_controller.go
Outdated
Show resolved
Hide resolved
f0e7c46
to
1f38728
Compare
internal/controller/csiaddons/persistentvolumeclaim_controller.go
Outdated
Show resolved
Hide resolved
internal/controller/csiaddons/persistentvolumeclaim_controller.go
Outdated
Show resolved
Hide resolved
internal/controller/csiaddons/persistentvolumeclaim_controller.go
Outdated
Show resolved
Hide resolved
03c777a
to
b457994
Compare
internal/controller/csiaddons/persistentvolumeclaim_controller.go
Outdated
Show resolved
Hide resolved
internal/controller/csiaddons/persistentvolumeclaim_controller.go
Outdated
Show resolved
Hide resolved
internal/controller/csiaddons/persistentvolumeclaim_controller.go
Outdated
Show resolved
Hide resolved
Also don't forget to add the new annotation to the documentation! |
726852e
to
cd47c4e
Compare
internal/controller/csiaddons/persistentvolumeclaim_controller.go
Outdated
Show resolved
Hide resolved
af0d57d
to
8323b96
Compare
8323b96
to
b450029
Compare
LGTM, @black-dragon74 please add doc for disable option. |
99e723c
to
27be7bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@nixpanic PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@Mergifyio rebase |
This commit adds the option to disable the keyrotation by annotating the storageclasses, namespaces or PVCs with:`keyrotation.csiaddons-opneshift.io/enable: false` Signed-off-by: Niraj Yadav <[email protected]>
Signed-off-by: Niraj Yadav <[email protected]>
✅ Branch has been successfully rebased |
27be7bc
to
54fb0a8
Compare
This patch adds the option to disable the keyrotation
by annotating the storageclasses, namespaces or PVCs
with:
keyrotation.csiaddons-opneshift.io/enable: false