Skip to content

Commit 0acfdf9

Browse files
authored
Update API version for Kubernetes exec configuration to v1 (#2823)
1 parent 8309126 commit 0acfdf9

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

docs/guides/getting-started.html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ provider "kubernetes" {
113113
host = data.aws_eks_cluster.example.endpoint
114114
cluster_ca_certificate = base64decode(data.aws_eks_cluster.example.certificate_authority[0].data)
115115
exec {
116-
api_version = "client.authentication.k8s.io/v1beta1"
116+
api_version = "client.authentication.k8s.io/v1"
117117
args = ["eks", "get-token", "--cluster-name", var.cluster_name]
118118
command = "aws"
119119
}

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ resource "kubernetes_namespace" "example" {
2727

2828
## Terraform version
2929

30-
This provider requires Terraform version `v1.0.0` or above.
30+
This provider requires Terraform version `v1.0.0` or above.
3131

3232
## Kubernetes versions
3333

@@ -116,7 +116,7 @@ provider "kubernetes" {
116116
host = var.cluster_endpoint
117117
cluster_ca_certificate = base64decode(var.cluster_ca_cert)
118118
exec {
119-
api_version = "client.authentication.k8s.io/v1beta1"
119+
api_version = "client.authentication.k8s.io/v1"
120120
args = ["eks", "get-token", "--cluster-name", var.cluster_name]
121121
command = "aws"
122122
}
@@ -195,7 +195,7 @@ The following arguments are supported:
195195
* `token` - (Optional) Token of your service account. Can be sourced from `KUBE_TOKEN`.
196196
* `proxy_url` - (Optional) URL to the proxy to be used for all API requests. URLs with "http", "https", and "socks5" schemes are supported. Can be sourced from `KUBE_PROXY_URL`.
197197
* `exec` - (Optional) Configuration block to use an [exec-based credential plugin] (https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins), e.g. call an external command to receive user credentials.
198-
* `api_version` - (Required) API version to use when decoding the ExecCredentials resource, e.g. `client.authentication.k8s.io/v1beta1`.
198+
* `api_version` - (Required) API version to use when decoding the ExecCredentials resource, e.g. `client.authentication.k8s.io/v1`.
199199
* `command` - (Required) Command to execute.
200200
* `args` - (Optional) List of arguments to pass when executing the plugin.
201201
* `env` - (Optional) Map of environment variables to set when executing the plugin.

docs/resources/service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ provider "kubernetes" {
199199
host = data.aws_eks_cluster.example.endpoint
200200
cluster_ca_certificate = base64decode(data.aws_eks_cluster.example.certificate_authority[0].data)
201201
exec {
202-
api_version = "client.authentication.k8s.io/v1beta1"
202+
api_version = "client.authentication.k8s.io/v1"
203203
args = ["eks", "get-token", "--cluster-name", var.cluster_name]
204204
command = "aws"
205205
}

docs/resources/service_v1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ provider "kubernetes" {
199199
host = data.aws_eks_cluster.example.endpoint
200200
cluster_ca_certificate = base64decode(data.aws_eks_cluster.example.certificate_authority[0].data)
201201
exec {
202-
api_version = "client.authentication.k8s.io/v1beta1"
202+
api_version = "client.authentication.k8s.io/v1"
203203
args = ["eks", "get-token", "--cluster-name", var.cluster_name]
204204
command = "aws"
205205
}

examples/example_5.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ provider "kubernetes" {
22
host = var.cluster_endpoint
33
cluster_ca_certificate = base64decode(var.cluster_ca_cert)
44
exec {
5-
api_version = "client.authentication.k8s.io/v1beta1"
5+
api_version = "client.authentication.k8s.io/v1"
66
args = ["eks", "get-token", "--cluster-name", var.cluster_name]
77
command = "aws"
88
}

examples/resources/service/example_2.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ provider "kubernetes" {
1818
host = data.aws_eks_cluster.example.endpoint
1919
cluster_ca_certificate = base64decode(data.aws_eks_cluster.example.certificate_authority[0].data)
2020
exec {
21-
api_version = "client.authentication.k8s.io/v1beta1"
21+
api_version = "client.authentication.k8s.io/v1"
2222
args = ["eks", "get-token", "--cluster-name", var.cluster_name]
2323
command = "aws"
2424
}

examples/resources/service_v1/example_2.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ provider "kubernetes" {
1818
host = data.aws_eks_cluster.example.endpoint
1919
cluster_ca_certificate = base64decode(data.aws_eks_cluster.example.certificate_authority[0].data)
2020
exec {
21-
api_version = "client.authentication.k8s.io/v1beta1"
21+
api_version = "client.authentication.k8s.io/v1"
2222
args = ["eks", "get-token", "--cluster-name", var.cluster_name]
2323
command = "aws"
2424
}

kubernetes/test-infra/eks/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ locals {
112112
name = "terraform"
113113
user = {
114114
exec = {
115-
apiVersion = "client.authentication.k8s.io/v1beta1"
115+
apiVersion = "client.authentication.k8s.io/v1"
116116
command = "aws"
117117
args = [
118118
"eks", "get-token", "--cluster-name", local.cluster_name

kubernetes/test-infra/gke/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ locals {
9292
name = google_service_account.default.email
9393
user = {
9494
exec = {
95-
apiVersion = "client.authentication.k8s.io/v1beta1"
95+
apiVersion = "client.authentication.k8s.io/v1"
9696
command = "gke-gcloud-auth-plugin"
9797
interactiveMode = "Never"
9898
provideClusterInfo = true

templates/guides/getting-started.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ provider "kubernetes" {
113113
host = data.aws_eks_cluster.example.endpoint
114114
cluster_ca_certificate = base64decode(data.aws_eks_cluster.example.certificate_authority[0].data)
115115
exec {
116-
api_version = "client.authentication.k8s.io/v1beta1"
116+
api_version = "client.authentication.k8s.io/v1"
117117
args = ["eks", "get-token", "--cluster-name", var.cluster_name]
118118
command = "aws"
119119
}

0 commit comments

Comments
 (0)