File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
manifests/v1beta1/components Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 15
15
metadata :
16
16
labels :
17
17
katib.kubeflow.org/component : controller
18
- katib.kubeflow.org/metrics-collector-injection : disabled
19
18
annotations :
20
19
prometheus.io/scrape : " true"
21
20
prometheus.io/port : " 8080"
Original file line number Diff line number Diff line change @@ -60,16 +60,9 @@ webhooks:
60
60
namespaceSelector :
61
61
matchLabels :
62
62
katib.kubeflow.org/metrics-collector-injection : enabled
63
- # Once the AdmissionWebhookMatchConditions feature gate is enabled by default, we should switch to control based on userInfo.
64
- # REF:
65
- # - AdmissionWebhookMatchConditions: https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#matching-requests-matchconditions
66
- # - Tracking issue: https://github.com/kubeflow/katib/issues/2206
67
- objectSelector :
68
- matchExpressions :
69
- - key : katib.kubeflow.org/metrics-collector-injection
70
- operator : NotIn
71
- values :
72
- - disabled
63
+ matchConditions :
64
+ - name : ' exclude-katib-controller'
65
+ expression : ' request.userInfo.username != "system:serviceaccount:kubeflow:katib-controller"'
73
66
rules :
74
67
- apiGroups :
75
68
- " "
You can’t perform that action at this time.
0 commit comments