Skip to content

Commit f0bbbaa

Browse files
Merge pull request #1509 from black-dragon74/revert-pvkr-annotation
Revert "Annotate RBD storageclasses for keyrotation"
2 parents 90cdcd1 + d979460 commit f0bbbaa

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

packages/ocs/storage-class/mutators.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,8 @@ export const addReclaimSpaceAnnotation = (sc: StorageClass): StorageClass => {
4444
return sc;
4545
};
4646

47-
export const addEncryptionKeyRotationAnnotation = (
48-
sc: StorageClass
49-
): StorageClass => {
50-
if (
51-
sc?.parameters?.hasOwnProperty('encrypted') &&
52-
sc?.parameters?.['encrypted'] === 'true'
53-
) {
54-
sc.metadata.annotations = {
55-
...getAnnotations(sc, {}),
56-
'keyrotation.csiaddons.openshift.io/schedule': '@weekly',
57-
};
58-
}
59-
60-
return sc;
61-
};
62-
6347
export const addRBDAnnotations = (sc: StorageClass): StorageClass => {
6448
sc = addKubevirtAnnotations(sc);
6549
sc = addReclaimSpaceAnnotation(sc);
66-
sc = addEncryptionKeyRotationAnnotation(sc);
6750
return sc;
6851
};

0 commit comments

Comments
 (0)