Skip to content

Commit 17e3365

Browse files
authored
Fix k8s master tests (#1600)
As part of #1582 I modified some scripts to use `$HOME/.kube` instead of `~/.kube` to appease the linter. I accidentally made this change to a download-artifacts step, which doesn't support $HOME. Meanwhile PRs have been passing because we only exercise this test cluster logic on master.
1 parent 5d4def0 commit 17e3365

File tree

6 files changed

+8
-2
lines changed

6 files changed

+8
-2
lines changed

provider-ci/internal/pkg/templates/native/.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ jobs:
540540
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
541541
with:
542542
name: config
543-
path: $HOME/.kube/
543+
path: ~/.kube/
544544
#{{- end }}#
545545
#{{- if .Config.AWS }}#
546546
- name: Generate Pulumi Access Token
@@ -884,6 +884,7 @@ jobs:
884884
with:
885885
name: config
886886
path: ~/.kube/config
887+
if-no-files-found: error
887888
#{{- end }}#
888889
destroy-test-cluster:
889890
runs-on: ubuntu-latest

provider-ci/internal/pkg/templates/native/.github/workflows/prerelease.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,7 @@ jobs:
915915
with:
916916
name: config
917917
path: ~/.kube/config
918+
if-no-files-found: error
918919
#{{- end }}#
919920
destroy-test-cluster:
920921
runs-on: ubuntu-latest

provider-ci/internal/pkg/templates/native/.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,7 @@ jobs:
931931
with:
932932
name: config
933933
path: ~/.kube/config
934+
if-no-files-found: error
934935
#{{- end }}#
935936
destroy-test-cluster:
936937
runs-on: ubuntu-latest

provider-ci/test-providers/kubernetes/.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ jobs:
471471
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
472472
with:
473473
name: config
474-
path: $HOME/.kube/
474+
path: ~/.kube/
475475
- name: Generate Pulumi Access Token
476476
id: generate_pulumi_token
477477
uses: pulumi/auth-actions@1c89817aab0c66407723cdef72b05266e7376640 # v1.0.1
@@ -757,6 +757,7 @@ jobs:
757757
with:
758758
name: config
759759
path: ~/.kube/config
760+
if-no-files-found: error
760761
destroy-test-cluster:
761762
runs-on: ubuntu-latest
762763
name: teardown-test-cluster

provider-ci/test-providers/kubernetes/.github/workflows/prerelease.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,7 @@ jobs:
790790
with:
791791
name: config
792792
path: ~/.kube/config
793+
if-no-files-found: error
793794
destroy-test-cluster:
794795
runs-on: ubuntu-latest
795796
name: teardown-test-cluster

provider-ci/test-providers/kubernetes/.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,7 @@ jobs:
804804
with:
805805
name: config
806806
path: ~/.kube/config
807+
if-no-files-found: error
807808
destroy-test-cluster:
808809
runs-on: ubuntu-latest
809810
name: teardown-test-cluster

0 commit comments

Comments
 (0)