You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,8 @@ Read more about how to install the example webhook [here](deploy/kubernetes/webh
111
111
112
112
*`--kubeconfig <path>`: Path to Kubernetes client configuration that the webhook uses to connect to Kubernetes API server. When omitted, default token provided by Kubernetes will be used. This option is useful only when the snapshot controller does not run as a Kubernetes pod, e.g. for debugging.
113
113
114
+
*`--prevent-volume-mode-conversion`: Boolean that prevents an unauthorised user from modifying the volume mode when creating a PVC from an existing VolumeSnapshot. Only present as an alpha feature in `v6.0.0` and above.
115
+
114
116
#### Validating Webhook Validations
115
117
116
118
##### Volume Snapshot
@@ -122,9 +124,10 @@ Read more about how to install the example webhook [here](deploy/kubernetes/webh
122
124
##### Volume Snapshot Content
123
125
124
126
* Spec.VolumeSnapshotRef.Name must not be an empty string on creation
125
-
* Spec.VolumeSnapshotRef.Namespace must not be an empty stringon creation
127
+
* Spec.VolumeSnapshotRef.Namespace must not be an empty string on creation
126
128
* Spec.Source.VolumeHandle must not be changed on update requests
127
129
* Spec.Source.SnapshotHandle must not be changed on update requests
130
+
* Spec.SourceVolumeMode must not be changes on update requests
128
131
129
132
##### Volume Snapshot Classes
130
133
@@ -173,6 +176,8 @@ Other than this, the NODE_NAME environment variable must be set where the CSI sn
173
176
174
177
*`--enable-distributed-snapshotting` : Enables each node to handle snapshots for the volumes local to that node. Off by default. It should be set to true only if `--node-deployment` parameter for the csi external snapshotter sidecar is set to true. See https://github.com/kubernetes-csi/external-snapshotter/blob/master/README.md#distributed-snapshotting for details.
175
178
179
+
*`--prevent-volume-mode-conversion`: Boolean that prevents an unauthorised user from modifying the volume mode when creating a PVC from an existing VolumeSnapshot. Only present as an alpha feature in `v6.0.0` and above.
180
+
176
181
#### Other recognized arguments
177
182
*`--kubeconfig <path>`: Path to Kubernetes client configuration that the snapshot controller uses to connect to Kubernetes API server. When omitted, default token provided by Kubernetes will be used. This option is useful only when the snapshot controller does not run as a Kubernetes pod, e.g. for debugging.
0 commit comments