Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions devspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,6 @@ vars:
APPS_NAMESPACE: platform

functions:
disable_argocd_sync: |-
if kubectl get application apps -n argocd >/dev/null 2>&1; then
echo "Disabling ArgoCD auto-sync for apps..."
kubectl patch application apps -n argocd \
--type merge \
-p '{"spec":{"syncPolicy":{"automated":null}}}'
echo "ArgoCD auto-sync disabled."
else
echo "WARNING: ArgoCD Application 'apps' not found in argocd namespace."
fi
restore_argocd_sync: &restore_argocd_sync |-
if kubectl get application apps -n argocd >/dev/null 2>&1; then
echo "Re-enabling ArgoCD auto-sync for apps..."
kubectl patch application apps -n argocd \
--type merge \
-p '{"spec":{"syncPolicy":{"automated":{"prune":true,"selfHeal":true}}}}'
echo "ArgoCD auto-sync restored."
else
echo "WARNING: ArgoCD Application 'apps' not found in argocd namespace."
fi
patch_deployment: |-
echo "Patching apps deployment for DevSpace..."
kubectl patch deployment apps -n ${APPS_NAMESPACE} --type strategic --patch "$(cat <<'EOF'
Expand Down Expand Up @@ -97,7 +77,6 @@ pipelines:
short: w
description: "Keep DevSpace running and stream logs"
run: |-
disable_argocd_sync
patch_deployment
if [ "$(get_flag "watch")" == "true" ]; then
start_dev --disable-pod-replace apps
Expand Down Expand Up @@ -149,20 +128,12 @@ pipelines:
fi

hooks:
- name: restore-argocd-auto-sync
events:
- after:dev:apps
command: bash
args:
- -c
- *restore_argocd_sync

dev:
apps:
namespace: ${APPS_NAMESPACE}
labelSelector:
app.kubernetes.io/name: apps
app.kubernetes.io/instance: apps
containers:
apps:
container: apps
Expand Down
Loading