Skip to content

Action generating kubeconfig file and updating the environment variable

License

Notifications You must be signed in to change notification settings

InfraWay/generate-kube-config

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate kubeconfig file

Action generating Kubernetes config file for specific service account. Config file can be used to deploy into the cluster.
Use-case: deployment to a namespace using Service Account with RBAC.

Inputs

workdir

Optional Path for kube config file. defaults to ~/.kube. Set to ${{ github.workspace }} when using config file in the subsequent Docketr actions.

kubeconfig

Required kubeconfig value.

Outputs

Generated kubeconfig will be stored in workdir/config.
workdir/config will be added to KUBECONFIG environment variable.

Example usage

uses: infraway/[email protected]
with:
  workdir: ${{ github.workspace }}
  kubeconfig: ${{ secrets.KUBECONFIG_DEV }}

About

Action generating kubeconfig file and updating the environment variable

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published