Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[incubator/cassandra] ] Allow customization of securityContext fsGrou…
Browse files Browse the repository at this point in the history
…p/runAsUser fields (#3794)
  • Loading branch information
TheMeier authored and k8s-ci-robot committed Feb 28, 2018
1 parent fa28e3b commit fdf7bb3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion incubator/cassandra/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: cassandra
version: 0.2.2
version: 0.2.3
description: Apache Cassandra is a free and open-source distributed database management
system designed to handle large amounts of data across many commodity servers, providing
high availability with no single point of failure.
Expand Down
5 changes: 5 additions & 0 deletions incubator/cassandra/templates/cassandra-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ spec:
{{- if .Values.selector }}
{{ toYaml .Values.selector | indent 6 }}
{{- end }}
{{- if .Values.securityContext.enabled }}
securityContext:
fsGroup: {{ .Values.securityContext.fsGroup }}
runAsUser: {{ .Values.securityContext.runAsUser }}
{{- end }}
containers:
- name: {{ template "cassandra.fullname" . }}
image: "{{ .Values.image.repo }}:{{ .Values.image.tag }}"
Expand Down
6 changes: 6 additions & 0 deletions incubator/cassandra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,9 @@ podLabels: {}
podManagementPolicy: OrderedReady
updateStrategy:
type: OnDelete

## Pod Security Context
securityContext:
enabled: false
fsGroup: 999
runAsUser: 999

0 comments on commit fdf7bb3

Please sign in to comment.