Skip to content

Commit

Permalink
add provider's kubeconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
zreigz committed Nov 29, 2024
1 parent 996fc7d commit f5a5984
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
9 changes: 9 additions & 0 deletions test/plural/lib/azure-kubeconfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
executor: azure-kubeconfig
input:
name: ''
project: ''

steps:
- script: az aks get-credentials --overwrite-existing --name {{ .input.name }} --resource-group {{ .input.project }}
assertions:
- result.code ShouldEqual 0
3 changes: 0 additions & 3 deletions test/plural/lib/cluster-setup.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
executor: cluster-setup
input:
name: ''
provider: ''
region: ''
project: ''

steps:
- script: plural ops cluster
Expand Down
10 changes: 10 additions & 0 deletions test/plural/lib/gcloud-kubeconfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
executor: gcloud-kubeconfig
input:
name: ''
project: ''
region: ''

steps:
- script: gcloud container clusters get-credentials {{ .input.name }} --region {{ .input.region }} --project {{ .input.project }}
assertions:
- result.code ShouldEqual 0
20 changes: 17 additions & 3 deletions test/plural/up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,27 @@ testcases:
retry: 3
delay: 5
- name: Azure kubeconfig
skip:
- provider ShouldEqual azure
steps:
- type: azure-kubeconfig
name: { { .username } }
project: { { .project } }

- name: Google Cloud kubeconfig
skip:
- provider ShouldEqual gcp
steps:
- type: gcloud-kubeconfig
name: { { .username } }
project: { { .project } }
region: {{ .region }}

- name: Test cluster
steps:
- type: cluster-setup
provider: {{ .provider }}
region: {{ .region }}
name: {{ .username }}
project: {{ .project }}
- type: cluster-services

- name: Azure teardown
Expand Down

0 comments on commit f5a5984

Please sign in to comment.