Skip to content

Commit ab9ecb4

Browse files
committed
Add .Values.prometheus.createRoleBinding to disable role binding
1 parent 1706dea commit ab9ecb4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

charts/sourcegraph/templates/prometheus/prometheus.ClusterRoleBinding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.prometheus.enabled .Values.prometheus.privileged -}}
1+
{{- if and .Values.prometheus.enabled .Values.prometheus.privileged .Values.prometheus.createRoleBinding -}}
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRoleBinding
44
metadata:

charts/sourcegraph/templates/prometheus/prometheus.RoleBinding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.prometheus.enabled (not .Values.prometheus.privileged) -}}
1+
{{- if and .Values.prometheus.enabled (not .Values.prometheus.privileged) .Values.prometheus.createRoleBinding -}}
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: RoleBinding
44
metadata:

charts/sourcegraph/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,7 @@ prometheus:
895895
name: "prometheus"
896896
# -- Enable RBAC for `prometheus`
897897
privileged: true
898+
createRoleBinding: true
898899
# -- Resource requests & limits for the `prometheus` container,
899900
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/)
900901
# Prometheus is relied upon to monitor services for sending alerts to site admins when
@@ -1260,7 +1261,7 @@ worker:
12601261
# -- Additional resources to include in the rendered manifest. Templates are supported.
12611262
extraResources: []
12621263

1263-
# -- Additional priorityClasses minimise re-scheduling downtime for StatefulSets. Each StatefulSets might use different priority class.
1264+
# -- Additional priorityClasses minimize re-scheduling downtime for StatefulSets. Each StatefulSets might use different priority class.
12641265
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass)
12651266
# Sample class definition:
12661267
# - name: gitserver-class

0 commit comments

Comments
 (0)