Skip to content

Commit

Permalink
🐛fix linux wizard temp file permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
TarradeMarc committed Oct 1, 2024
1 parent ed03b4c commit 0944f2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kyma/wizard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,13 @@ spec:
EOF

cp envoy-config/kustomize.sh envoy-config/temp/kustomize.sh
chmod +x envoy-config/temp/kustomize.sh
cp envoy-config/kustomization.yaml envoy-config/temp/kustomization.yaml

echo "Waiting for wasm to be deployed... ⏳"
kubectl wait --for=condition=complete job/init-job -n "${app_userInput_namespace}" > /dev/null
if [[ $? -eq 0 ]]; then
helm upgrade "${app_userInput_deployment}-${app_userInput_namespace}" "${app_userInput_directory}" --post-renderer ./envoy-config/temp/kustomize.sh --dry-run > /dev/null
helm upgrade "${app_userInput_deployment}-${app_userInput_namespace}" "${app_userInput_directory}" --post-renderer ./envoy-config/temp/kustomize.sh > /dev/null
rm -rf envoy-config/temp
echo "Done ✅"
app_url=$(kubectl get virtualservice -n "${app_userInput_namespace}" -o jsonpath="{.items[0].spec.hosts[0]}" | grep "${app_userInput_deployment}")
Expand Down Expand Up @@ -291,6 +292,7 @@ patches:
EOF

cp clone/envoy-config/kustomize.sh clone/envoy-config/temp/kustomize.sh
chmod +x clone/envoy-config/kustomize.sh

clone/envoy-config/temp/kustomize.sh > /dev/null 2> /dev/null
rm -rf clone/envoy-config/temp
Expand Down Expand Up @@ -366,6 +368,7 @@ patches:
EOF

cp exhaust/envoy-config/kustomize.sh exhaust/envoy-config/temp/kustomize.sh
chmod +x exhaust/envoy-config/temp/kustomize.sh

exhaust/envoy-config/temp/kustomize.sh > /dev/null 2> /dev/null
rm -rf exhaust/envoy-config/temp
Expand Down

0 comments on commit 0944f2f

Please sign in to comment.