Skip to content

Commit cbc0335

Browse files
committed
Fixing terraform-ci issue with cluster_ca
1 parent ac0ffe6 commit cbc0335

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

terraform-ci/credential_plugin_module.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module create_daemonset_with_plugin_enabled {
6565

6666
kubernetes_auth_object = {
6767
host = var.create_eks_cluster ? module.eks[0].cluster_endpoint : data.aws_eks_cluster.eks_cluster_data.endpoint
68-
cluster_ca_certificate = var.create_eks_cluster ? base64decode(module.eks[0].cluster_certificate_authority_data) : (data.aws_eks_cluster.eks_cluster_data.certificate_authority.0.data)
68+
cluster_ca_certificate = var.create_eks_cluster ? base64decode(module.eks[0].cluster_certificate_authority_data) : base64decode(data.aws_eks_cluster.eks_cluster_data.certificate_authority.0.data)
6969
token = data.aws_eks_cluster_auth.eks_cluster_auth.token
7070
}
7171

terraform-ci/kubernetes.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Configure the Kubernetes provider
22
provider "kubernetes" {
33
host = var.create_eks_cluster ? module.eks[0].cluster_endpoint : data.aws_eks_cluster.eks_cluster_data.endpoint
4-
cluster_ca_certificate = var.create_eks_cluster ? base64decode(module.eks[0].cluster_certificate_authority_data) : (data.aws_eks_cluster.eks_cluster_data.certificate_authority.0.data)
4+
cluster_ca_certificate = var.create_eks_cluster ? base64decode(module.eks[0].cluster_certificate_authority_data) : base64decode(data.aws_eks_cluster.eks_cluster_data.certificate_authority.0.data)
55
token = data.aws_eks_cluster_auth.eks_cluster_auth.token
66
}
77

0 commit comments

Comments
 (0)