diff --git a/nodejs/eks/cluster.ts b/nodejs/eks/cluster.ts index 7344aa92d..04815028e 100644 --- a/nodejs/eks/cluster.ts +++ b/nodejs/eks/cluster.ts @@ -1663,10 +1663,16 @@ export const AuthenticationMode = { API: "API", /** * Only aws-auth ConfigMap will be used for authenticating to the Kubernetes API. + * + * @deprecated The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API. + * For more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html. */ CONFIG_MAP: "CONFIG_MAP", /** * Both aws-auth ConfigMap and Access Entries can be used for authenticating to the Kubernetes API. + * + * @deprecated The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API. + * For more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html. */ API_AND_CONFIG_MAP: "API_AND_CONFIG_MAP", } as const; diff --git a/provider/cmd/pulumi-gen-eks/main.go b/provider/cmd/pulumi-gen-eks/main.go index 86c02b93d..eda43aabb 100644 --- a/provider/cmd/pulumi-gen-eks/main.go +++ b/provider/cmd/pulumi-gen-eks/main.go @@ -1624,6 +1624,8 @@ func generateSchema() schema.PackageSpec { Name: "ConfigMap", Value: "CONFIG_MAP", Description: "Only aws-auth ConfigMap will be used for authenticating to the Kubernetes API.", + DeprecationMessage: "The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API.\n" + + "For more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html.", }, { Name: "Api", @@ -1634,6 +1636,8 @@ func generateSchema() schema.PackageSpec { Name: "ApiAndConfigMap", Value: "API_AND_CONFIG_MAP", Description: "Both aws-auth ConfigMap and Access Entries can be used for authenticating to the Kubernetes API.", + DeprecationMessage: "The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API.\n" + + "For more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html.", }, }, }, diff --git a/provider/cmd/pulumi-resource-eks/schema.json b/provider/cmd/pulumi-resource-eks/schema.json index 62b43e742..b13318f76 100644 --- a/provider/cmd/pulumi-resource-eks/schema.json +++ b/provider/cmd/pulumi-resource-eks/schema.json @@ -143,7 +143,8 @@ { "name": "ConfigMap", "description": "Only aws-auth ConfigMap will be used for authenticating to the Kubernetes API.", - "value": "CONFIG_MAP" + "value": "CONFIG_MAP", + "deprecationMessage": "The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API.\nFor more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html." }, { "name": "Api", @@ -153,7 +154,8 @@ { "name": "ApiAndConfigMap", "description": "Both aws-auth ConfigMap and Access Entries can be used for authenticating to the Kubernetes API.", - "value": "API_AND_CONFIG_MAP" + "value": "API_AND_CONFIG_MAP", + "deprecationMessage": "The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API.\nFor more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html." } ] }, diff --git a/sdk/dotnet/Enums.cs b/sdk/dotnet/Enums.cs index e58a31ec2..0c835f269 100644 --- a/sdk/dotnet/Enums.cs +++ b/sdk/dotnet/Enums.cs @@ -72,6 +72,8 @@ private AuthenticationMode(string value) /// /// Only aws-auth ConfigMap will be used for authenticating to the Kubernetes API. /// + [Obsolete(@"The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API. +For more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html.")] public static AuthenticationMode ConfigMap { get; } = new AuthenticationMode("CONFIG_MAP"); /// /// Only Access Entries will be used for authenticating to the Kubernetes API. @@ -80,6 +82,8 @@ private AuthenticationMode(string value) /// /// Both aws-auth ConfigMap and Access Entries can be used for authenticating to the Kubernetes API. /// + [Obsolete(@"The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API. +For more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html.")] public static AuthenticationMode ApiAndConfigMap { get; } = new AuthenticationMode("API_AND_CONFIG_MAP"); public static bool operator ==(AuthenticationMode left, AuthenticationMode right) => left.Equals(right); diff --git a/sdk/go/eks/pulumiEnums.go b/sdk/go/eks/pulumiEnums.go index 0a57de0f5..d794f5b07 100644 --- a/sdk/go/eks/pulumiEnums.go +++ b/sdk/go/eks/pulumiEnums.go @@ -193,10 +193,16 @@ type AuthenticationMode string const ( // Only aws-auth ConfigMap will be used for authenticating to the Kubernetes API. + // + // Deprecated: The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API. + // For more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html. AuthenticationModeConfigMap = AuthenticationMode("CONFIG_MAP") // Only Access Entries will be used for authenticating to the Kubernetes API. AuthenticationModeApi = AuthenticationMode("API") // Both aws-auth ConfigMap and Access Entries can be used for authenticating to the Kubernetes API. + // + // Deprecated: The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API. + // For more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html. AuthenticationModeApiAndConfigMap = AuthenticationMode("API_AND_CONFIG_MAP") ) diff --git a/sdk/java/src/main/java/com/pulumi/eks/enums/AuthenticationMode.java b/sdk/java/src/main/java/com/pulumi/eks/enums/AuthenticationMode.java index c8a94866a..c798b0d45 100644 --- a/sdk/java/src/main/java/com/pulumi/eks/enums/AuthenticationMode.java +++ b/sdk/java/src/main/java/com/pulumi/eks/enums/AuthenticationMode.java @@ -20,7 +20,12 @@ public enum AuthenticationMode { /** * Only aws-auth ConfigMap will be used for authenticating to the Kubernetes API. * + * @deprecated + * The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API. +For more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html. */ + @Deprecated /* The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API. +For more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html. */ ConfigMap("CONFIG_MAP"), /** * Only Access Entries will be used for authenticating to the Kubernetes API. @@ -30,7 +35,12 @@ public enum AuthenticationMode { /** * Both aws-auth ConfigMap and Access Entries can be used for authenticating to the Kubernetes API. * + * @deprecated + * The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API. +For more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html. */ + @Deprecated /* The aws-auth ConfigMap is deprecated. The recommended method to manage access to Kubernetes APIs is Access Entries with the AuthenticationMode API. +For more information and instructions how to upgrade, see https://docs.aws.amazon.com/eks/latest/userguide/migrating-access-entries.html. */ ApiAndConfigMap("API_AND_CONFIG_MAP"); private final String value;