Skip to content

Commit 4a6a9c8

Browse files
Narunas KapociusNarunas Kapocius
authored andcommitted
fix: define output format for Helm and Kubernetes authentication clients
1 parent 2a0b837 commit 4a6a9c8

File tree

15 files changed

+19
-17
lines changed

15 files changed

+19
-17
lines changed

examples/eks/eks_cluster_access_entries/castai.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ provider "helm" {
2424
api_version = "client.authentication.k8s.io/v1beta1"
2525
command = "aws"
2626
# This requires the awscli to be installed locally where Terraform is executed.
27-
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
27+
args = ["eks", "get-token", "--output", "json", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
2828
}
2929
}
3030
}

examples/eks/eks_cluster_access_entries/providers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ provider "kubernetes" {
1010
api_version = "client.authentication.k8s.io/v1beta1"
1111
command = "aws"
1212
# This requires the awscli to be installed locally where Terraform is executed
13-
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
13+
args = ["eks", "get-token", "--output", "json", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
1414
}
1515
}

examples/eks/eks_cluster_assumerole/castai.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ provider "helm" {
2424
api_version = "client.authentication.k8s.io/v1beta1"
2525
command = "aws"
2626
# This requires the awscli to be installed locally where Terraform is executed.
27-
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
27+
args = ["eks", "get-token", "--output", "json", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
2828
}
2929
}
3030
}

examples/eks/eks_cluster_assumerole/providers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ provider "kubernetes" {
1010
api_version = "client.authentication.k8s.io/v1beta1"
1111
command = "aws"
1212
# This requires the awscli to be installed locally where Terraform is executed
13-
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
13+
args = ["eks", "get-token", "--output", "json", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
1414
}
1515
}

examples/eks/eks_cluster_autoscaler_policies/castai.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ provider "helm" {
2525
api_version = "client.authentication.k8s.io/v1beta1"
2626
command = "aws"
2727
# This requires the awscli to be installed locally where Terraform is executed.
28-
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
28+
args = ["eks", "get-token", "--output", "json", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
2929
}
3030
}
3131
}

examples/eks/eks_cluster_autoscaler_policies/providers.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ provider "kubernetes" {
1010
api_version = "client.authentication.k8s.io/v1beta1"
1111
command = "aws"
1212
# This requires the awscli to be installed locally where Terraform is executed
13-
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
13+
args = ["eks", "get-token","--output", "json", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
1414
}
1515
}
16+
17+

examples/eks/eks_cluster_custom_iam/castai.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ provider "helm" {
2020
api_version = "client.authentication.k8s.io/v1beta1"
2121
command = "aws"
2222
# This requires the awscli to be installed locally where Terraform is executed.
23-
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
23+
args = ["eks", "get-token", "--output", "json", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
2424
}
2525
}
2626
}

examples/eks/eks_cluster_custom_iam/providers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ provider "kubernetes" {
1010
api_version = "client.authentication.k8s.io/v1beta1"
1111
command = "aws"
1212
# This requires the awscli to be installed locally where Terraform is executed
13-
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
13+
args = ["eks", "get-token", "--output", "json", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
1414
}
1515
}

examples/eks/eks_cluster_existing/providers.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ provider "kubernetes" {
1616
api_version = "client.authentication.k8s.io/v1beta1"
1717
command = "aws"
1818
# This requires the awscli to be installed locally where Terraform is executed
19-
args = ["eks", "get-token", "--cluster-name", var.cluster_name, "--region", var.cluster_region, "--profile", var.profile]
19+
args = ["eks", "get-token", "--output", "json", "--cluster-name", var.cluster_name, "--region", var.cluster_region, "--profile", var.profile]
2020
}
2121
}
2222

@@ -28,7 +28,7 @@ provider "helm" {
2828
api_version = "client.authentication.k8s.io/v1beta1"
2929
command = "aws"
3030
# This requires the awscli to be installed locally where Terraform is executed.
31-
args = ["eks", "get-token", "--cluster-name", var.cluster_name, "--region", var.cluster_region, "--profile", var.profile]
31+
args = ["eks", "get-token", "--output", "json", "--cluster-name", var.cluster_name, "--region", var.cluster_region, "--profile", var.profile]
3232
}
3333
}
3434
}

examples/eks/eks_cluster_ipv6/castai.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ provider "helm" {
2424
api_version = "client.authentication.k8s.io/v1beta1"
2525
command = "aws"
2626
# This requires the awscli to be installed locally where Terraform is executed.
27-
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
27+
args = ["eks", "get-token", "--output", "json", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
2828
}
2929
}
3030
}

0 commit comments

Comments
 (0)