Skip to content

Commit

Permalink
Use dev migrations image for EC dev (#5055)
Browse files Browse the repository at this point in the history
* Use dev migrations image for EC dev
  • Loading branch information
sgalsaleh authored Dec 16, 2024
1 parent fb854a1 commit a436877
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev/patches/kotsadm-up.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ spec:
values:
- {{ .Env.EC_NODE }}
{{- end }}
initContainers:
- name: schemahero-plan
image: kotsadm-migrations-dev
- name: schemahero-apply
image: kotsadm-migrations-dev
containers:
- name: kotsadm
image: kotsadm-api-dev
Expand Down
5 changes: 5 additions & 0 deletions dev/scripts/up-ec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ fi
# Build and load the image into the embedded cluster
ec_build_and_load "$component"

# Use the dev image for kotsadm migrations
if [ "$component" == "kotsadm" ]; then
ec_build_and_load "kotsadm-migrations"
fi

# The kotsadm dev image does not have a web component, and kotsadm-web service does not exist in embedded cluster.
# Deploy kotsadm-web service instead of shipping a web component in the kotsadm dev image so
# we can achieve a faster dev experience with hot reloading.
Expand Down

0 comments on commit a436877

Please sign in to comment.