Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix securityConfigSecrets.config.data secrets mount plus permissions #9

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions charts/opensearch/templates/securityconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
name: {{ .Values.securityConfig.config.securityConfigSecret }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ .Chart.Name }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
app: "{{ .Chart.Name }}"
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
DandyDeveloper marked this conversation as resolved.
Show resolved Hide resolved
type: Opaque
data:
{{- range $key, $val := .Values.securityConfig.config.data }}
Expand Down
15 changes: 11 additions & 4 deletions charts/opensearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,17 @@ extraContainers: []
# image: busybox
# command: ['do', 'something']

extraInitContainers: []
alborotogarcia marked this conversation as resolved.
Show resolved Hide resolved
# - name: do-somethings
# image: busybox
# command: ['do', 'something']
extraInitContainers:
- name: volume-chmod
image: busybox
command: ['sh', '-c']
args:
- 'chown -R 1000:1000 /usr/share/opensearch'
securityContext:
runAsUser: 0
volumeMounts:
- mountPath: /usr/share/opensearch/data
name: opensearch-cluster-master
DandyDeveloper marked this conversation as resolved.
Show resolved Hide resolved

# This is the PriorityClass settings as defined in
# https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass
Expand Down