Skip to content

Commit 2d9c150

Browse files
cmyuiclaude
andauthored
Fix helm namespace - deploy to default namespace (#36)
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 bfcf87e commit 2d9c150

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
@@ -66,11 +66,12 @@ jobs:
6666

6767
- name: Clear pending deployments
6868
run: |
69-
kubectl delete secret -l 'status in (pending-install, pending-upgrade, pending-rollback),name=bancho-service-rs-production'
69+
kubectl delete secret -n default -l 'status in (pending-install, pending-upgrade, pending-rollback),name=bancho-service-rs-production'
7070
7171
- name: Show manifest diff since previous release
7272
run: |
7373
helm diff upgrade \
74+
--namespace default \
7475
--allow-unreleased \
7576
--color=true \
7677
--values chart/values.yaml \
@@ -80,6 +81,7 @@ jobs:
8081
- name: Deploy service to production cluster
8182
run: |
8283
helm upgrade \
84+
--namespace default \
8385
--install \
8486
--atomic \
8587
--wait --timeout 10m \

0 commit comments

Comments
 (0)