cluster/gce: add match conditions to PersistentVolume labeling webhook

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
This commit is contained in:
Andrew Sy Kim 2023-11-02 17:04:25 +00:00
parent 6eee80fa9a
commit 84da8e6a53

View File

@ -16,6 +16,9 @@ webhooks:
clientConfig:
url: "https://127.0.0.1:9001/admit"
caBundle: "__CLOUD_PVL_ADMISSION_CA_CERT__"
matchConditions:
- name: "only-gce"
expression: "has(object.spec.gcePersistentDisk)"
admissionReviewVersions: ["v1"]
sideEffects: None
timeoutSeconds: 5