Closed zdtsw closed 2 months ago
Probably autogenerated webhook kustomization should be adjusted as well,
diff --git a/config/webhook/kustomization.yaml b/config/webhook/kustomization.yaml
index 8428859f524d..2bdf5ab1af40 100644
--- a/config/webhook/kustomization.yaml
+++ b/config/webhook/kustomization.yaml
@@ -5,5 +5,3 @@ resources:
commonAnnotations:
service.beta.openshift.io/inject-cabundle: "true"
-configurations:
-- kustomizeconfig.yaml
diff --git a/config/webhook/kustomizeconfig.yaml b/config/webhook/kustomizeconfig.yaml
deleted file mode 100644
index 25e21e3c963f..000000000000
--- a/config/webhook/kustomizeconfig.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-# the following config is for teaching kustomize where to look at when substituting vars.
-# It requires kustomize v2.1.0 or newer to work properly.
-nameReference:
-- kind: Service
- version: v1
- fieldSpecs:
- - kind: MutatingWebhookConfiguration
- group: admissionregistration.k8s.io
- path: webhooks/clientConfig/service/name
- - kind: ValidatingWebhookConfiguration
- group: admissionregistration.k8s.io
- path: webhooks/clientConfig/service/name
-
-namespace:
-- kind: MutatingWebhookConfiguration
- group: admissionregistration.k8s.io
- path: webhooks/clientConfig/service/namespace
- create: true
-- kind: ValidatingWebhookConfiguration
- group: admissionregistration.k8s.io
- path: webhooks/clientConfig/service/namespace
- create: true
-
-varReference:
-- path: metadata/annotations
BTW, wondering how namespace and name works without it
diff --git a/config/webhook/kustomizeconfig.yaml b/config/webhook/kustomizeconfig.yaml
not sure i understand this "diff" part: where the changes come from?
diff --git a/config/webhook/kustomizeconfig.yaml b/config/webhook/kustomizeconfig.yaml
not sure i understand this "diff" part: where the changes come from?
I removed the file and run git diff. But may be just varReference
, since it is related to obsoleted vars
should be removed. About nameReference and namespace I should check more carefully.
Let's do it separately
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: ykaliuta
The full list of commands accepted by this bot can be found here.
The pull request process is described here
/retest-required
Description
How Has This Been Tested?
Screenshot or short clip
Merge criteria