Skip to content

Commit 6ac97cc

Browse files
committed
Add namespace creation step in deployment workflow and remove createNamespace flag from ArgoCD application
1 parent cfa455c commit 6ac97cc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ jobs:
8282
git commit -m "Update image tag to ${{ inputs.image-tag || github.sha }}" || exit 0
8383
git push https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
8484
85+
- name: Create Application Namespace
86+
if: ${{ inputs.terraform-action == 'apply' || inputs.terraform-action == '' }}
87+
run: |
88+
kubectl create namespace my-app-namespace --dry-run=client -o yaml | kubectl apply -f -
89+
8590
- name: Deploy ArgoCD Applications
8691
if: ${{ inputs.terraform-action == 'apply' || inputs.terraform-action == '' }}
8792
run: |

argocd/application.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ spec:
2626
automated:
2727
prune: true
2828
selfHeal: true
29-
createNamespace: true

0 commit comments

Comments
 (0)