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 1515 metadata :
1616 labels :
1717 katib.kubeflow.org/component : controller
18+ katib.kubeflow.org/metrics-collector-injection : disabled
1819 annotations :
1920 prometheus.io/scrape : " true"
2021 prometheus.io/port : " 8080"
Original file line number Diff line number Diff line change @@ -63,6 +63,16 @@ webhooks:
6363 namespaceSelector :
6464 matchLabels :
6565 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
6676 rules :
6777 - apiGroups :
6878 - " "
You can’t perform that action at this time.
0 commit comments