Skip to content

Commit 0b3f685

Browse files
authored
chore(eks): kubectl docs updates (#22690)
Minor documentation updates for newly released kubectl layers. ---- ### All Submissions: * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 2ec2728 commit 0b3f685

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/@aws-cdk/aws-eks/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -680,20 +680,20 @@ The version of kubectl used must be compatible with the Kubernetes version of th
680680
cluster. kubectl is supported within one minor version (older or newer) of Kubernetes
681681
(see [Kubernetes version skew policy](https://kubernetes.io/releases/version-skew-policy/#kubectl)).
682682
Only version 1.20 of kubectl is available in `aws-cdk-lib`. If you need a different
683-
version, you will need to use one of the `@aws-cdk/lambda-layer-kubectlvXY` packages.
683+
version, you will need to use one of the `@aws-cdk/lambda-layer-kubectl-vXY` packages.
684684

685685
```ts
686-
import { KubectlV22Layer } from '@aws-cdk/lambda-layer-kubectl-v22';
686+
import { KubectlV23Layer } from '@aws-cdk/lambda-layer-kubectl-v23';
687687

688688
const cluster = new eks.Cluster(this, 'hello-eks', {
689-
version: eks.KubernetesVersion.V1_22,
690-
kubectlLayer: new KubectlV22Layer(this, 'kubectl'),
689+
version: eks.KubernetesVersion.V1_23,
690+
kubectlLayer: new KubectlV23Layer(this, 'kubectl'),
691691
});
692692
```
693693

694694
You can also specify a custom `lambda.LayerVersion` if you wish to use a
695695
different version of these tools, or a version not available in any of the
696-
`@aws-cdk/lambda-layer-kubectlvXY` packages. The handler expects the layer to
696+
`@aws-cdk/lambda-layer-kubectl-vXY` packages. The handler expects the layer to
697697
include the following two executables:
698698

699699
```text

0 commit comments

Comments
 (0)