feat(kube_state_metrics): don't deploy if not enabled

!8
This commit is contained in:
2024-02-04 15:38:19 +09:30
parent bc4d72ff8e
commit 9c35a4d140
7 changed files with 52 additions and 31 deletions

View File

@ -1,3 +1,4 @@
{{ if .Values.nfc_monitoring.kube_state_metrics.enabled }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
@ -18,3 +19,5 @@ subjects:
- kind: ServiceAccount
name: kube-state-metrics
namespace: monitoring
{{ end }}