Skip to content

Commit d084a75

Browse files
committed
Block webhook in kube-system ns
1 parent 6729f7e commit d084a75

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

deployments/kai-scheduler/templates/binder-webhook.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ webhooks:
2121
- key: kubernetes.io/metadata.name
2222
operator: NotIn
2323
values:
24+
- kube-system
2425
- '{{ .Release.Namespace }}'
2526
reinvocationPolicy: IfNeeded
2627
rules:
@@ -54,6 +55,7 @@ webhooks:
5455
- key: kubernetes.io/metadata.name
5556
operator: NotIn
5657
values:
58+
- kube-system
5759
- '{{ .Release.Namespace }}'
5860
rules:
5961
- apiGroups:

deployments/kustomization/binder-webhook/mutating-webhook-patch.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ webhooks:
1717
- key: kubernetes.io/metadata.name
1818
operator: NotIn
1919
values:
20+
- kube-system
2021
- "{{ .Release.Namespace }}"

deployments/kustomization/binder-webhook/validating-webhook-patch.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ webhooks:
1717
- key: kubernetes.io/metadata.name
1818
operator: NotIn
1919
values:
20+
- kube-system
2021
- "{{ .Release.Namespace }}"

0 commit comments

Comments
 (0)