Skip to content

Commit

Permalink
[DEV-13109] Change kubectl provider auth method (#391)
Browse files Browse the repository at this point in the history
* Change kubectl provider auth method

* Add gp2 dependency
  • Loading branch information
ltellesfl authored Feb 24, 2025
1 parent f219eb3 commit b34c852
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,8 @@ module "indico-common" {
depends_on = [
module.cluster,
time_sleep.wait_1_minutes_after_cluster,
module.secrets-operator-setup
module.secrets-operator-setup,
kubectl_manifest.gp2-storageclass
]
source = "./modules/common/indico-common"
argo_enabled = var.argo_enabled
Expand Down
9 changes: 7 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,13 @@ provider "kubernetes" {
provider "kubectl" {
host = module.cluster.kubernetes_host
cluster_ca_certificate = module.cluster.kubernetes_cluster_ca_certificate
token = data.aws_eks_cluster_auth.local.token
load_config_file = false
#token = data.aws_eks_cluster_auth.local.token
load_config_file = false
exec {
api_version = "client.authentication.k8s.io/v1beta1"
args = ["eks", "get-token", "--cluster-name", var.label]
command = "aws"
}
}


Expand Down

0 comments on commit b34c852

Please sign in to comment.