Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-create namespace #131

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions templates/argo-cd/create-app-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ spec:

# For crds-only app, set sync-option to 'replace'
if [[ $ARGOCD_APP_NAME == *crds ]]; then
./argocd app set $ARGOCD_APP_NAME --sync-policy automated --auto-prune --sync-option Replace=true
./argocd app set $ARGOCD_APP_NAME --sync-policy automated --auto-prune --sync-option CreateNamespace=true --sync-option Replace=true
else
./argocd app set $ARGOCD_APP_NAME --sync-policy automated --auto-prune
./argocd app set $ARGOCD_APP_NAME --sync-policy automated --auto-prune --sync-option CreateNamespace=true
fi
./argocd app sync $ARGOCD_APP_NAME --async
./argocd app wait $ARGOCD_APP_NAME --health
Expand Down
9 changes: 2 additions & 7 deletions templates/argo-cd/prepare-argocd-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ spec:
./argocd proj create service-mesh --dest "*,*" --src "*" --allow-cluster-resource "*/*"
fi

./argocd proj get openstack
if [[ $? != 0 ]]; then
./argocd proj create openstack --dest "*,*" --src "*" --allow-cluster-resource "*/*"
fi

./argocd proj get sealed-secrets
if [[ $? != 0 ]]; then
./argocd proj create sealed-secrets --dest "*,*" --src "*" --allow-cluster-resource "*/*"
Expand All @@ -82,9 +77,9 @@ spec:
./argocd proj create tks-cluster --dest "*,*" --src "*" --allow-cluster-resource "*/*"
fi

./argocd proj get admin-tools
./argocd proj get tks-admin-tools
if [[ $? != 0 ]]; then
./argocd proj create admin-tools --dest "*,*" --src "*" --allow-cluster-resource "*/*"
./argocd proj create tks-admin-tools --dest "*,*" --src "*" --allow-cluster-resource "*/*"
fi
env:
- name: ARGO_SERVER
Expand Down