Skip to content

metro-digital/oidc-set-context

Repository files navigation

Set kubectl context using OIDC authorization

The Action will make a call to oidc_url provider, using oidc_username and oidc_password as credentials, and the token from response is used to set up a kubectl context with OIDC authorization.

Inputs

oidc_url

Required Url to get token from OIDC provider.

oidc_username

Required Username to OIDC provider.

oidc_password

Required Password to OIDC provider.

k8s_url

Required Cluster url.

k8s_namespace

Cluster namespace. Default value default.

k8s_skip_tls_verify

Cluster skip tls verification. Default value false.

Outputs

Example usage

uses: metro-digital/oid-set-context@v0.x
with:
    oidc_url: ${{ secrets.OIDC_URL }}
    oidc_username: ${{ secrets.TU_ID }}
    oidc_password: ${{ secrets.TU_SECRET }}
    k8s_url: ${{ secrets.CLUSTER_URL }}

About

Github action to set kubectl context using OIDC authorization

Resources

License

Stars

Watchers

Forks

Packages

No packages published