Skip to content

improve: support argocd.appNamePrefix in argocd sync script#108

Merged
thesuperzapper merged 1 commit into
deployKF:mainfrom
thesuperzapper:improve-sync-script-app-prefix
Feb 20, 2024
Merged

improve: support argocd.appNamePrefix in argocd sync script#108
thesuperzapper merged 1 commit into
deployKF:mainfrom
thesuperzapper:improve-sync-script-app-prefix

Conversation

@thesuperzapper

Copy link
Copy Markdown
Member

This PR updates the sync_argocd_apps.sh script to support the argocd.appNamePrefix value being set. We achieve this by introducing a new script config called ARGOCD_APP_NAME_PREFIX which must be set to the same value as the argocd.appNamePrefix of the deployKF instance which you want to sync.

Before this change, running the script would result in syncing all deployKF clusters managed by the ArgoCD instance, which is probably not what the user wants.

This change also makes it so that if we don't detect the deploykf-app-of-apps Application, the sync will immediately fail.

@thesuperzapper
thesuperzapper merged commit ed0ead5 into deployKF:main Feb 20, 2024
@thesuperzapper
thesuperzapper deleted the improve-sync-script-app-prefix branch February 20, 2024 23:07
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.

1 participant