File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
manifests/v1beta1/components Expand file tree Collapse file tree 2 files changed +11
-0
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
18
19
annotations :
19
20
prometheus.io/scrape : " true"
20
21
prometheus.io/port : " 8080"
Original file line number Diff line number Diff line change @@ -63,6 +63,16 @@ webhooks:
63
63
namespaceSelector :
64
64
matchLabels :
65
65
katib.kubeflow.org/metrics-collector-injection : enabled
66
+ # Once the AdmissionWebhookMatchConditions feature gate is enabled by default, we should switch to control based on userInfo.
67
+ # REF:
68
+ # - AdmissionWebhookMatchConditions: https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#matching-requests-matchconditions
69
+ # - Tracking issue: https://github.com/kubeflow/katib/issues/2206
70
+ objectSelector :
71
+ matchExpressions :
72
+ - key : katib.kubeflow.org/metrics-collector-injection
73
+ operator : NotIn
74
+ values :
75
+ - disabled
66
76
rules :
67
77
- apiGroups :
68
78
- " "
You can’t perform that action at this time.
0 commit comments