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

Commit

Permalink
rename helm variable 'elasticsearch.securityContext' to 'elasticsearc…
Browse files Browse the repository at this point in the history
…h.securityContextCustom'
  • Loading branch information
Tim Rice committed Mar 19, 2021
1 parent 88f021d commit 0203370
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ The following table lists the configurable parameters of the opendistro elastics
| `elasticsearch.securityConfig.rolesSecret` | Name of secret with [roles.yml](https://github.com/opendistro-for-elasticsearch/security/blob/master/securityconfig/roles.yml) defined | `""` |
| `elasticsearch.securityConfig.rolesMappingSecret` | Name of secret with [roles_mapping.yml](https://github.com/opendistro-for-elasticsearch/security/blob/master/securityconfig/roles_mapping.yml) defined | `""` |
| `elasticsearch.securityConfig.tenantsSecret` | Name of secret with [tenants.yml](https://github.com/opendistro-for-elasticsearch/security/blob/master/securityconfig/tenants.yml) defined | `""` |
| `elasticsearch.securityContext` | securityContext for the ElasticSearch pods | `{}` |
| `elasticsearch.securityContextCustom` | securityContext for the ElasticSearch pods | `{}` |
| `elasticsearch.ssl.transport.existingCertSecret` | Name of secret that contains the transport certs | `""` |
| `elasticsearch.ssl.transport.existingCertSecretCertSubPath` | Subpath of elastic transport cert secret | `"elk-transport-crt.pem"` |
| `elasticsearch.ssl.transport.existingCertSecretKeySubPath` | Subpath of elastic transport key secret | `"elk-transport-key.pem"` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
{{- if .Values.elasticsearch.extraInitContainers }}
{{ toYaml .Values.elasticsearch.extraInitContainers| indent 6 }}
{{- end }}
{{- with .Values.elasticsearch.securityContext }}
{{- with .Values.elasticsearch.securityContextCustom }}
securityContext:
{{ toYaml . | indent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
{{ toYaml . | indent 8 }}
{{- end }}
serviceAccountName: {{ template "opendistro-es.elasticsearch.serviceAccountName" . }}
{{- with .Values.elasticsearch.securityContext }}
{{- with .Values.elasticsearch.securityContextCustom }}
securityContext:
{{ toYaml . | indent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ spec:
{{- if .Values.elasticsearch.master.extraInitContainers }}
{{ toYaml .Values.elasticsearch.master.extraInitContainers| indent 6 }}
{{- end }}
{{- with .Values.elasticsearch.securityContext }}
{{- with .Values.elasticsearch.securityContextCustom }}
securityContext:
{{ toYaml . | indent 8 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion helm/opendistro-es/values-nonroot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ elasticsearch:


## securityContext to apply to the pod. Allows for running as non-root
securityContext:
securityContextCustom:
fsGroup: 1000
runAsUser: 1000
runAsGroup: 1000
Expand Down
2 changes: 1 addition & 1 deletion helm/opendistro-es/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ elasticsearch:


## securityContext to apply to the pod. Allows for running as non-root
securityContext: {}
securityContextCustom: {}
# fsGroup: 1000
# runAsUser: 1000
# runAsGroup: 1000
Expand Down

0 comments on commit 0203370

Please sign in to comment.