brash-hamburger-57986
07/20/2022, 4:33 PMextraInitContainers
in a helm values file:
deployment:
extraInitContainers:
- name: kratos-automigrate
image: "oryd/kratos:v0.9.0-alpha.3"
imagePullPolicy: IfNotPresent
command: ["kratos"]
args:
[
"migrate",
"sql",
"-e",
"--yes",
"--config",
"/etc/config/kratos.yaml",
]
volumeMounts:
- name: kratos-config-volume
mountPath: /etc/config
readOnly: true
...
if i set autoMigrate
as true
do i still need this part?
i suppose this specific config and autoMigrate
will do the same things - creating sql schemas, but here it passes in --config kratos.yaml
, if i enable autoMigrate
, it will automatically pick up kratos.config
defined in the helm values file, no need to define extraInitContainers
for migration, right?magnificent-energy-493
command: ["kratos"]
args: ["migrate", "sql", "-e", "--yes"]
I ran the following then looked at the job.yaml
helm install kratos --set kratos.autoMigrate=true --dry-run ory/kratos | schelm -f output
Although in 0.23.3 I see it as
command: ["kratos"]
args: ["migrate", "sql", "-e", "--yes", "--config", "/etc/config/kratos.yaml"]
magnificent-energy-493
question was whether or not the automigration would pick up the kratos.config during the migration or not. It’s still not clear to me if it does or not.yes it does, and it will now. Some parameters like encoding keys in hydra, are important during the migration procedure
brash-hamburger-57986
07/25/2022, 9:08 AM