Skip to content

Commit

Permalink
check kubeconfig command
Browse files Browse the repository at this point in the history
  • Loading branch information
zreigz committed Nov 29, 2024
1 parent 1f6d8c1 commit 1f58a88
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:
- name: Create kube directory
run: |
mkdir -p $HOME/.kube
touch $HOME/.kube/config
chmod 755 $HOME/.kube/config
- name: Run tests
env:
VENOM_VAR_provider: gcp
Expand Down Expand Up @@ -128,6 +130,7 @@ jobs:
- file: ${{ env.TESTOUT_PATH }}/test_results.html
filename: rest_results.html
plural-up-azure:
if: false
name: plural up / Azure
runs-on: ubuntu-latest
steps:
Expand Down
14 changes: 9 additions & 5 deletions test/plural/lib/cluster-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ input:
name: ''
provider: ''
region: ''
project: ''

steps:
- script: plural ops cluster
- script: gcloud container clusters get-credentials {{ .input.name }} --region {{ .input.region }} --project {{ .input.project }}
assertions:
- result.code ShouldEqual 0
- script: |
export PLURAL_CONSOLE_TOKEN=$(kubectl get secret console-auth-token -n plrl-console -o jsonpath='{.data.access-token}' | base64 --decode) ;\
plural cd login --url https://console.{{ .input.name }}.onplural.sh/gql --token $PLURAL_CONSOLE_TOKEN
- script: plural ops cluster
assertions:
- result.code ShouldEqual 0
- result.code ShouldEqual 0
# - script: |
# export PLURAL_CONSOLE_TOKEN=$(kubectl get secret console-auth-token -n plrl-console -o jsonpath='{.data.access-token}' | base64 --decode) ;\
# plural cd login --url https://console.{{ .input.name }}.onplural.sh/gql --token $PLURAL_CONSOLE_TOKEN
# assertions:
# - result.code ShouldEqual 0
3 changes: 2 additions & 1 deletion test/plural/up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ testcases:
provider: {{ .provider }}
region: {{ .region }}
name: {{ .username }}
- type: cluster-services
project: {{ .project }}
# - type: cluster-services

- name: Azure teardown
skip:
Expand Down

0 comments on commit 1f58a88

Please sign in to comment.