diff --git a/charts/openfga/Chart.yaml b/charts/openfga/Chart.yaml index 8600d74..89f2a8f 100644 --- a/charts/openfga/Chart.yaml +++ b/charts/openfga/Chart.yaml @@ -3,7 +3,7 @@ name: openfga description: A Kubernetes Helm chart for the OpenFGA project. type: application -version: 0.1.34 +version: 0.1.35 appVersion: "v1.4.2" home: "https://openfga.github.io/helm-charts/charts/openfga" diff --git a/charts/openfga/templates/deployment.yaml b/charts/openfga/templates/deployment.yaml index f1ed6a9..08eccbc 100644 --- a/charts/openfga/templates/deployment.yaml +++ b/charts/openfga/templates/deployment.yaml @@ -34,17 +34,6 @@ spec: serviceAccountName: {{ include "openfga.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} - {{- if and (has .Values.datastore.engine (list "postgres" "mysql")) .Values.datastore.applyMigrations }} - initContainers: - - name: wait-for-migration - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.datastore.migrations.image.repository }}:{{ .Values.datastore.migrations.image.tag }}" - imagePullPolicy: {{ .Values.datastore.migrations.image.pullPolicy }} - args: ["job", '{{ include "openfga.fullname" . }}-migrate'] - resources: - {{- toYaml .Values.datastore.migrations.resources | nindent 12 }} - {{- end }} containers: - name: {{ .Chart.Name }} securityContext: diff --git a/charts/openfga/templates/job.yaml b/charts/openfga/templates/job.yaml index aaf7d37..e126247 100644 --- a/charts/openfga/templates/job.yaml +++ b/charts/openfga/templates/job.yaml @@ -8,8 +8,10 @@ metadata: {{- with .Values.migrate.labels }} {{- toYaml . | nindent 4}} {{- end}} - {{- with .Values.migrate.annotations }} annotations: + helm.sh/hook: "post-install, post-upgrade, post-rollback, post-delete" + helm.sh/hook-delete-policy: "before-hook-creation" + {{- with .Values.migrate.annotations }} {{- toYaml . | nindent 4 }} {{- end }} spec: diff --git a/charts/openfga/values.yaml b/charts/openfga/values.yaml index 45feddb..db64975 100644 --- a/charts/openfga/values.yaml +++ b/charts/openfga/values.yaml @@ -257,8 +257,5 @@ affinity: {} sidecars: [] migrate: sidecars: [] - annotations: - helm.sh/hook: "post-install, post-upgrade, post-rollback, post-delete" - helm.sh/hook-weight: "-5" - helm.sh/hook-delete-policy: "before-hook-creation" + annotations: {} labels: {}