Skip to content

Commit da23d64

Browse files
committed
Update annotation
1 parent 9b0f71b commit da23d64

File tree

1 file changed

+9
-7
lines changed
  • keps/sig-storage/3141-prevent-volume-mode-conversion

1 file changed

+9
-7
lines changed

keps/sig-storage/3141-prevent-volume-mode-conversion/README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ need to identify the `VolumeSnapshotContent` mapped to the `VolumeSnapshot`
214214
from which the `PVC` is being created.
215215

216216
Either through software or via manual intervention, the annotation
217-
`snapshot.storage.kubernetes.io/allowVolumeModeChange: true` needs to be applied
217+
`snapshot.storage.kubernetes.io/allow-volume-mode-change: true` needs to be applied
218218
to the `VolumeSnapshotContent`. If the backup software is a privileged user,
219219
it will have `Update` and `Patch` permissions on `VolumeSnapshotContents`.
220220

@@ -289,7 +289,7 @@ like below after this change:
289289
kind: VolumeSnapshotContent
290290
metadata:
291291
annotations:
292-
- snapshot.storage.kubernetes.io/allowVolumeModeChange: "true"
292+
- snapshot.storage.kubernetes.io/allow-volume-mode-change: "true"
293293
...
294294
```
295295
@@ -328,7 +328,7 @@ As part of the preprocessing steps, it will:
328328
2. Get the `Spec.VolumeMode` of the `PVC` being created.
329329
If they do not match:
330330
1. Get all annotations on the `VolumeSnapshotContent` and verify if
331-
`snapshot.storage.kubernetes.io/allowVolumeModeChange: true` exists.
331+
`snapshot.storage.kubernetes.io/allow-volume-mode-change: true` exists.
332332
If it does not exist, block volume provisioning by returning an error.
333333
4. In all other cases, let volume provisioning continue.
334334
@@ -400,9 +400,9 @@ We expect no non-infra related flakes in the last month as a GA graduation crite
400400
401401
The feature flag will be enabled for e2e tests. The tests will attempt to convert volume
402402
mode when creating a `PVC` from a `VolumeSnapshot`:
403-
- With `Spec.SourceVolumeMode` populated and `snapshot.storage.kubernetes.io/allowVolumeModeChange: true`
403+
- With `Spec.SourceVolumeMode` populated and `snapshot.storage.kubernetes.io/allow-volume-mode-change: true`
404404
annotation present.
405-
- With `Spec.SourceVolumeMode` populated but no `snapshot.storage.kubernetes.io/allowVolumeModeChange: true`
405+
- With `Spec.SourceVolumeMode` populated but no `snapshot.storage.kubernetes.io/allow-volume-mode-change: true`
406406
annotation.
407407
- With `Spec.SourceVolumeMode` set to `nil`.
408408
@@ -519,7 +519,7 @@ What signals should users be paying attention to when the feature is young
519519
that might indicate a serious problem?
520520
-->
521521
522-
- persistentvolumeclaim_create_from_snapshot_failed_total
522+
- persistentvolumeclaim_provision_failed_total
523523
524524
###### Were upgrade and rollback tested? Was the upgrade->downgrade->upgrade path tested?
525525
@@ -570,7 +570,7 @@ Recall that end users cannot usually observe component logs or access metrics.
570570
- Event Reason: ProvisioningFailed
571571
- Event Message: ailed to provision volume with StorageClass "csi-hostpath-sc": error getting handle for DataSource Type
572572
VolumeSnapshot by Name new-snapshot-demo: requested volume default/hpvc-restore modifies the mode of the source volume
573-
but does not have permission to do so. snapshot.storage.kubernetes.io/allowVolumeModeChange annotation is not present
573+
but does not have permission to do so. snapshot.storage.kubernetes.io/allow-volume-mode-change annotation is not present
574574
on snapshotcontent snapcontent-8d709f2e-db04-444f-aae2-e17d6c5398dd
575575
576576
@@ -680,6 +680,8 @@ details). For now, we leave it here.
680680
681681
###### How does this feature react if the API server and/or etcd is unavailable?
682682
683+
No new API calls are introduced as part of this feature.
684+
683685
###### What are other known failure modes?
684686
685687
<!--

0 commit comments

Comments
 (0)