github-actions

Set kubelogin environment

kubelogin is required for authentication to AKS cluster with Azure RBAC. It relies on environment variables to use a service principal.

This action uses set-arm-environment-variables to set the environment variables suitable for running Terraform, adds the kubelogin specific variables, and installs kubelogin itself.

OIDC

Federated credentials must be set up to allow the action to authenticate to Azure and kubernetes

Inputs

Example

- name: Set kubelogin environment
  uses: DFE-Digital/github-actions/set-kubelogin-environment@master
  with:
    azure-client-id: $
    azure-subscription-id: $
    azure-tenant-id: $