Closed ElfoLiNk closed 1 year ago
@rickardgranberg do you have time to review this ?
Sorry, been busy. Please run go fmt internal/provider/provider.go
to fix the non-standard formatting
OK, one more thing: Update examples/provider/provider.tf
and add the exec
part:
provider "vaultoperator" {
# example configuration here
vault_url = "http://vault:8200"
kube_config {
path = "~/.kube/config"
namespace = "vault"
service = "vault"
localPort = "8200"
remotePort = "8200"
# optional exec:
exec {
api_version = "client.authentication.k8s.io/v1beta1"
args = ["eks", "get-token", "--cluster-name", var.cluster_name]
command = "aws"
}
}
}
Then run go generate
to update the docs
Fixes https://github.com/rickardgranberg/terraform-provider-vaultoperator/issues/15