mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
cluster/gce: add match conditions to PersistentVolume labeling webhook
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
This commit is contained in:
parent
6eee80fa9a
commit
84da8e6a53
@ -16,6 +16,9 @@ webhooks:
|
|||||||
clientConfig:
|
clientConfig:
|
||||||
url: "https://127.0.0.1:9001/admit"
|
url: "https://127.0.0.1:9001/admit"
|
||||||
caBundle: "__CLOUD_PVL_ADMISSION_CA_CERT__"
|
caBundle: "__CLOUD_PVL_ADMISSION_CA_CERT__"
|
||||||
|
matchConditions:
|
||||||
|
- name: "only-gce"
|
||||||
|
expression: "has(object.spec.gcePersistentDisk)"
|
||||||
admissionReviewVersions: ["v1"]
|
admissionReviewVersions: ["v1"]
|
||||||
sideEffects: None
|
sideEffects: None
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
|
Loading…
Reference in New Issue
Block a user