Skip to content

Commit 0ec900c

Browse files
cmyuiclaude
andauthored
Fix helm namespace - deploy to default namespace (#17)
The self-hosted runner runs in the github-runner namespace, so helm was using that as the default. This caused helm to think releases didn't exist (it was looking in github-runner but releases are in default). Added --namespace default to helm commands and -n default to kubectl. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9a454ff commit 0ec900c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/production-deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ jobs:
7070

7171
- name: Clear pending deployments
7272
run: |
73-
kubectl delete secret -l 'status in (pending-install, pending-upgrade, pending-rollback),name=payments-service-production'
73+
kubectl delete secret -n default -l 'status in (pending-install, pending-upgrade, pending-rollback),name=payments-service-production'
7474
7575
- name: Show manifest diff since previous release
7676
run: |
7777
helm diff upgrade \
78+
--namespace default \
7879
--allow-unreleased \
7980
--color=true \
8081
--values chart/values.yaml \
@@ -84,6 +85,7 @@ jobs:
8485
- name: Deploy service to production cluster
8586
run: |
8687
helm upgrade \
88+
--namespace default \
8789
--install \
8890
--atomic \
8991
--wait --timeout 10m \

0 commit comments

Comments
 (0)