Skip to content

Commit

Permalink
fix: all containers will abide by helm configured security context (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
alee792 authored Jul 7, 2023
1 parent cbdc905 commit b4028f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/openfga/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: openfga
description: A Kubernetes Helm chart for the OpenFGA project.

type: application
version: 0.1.18
version: 0.1.19
appVersion: "v1.1.1"

home: "https://openfga.github.io/helm-charts/charts/openfga"
Expand Down
2 changes: 2 additions & 0 deletions charts/openfga/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ spec:
{{- if and (has .Values.datastore.engine (list "postgres" "mysql")) .Values.datastore.applyMigrations }}
initContainers:
- name: wait-for-migration
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: groundnuty/k8s-wait-for:v1.6
args: ["job", '{{ include "openfga.fullname" . }}-migrate']
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions charts/openfga/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spec:
spec:
containers:
- name: migrate-database
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
args: ["migrate"]
env:
Expand Down

0 comments on commit b4028f8

Please sign in to comment.