-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Kubernetes client auth exec config support
The implementation is similar to other Kubernetes Terraform providers such as the kubectl or helm providers and allows the Flux provider to authenticate against EKS clusters (or others supporting this method) by configuring the client authentication exec plugin. Example configuration for EKS: ``` provider "flux" { ... kubernetes = { ... exec = { api_version = "client.authentication.k8s.io/v1beta1" env = { AWS_PROFILE = "example-profile" } command = "aws" args = [ "--region", "us-east-1", "eks", "get-token", "--cluster-name", "example-cluster", ] } } } ``` Signed-off-by: Aurel Canciu <[email protected]>
- Loading branch information
Showing
4 changed files
with
275 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters