Skip to content

fix: add sync waves to argocd apps (fix deletion)#32

Merged
thesuperzapper merged 1 commit into
deployKF:mainfrom
thesuperzapper:add-app-sync-waves
Sep 21, 2023
Merged

fix: add sync waves to argocd apps (fix deletion)#32
thesuperzapper merged 1 commit into
deployKF:mainfrom
thesuperzapper:add-app-sync-waves

Conversation

@thesuperzapper

@thesuperzapper thesuperzapper commented Sep 21, 2023

Copy link
Copy Markdown
Member

resolves #24

This PR adds ArgoCD sync waves to the Applications. While this only affects the order that the apps are synced to the cluster (not the syncing of the manifests they contain), it does affect the order ArgoCD will delete them in, if the user deletes the deploykf-app-of-apps. Upon deletion, ArgoCD will delete resources in reverse sync-wave order.

We have ordered the waves in this PR so that things should be deleted BEFORE the things which they depend on.
The most important one is dkf-core--deploykf-profiles-generator must be deleted BEFORE dkf-core--deploykf-dashboard (the profiles have a finalizer that the profile controller must remove).

Also, adding these sync waves has allowed the creation of a script to automatically sync (at deployment time), because a script can look at the relative waves and sync them in the correct order.

@thesuperzapper thesuperzapper added this to the v0.1.2 milestone Sep 21, 2023
@thesuperzapper thesuperzapper changed the title fix: add sync waves to argocd applications (fix app-of-apps deletion) fix: add sync waves to argocd apps (fix app-of-apps deletion) Sep 21, 2023
@thesuperzapper thesuperzapper changed the title fix: add sync waves to argocd apps (fix app-of-apps deletion) fix: add sync waves to argocd apps (fix deletion) Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot delete app-of-apps

1 participant