Skip to content

Commit

Permalink
fix: replace client.authentication.k8s.io/v1alpha1 to client.authenti…
Browse files Browse the repository at this point in the history
…cation.k8s.io/v1beta1 (pulumi#1308)
  • Loading branch information
dirien committed Dec 4, 2022
1 parent 85a118a commit cf087aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aws-cs-eks/EksStack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class EksStack : Stack
""name"": ""aws"",
""user"": {{
""exec"": {{
""apiVersion"": ""client.authentication.k8s.io/v1alpha1"",
""apiVersion"": ""client.authentication.k8s.io/v1beta1"",
""command"": ""aws-iam-authenticator"",
""args"": [
""token"",
Expand Down
6 changes: 3 additions & 3 deletions aws-go-eks/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ec2"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/eks"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam"
"github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes"
appsv1 "github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/apps/v1"
corev1 "github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/core/v1"
metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/meta/v1"
"github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

Expand Down Expand Up @@ -222,7 +222,7 @@ func main() {
})
}

//Create the KubeConfig Structure as per https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html
// Create the KubeConfig Structure as per https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html
func generateKubeconfig(clusterEndpoint pulumi.StringOutput, certData pulumi.StringOutput, clusterName pulumi.StringOutput) pulumi.StringOutput {
return pulumi.Sprintf(`{
"apiVersion": "v1",
Expand All @@ -246,7 +246,7 @@ func generateKubeconfig(clusterEndpoint pulumi.StringOutput, certData pulumi.Str
"name": "aws",
"user": {
"exec": {
"apiVersion": "client.authentication.k8s.io/v1alpha1",
"apiVersion": "client.authentication.k8s.io/v1beta1",
"command": "aws-iam-authenticator",
"args": [
"token",
Expand Down
2 changes: 1 addition & 1 deletion aws-ts-eks-hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ After cloning this repo, from this working directory, run these commands:
name: "aws"
user: {
exec: {
apiVersion: "client.authentication.k8s.io/v1alpha1"
apiVersion: "client.authentication.k8s.io/v1beta1"
args : [
[0]: "token"
[1]: "-i"
Expand Down

0 comments on commit cf087aa

Please sign in to comment.