File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ go.work.sum
1515.gocache
1616.gomodcache
1717/local-dev /
18-
18+ * .tmp
Original file line number Diff line number Diff line change @@ -12,20 +12,16 @@ if [ -z "$component" ]; then
1212 exit 1
1313fi
1414
15- # Check if already up
16- if [ -f " dev/patches/$component -down.yaml.tmp" ]; then
17- ec_up $component
18- exit 0
19- fi
20-
2115# Ensure dev go cache / go mod cache directories exists
2216mkdir -p dev/.gocache dev/.gomodcache
2317
2418# Build and load the image into the embedded cluster
2519ec_build_and_load " $component "
2620
27- # Save current deployment state
28- ec_exec k0s kubectl get deployment $( deployment $component ) -n embedded-cluster -oyaml > dev/patches/$component -down.yaml.tmp
21+ # Save original state
22+ if [ ! -f " dev/patches/$component -down.yaml.tmp" ]; then
23+ ec_exec k0s kubectl get deployment $( deployment $component ) -n embedded-cluster -oyaml > dev/patches/$component -down.yaml.tmp
24+ fi
2925
3026# Patch the deployment
3127ec_patch $component
You can’t perform that action at this time.
0 commit comments