Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
feat(rbac): Add Grafana and Prometheus SecurityContexts by default (#…
Browse files Browse the repository at this point in the history
…3455)

Signed-off-by: Kalya Subramanian <[email protected]>
  • Loading branch information
ksubrmnn authored May 26, 2021
1 parent 24a1140 commit 68279d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/osm/templates/grafana-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
{{- include "osm.labels" . | nindent 8 }}
app: osm-grafana
spec:
{{- if and (not (.Capabilities.APIVersions.Has "security.openshift.io/v1")) .Values.OpenServiceMesh.pspEnabled }}
{{- if not (.Capabilities.APIVersions.Has "security.openshift.io/v1") }}
{{- include "restricted.securityContext" . | nindent 6 }}
{{- end }}
serviceAccountName: osm-grafana
Expand Down
2 changes: 1 addition & 1 deletion charts/osm/templates/prometheus-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
{{- include "osm.labels" . | nindent 8 }}
app: osm-prometheus
spec:
{{- if and (not (.Capabilities.APIVersions.Has "security.openshift.io/v1")) .Values.OpenServiceMesh.pspEnabled }}
{{- if not (.Capabilities.APIVersions.Has "security.openshift.io/v1") }}
{{- include "restricted.securityContext" . | nindent 6 }}
{{- end }}
containers:
Expand Down

0 comments on commit 68279d4

Please sign in to comment.