Skip to content

Commit

Permalink
add the possibility to specify objectSelector for admissionWebhooks o…
Browse files Browse the repository at this point in the history
…bjects

Signed-off-by: Alexis Sellier <[email protected]>
  • Loading branch information
alexissellier committed May 15, 2024
1 parent e0c3624 commit 3792442
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 58.5.2
version: 58.5.3
appVersion: v0.73.2
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,10 @@ webhooks:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.prometheusOperator.admissionWebhooks.objectSelector }}
objectSelector:
{{- with .Values.prometheusOperator.admissionWebhooks.objectSelector }}
{{- toYaml . | nindent 6}}
{{- end }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,10 @@ webhooks:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.prometheusOperator.admissionWebhooks.objectSelector }}
objectSelector:
{{- with .Values.prometheusOperator.admissionWebhooks.objectSelector }}
{{- toYaml . | nindent 6}}
{{- end }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2228,6 +2228,8 @@ prometheusOperator:
# argocd.argoproj.io/hook-delete-policy: HookSucceeded

namespaceSelector: {}
objectSelector: {}


deployment:
enabled: false
Expand Down

0 comments on commit 3792442

Please sign in to comment.