Skip to content

Commit 1c84790

Browse files
authored
chore(eks): update README with consistent versions (#25488)
The aws-eks README is using `version: eks.KubernetesVersion.V1_26` but the layer version is still v25. This PR updates the versions to make them all v26 for consistency. Closes #<issue number here>. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 7fed553 commit 1c84790

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ This example defines an Amazon EKS cluster with the following configuration:
3838
* A Kubernetes pod with a container based on the [paulbouwer/hello-kubernetes](https://github.com/paulbouwer/hello-kubernetes) image.
3939

4040
```ts
41-
import { KubectlV25Layer } from '@aws-cdk/lambda-layer-kubectl-v25';
41+
import { KubectlV26Layer } from '@aws-cdk/lambda-layer-kubectl-v26';
4242

4343
// provisioning a cluster
4444
const cluster = new eks.Cluster(this, 'hello-eks', {
4545
version: eks.KubernetesVersion.V1_26,
46-
kubectlLayer: new KubectlV25Layer(this, 'kubectl'),
46+
kubectlLayer: new KubectlV26Layer(this, 'kubectl'),
4747
});
4848

4949
// apply a kubernetes manifest to the cluster
@@ -676,11 +676,11 @@ Only version 1.20 of kubectl is available in `aws-cdk-lib`. If you need a differ
676676
version, you will need to use one of the `@aws-cdk/lambda-layer-kubectl-vXY` packages.
677677

678678
```ts
679-
import { KubectlV25Layer } from '@aws-cdk/lambda-layer-kubectl-v25';
679+
import { KubectlV26Layer } from '@aws-cdk/lambda-layer-kubectl-v26';
680680

681681
const cluster = new eks.Cluster(this, 'hello-eks', {
682682
version: eks.KubernetesVersion.V1_26,
683-
kubectlLayer: new KubectlV25Layer(this, 'kubectl'),
683+
kubectlLayer: new KubectlV26Layer(this, 'kubectl'),
684684
});
685685
```
686686

0 commit comments

Comments
 (0)