Skip to content

Commit

Permalink
Update dependencies, code and docs (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Djelibeybi authored Sep 21, 2022
1 parent bb57240 commit 88d7a08
Show file tree
Hide file tree
Showing 6 changed files with 5,664 additions and 1,149 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/test-configure-kubectl-oke-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ on:
workflow_dispatch:

jobs:
configure-kubectl-oke-test:
test-action-home-region:
runs-on: ubuntu-latest
name: Test the kubectl action against a demo cluster
name: Test the action in the tenancy home region
env:
OCI_CLI_USER: ${{ secrets.OCI_CLI_USER }}
OCI_CLI_TENANCY: ${{ secrets.OCI_CLI_TENANCY }}
Expand All @@ -22,11 +22,32 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Configure Kubectl for OKE
- name: Configure Kubectl for OKE cluster in home region
uses: ./
id: test-configure-kubectl-oke-action
with:
cluster: ${{ secrets.OKE_CLUSTER_ID }}

- name: Get pods
- name: Get pods using Kubectl
run: kubectl get pods -A

test-action-new-region:
runs-on: ubuntu-latest
name: Test the action in a new region
env:
OCI_CLI_USER: ${{ secrets.OCI_CLI_USER }}
OCI_CLI_TENANCY: ${{ secrets.OCI_CLI_TENANCY }}
OCI_CLI_FINGERPRINT: ${{ secrets.OCI_CLI_FINGERPRINT }}
OCI_CLI_KEY_CONTENT: ${{ secrets.OCI_CLI_KEY_CONTENT }}
OCI_CLI_REGION: ${{ secrets.OCI_CLI_NEW_REGION }}

steps:
- uses: actions/checkout@v2
- name: Configure Kubectl for OKE cluster in new region
uses: ./
id: test-configure-kubectl-oke-action-new-region
with:
cluster: ${{ secrets.OKE_NEW_CLUSTER_OCID }}

- name: Get pods using Kubectl
run: kubectl get nodes -A
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- name: Configure Kubectl
uses: oracle-actions/configure-kubectl-oke@v1.0
uses: oracle-actions/configure-kubectl-oke@v1.1
id: test-configure-kubectl-oke-action
with:
cluster: ${{ secrets.OKE_CLUSTER_OCID }}
Expand Down
Loading

0 comments on commit 88d7a08

Please sign in to comment.