diff --git a/helm/charts/hydra/templates/job-migration.yaml b/helm/charts/hydra/templates/job-migration.yaml index 7cf7f02df..3b7ec3ba2 100644 --- a/helm/charts/hydra/templates/job-migration.yaml +++ b/helm/charts/hydra/templates/job-migration.yaml @@ -79,6 +79,9 @@ spec: securityContext: {{- toYaml . | nindent 10 }} {{- end }} + resources: + {{- toYaml .Values.hydra.automigration.resources | nindent 10 }} + {{- end }} volumeMounts: - name: {{ include "hydra.name" . }}-config-volume mountPath: /etc/config diff --git a/helm/charts/keto/README.md b/helm/charts/keto/README.md index fb94d1970..72c649540 100644 --- a/helm/charts/keto/README.md +++ b/helm/charts/keto/README.md @@ -102,7 +102,7 @@ Access Control Policies as a Server | job.shareProcessNamespace | bool | `false` | Set sharing process namespace | | job.spec.backoffLimit | int | `10` | Set job back off limit | | job.tolerations | list | `[]` | Configure node tolerations. | -| keto.automigration | object | `{"customArgs":[],"customCommand":[],"enabled":false,"type":"job"}` | Enables database migration | +| keto.automigration | object | `{"customArgs":[],"customCommand":[],"enabled":false,"resources":{},"type":"job"}` | Enables database migration | | keto.automigration.customArgs | list | `[]` | Ability to override arguments of the entrypoint. Can be used in-depended of customCommand eg: - sleep 5; - keto | | keto.automigration.customCommand | list | `[]` | Ability to override the entrypoint of the automigration container (e.g. to source dynamic secrets or export environment dynamic variables) | | keto.automigration.resources | object | `{}` | resource requests and limits for the automigration initcontainer | diff --git a/helm/charts/keto/templates/job-migration.yaml b/helm/charts/keto/templates/job-migration.yaml index 6446e5e70..d25d5265d 100644 --- a/helm/charts/keto/templates/job-migration.yaml +++ b/helm/charts/keto/templates/job-migration.yaml @@ -85,6 +85,10 @@ spec: {{- with $migrationExtraEnv }} {{- toYaml . | nindent 10 }} {{- end }} + {{- with .Values.keto.automigration.resources }} + resources: + {{- toYaml . | nindent 10 }} + {{- end }} {{- if .Values.securityContext }} securityContext: {{- toYaml .Values.securityContext | nindent 10 }}