Skip to content

Commit 88d7a08

Browse files
authored
Update dependencies, code and docs (#14)
1 parent bb57240 commit 88d7a08

File tree

6 files changed

+5664
-1149
lines changed

6 files changed

+5664
-1149
lines changed

.github/workflows/test-configure-kubectl-oke-action.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
configure-kubectl-oke-test:
13+
test-action-home-region:
1414
runs-on: ubuntu-latest
15-
name: Test the kubectl action against a demo cluster
15+
name: Test the action in the tenancy home region
1616
env:
1717
OCI_CLI_USER: ${{ secrets.OCI_CLI_USER }}
1818
OCI_CLI_TENANCY: ${{ secrets.OCI_CLI_TENANCY }}
@@ -22,11 +22,32 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v2
2424

25-
- name: Configure Kubectl for OKE
25+
- name: Configure Kubectl for OKE cluster in home region
2626
uses: ./
2727
id: test-configure-kubectl-oke-action
2828
with:
2929
cluster: ${{ secrets.OKE_CLUSTER_ID }}
3030

31-
- name: Get pods
31+
- name: Get pods using Kubectl
3232
run: kubectl get pods -A
33+
34+
test-action-new-region:
35+
runs-on: ubuntu-latest
36+
name: Test the action in a new region
37+
env:
38+
OCI_CLI_USER: ${{ secrets.OCI_CLI_USER }}
39+
OCI_CLI_TENANCY: ${{ secrets.OCI_CLI_TENANCY }}
40+
OCI_CLI_FINGERPRINT: ${{ secrets.OCI_CLI_FINGERPRINT }}
41+
OCI_CLI_KEY_CONTENT: ${{ secrets.OCI_CLI_KEY_CONTENT }}
42+
OCI_CLI_REGION: ${{ secrets.OCI_CLI_NEW_REGION }}
43+
44+
steps:
45+
- uses: actions/checkout@v2
46+
- name: Configure Kubectl for OKE cluster in new region
47+
uses: ./
48+
id: test-configure-kubectl-oke-action-new-region
49+
with:
50+
cluster: ${{ secrets.OKE_NEW_CLUSTER_OCID }}
51+
52+
- name: Get pods using Kubectl
53+
run: kubectl get nodes -A

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- name: Configure Kubectl
41-
uses: oracle-actions/configure-kubectl-oke@v1.0
41+
uses: oracle-actions/configure-kubectl-oke@v1.1
4242
id: test-configure-kubectl-oke-action
4343
with:
4444
cluster: ${{ secrets.OKE_CLUSTER_OCID }}

0 commit comments

Comments
 (0)