Skip to content

Commit 37755f9

Browse files
authored
Merge pull request #2422 from zhixian82/automated-cherry-pick-of-#2401-#2258-origin-release-1.0
Automated cherry pick of #2401: fix: remove unexpected validate webhook in configuration #2258: fix: create cluster apiservice in post install job
2 parents fefdd84 + 947fbeb commit 37755f9

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

charts/templates/_karmada_webhook_configuration.tpl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,6 @@ webhooks:
5151
sideEffects: None
5252
admissionReviewVersions: ["v1"]
5353
timeoutSeconds: 3
54-
- name: clusteroverridepolicy.karmada.io
55-
rules:
56-
- operations: ["CREATE", "UPDATE"]
57-
apiGroups: ["policy.karmada.io"]
58-
apiVersions: ["*"]
59-
resources: ["clusteroverridepolicies"]
60-
scope: "Cluster"
61-
clientConfig:
62-
url: https://karmada-webhook.karmada-system.svc:443/validate-clusteroverridepolicy
63-
{{- include "karmada.webhook.caBundle" . | nindent 6 }}
64-
failurePolicy: Fail
65-
sideEffects: None
66-
admissionReviewVersions: ["v1"]
67-
timeoutSeconds: 3
6854
- name: work.karmada.io
6955
rules:
7056
- operations: ["CREATE", "UPDATE"]
@@ -143,6 +129,20 @@ webhooks:
143129
sideEffects: None
144130
admissionReviewVersions: ["v1"]
145131
timeoutSeconds: 3
132+
- name: clusteroverridepolicy.karmada.io
133+
rules:
134+
- operations: ["CREATE", "UPDATE"]
135+
apiGroups: ["policy.karmada.io"]
136+
apiVersions: ["*"]
137+
resources: ["clusteroverridepolicies"]
138+
scope: "Cluster"
139+
clientConfig:
140+
url: https://{{ $name }}-webhook.{{ $namespace }}.svc:443/validate-clusteroverridepolicy
141+
{{- include "karmada.webhook.caBundle" . | nindent 6 }}
142+
failurePolicy: Fail
143+
sideEffects: None
144+
admissionReviewVersions: ["v1"]
145+
timeoutSeconds: 3
146146
- name: config.karmada.io
147147
rules:
148148
- operations: ["CREATE", "UPDATE"]

charts/templates/post-install-job.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ data:
1212
{{- include "karmada.webhook.configuration" . | nindent 4 }}
1313
{{- print "system-namespace.yaml: " | nindent 2 }} |-
1414
{{- include "karmada.systemNamespace" . | nindent 4 }}
15+
{{- print "karmada-aggregated-apiserver-apiservice.yaml: " | nindent 6 }} |-
16+
{{- include "karmada.apiservice" . | nindent 8 }}
1517
---
1618
apiVersion: v1
1719
kind: ConfigMap

0 commit comments

Comments
 (0)