Skip to content

Commit

Permalink
feat(client-eks): Added support for disabling unmanaged addons during…
Browse files Browse the repository at this point in the history
… cluster creation.
  • Loading branch information
awstools committed Jun 26, 2024
1 parent d6c9ad9 commit cdf4fe6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions clients/client-eks/src/commands/CreateClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
* bootstrapClusterCreatorAdminPermissions: true || false,
* authenticationMode: "API" || "API_AND_CONFIG_MAP" || "CONFIG_MAP",
* },
* bootstrapSelfManagedAddons: true || false,
* };
* const command = new CreateClusterCommand(input);
* const response = await client.send(command);
Expand Down
8 changes: 8 additions & 0 deletions clients/client-eks/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2041,6 +2041,14 @@ export interface CreateClusterRequest {
* @public
*/
accessConfig?: CreateAccessConfigRequest;

/**
* <p>If you set this value to <code>False</code> when creating a cluster, the default networking add-ons will not be installed.</p>
* <p>The default networking addons include vpc-cni, coredns, and kube-proxy.</p>
* <p>Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.</p>
* @public
*/
bootstrapSelfManagedAddons?: boolean;
}

/**
Expand Down
1 change: 1 addition & 0 deletions clients/client-eks/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ export const se_CreateClusterCommand = async (
body = JSON.stringify(
take(input, {
accessConfig: (_) => _json(_),
bootstrapSelfManagedAddons: [],
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
encryptionConfig: (_) => _json(_),
kubernetesNetworkConfig: (_) => _json(_),
Expand Down
6 changes: 6 additions & 0 deletions codegen/sdk-codegen/aws-models/eks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3314,6 +3314,12 @@
"traits": {
"smithy.api#documentation": "<p>The access configuration for the cluster.</p>"
}
},
"bootstrapSelfManagedAddons": {
"target": "com.amazonaws.eks#BoxedBoolean",
"traits": {
"smithy.api#documentation": "<p>If you set this value to <code>False</code> when creating a cluster, the default networking add-ons will not be installed.</p>\n <p>The default networking addons include vpc-cni, coredns, and kube-proxy.</p>\n <p>Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit cdf4fe6

Please sign in to comment.