Skip to content

Commit

Permalink
PATCH: Add openshift namespaces exclusions to prevent kueue validatin…
Browse files Browse the repository at this point in the history
…g and mutating webhooks to interfere with system jobs
  • Loading branch information
akram authored and ChristianZaccaria committed Nov 29, 2024
1 parent d1f4cfc commit db8b9da
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions config/rhoai/mutating_webhook_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,20 @@ metadata:
webhooks:
- $patch: delete
name: mpod.kb.io
- name: mjob.kb.io
namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: NotIn
values:
- kube-system
- kube-public
- openshift
- openshift-config
- openshift-config-managed
- openshift-etcd
- openshift-image-registry
- openshift-marketplace
- openshift-monitoring
- openshift-operator-lifecycle-manager
- openshift-operators
17 changes: 17 additions & 0 deletions config/rhoai/validating_webhook_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,20 @@ metadata:
webhooks:
- $patch: delete
name: vpod.kb.io
- name: vjob.kb.io
namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: NotIn
values:
- kube-system
- kube-public
- openshift
- openshift-config
- openshift-config-managed
- openshift-etcd
- openshift-image-registry
- openshift-marketplace
- openshift-monitoring
- openshift-operator-lifecycle-manager
- openshift-operators

0 comments on commit db8b9da

Please sign in to comment.