Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(eks): remove incomplete support for k8s v1.22 #20000

Merged
merged 3 commits into from
Apr 21, 2022

Conversation

robertd
Copy link
Contributor

@robertd robertd commented Apr 20, 2022

Revert "feat(eks): add k8s v1.22 (#19756)"

This commit reverts addition of the latest version of EKS (1.22) to CDK as there are some incompatibilities between the current lambda-layer-kubectl and v1.22 EKS cluster. Preferably we would have multiple versions fo kubectl lambda layer, but we are currently struggling with package size issues. kubectl is large, and our package is larger, and adding multiple kubectls to it will make it exceed size limits of package managers. So we can't do this right now, until we have invested significant engineering effort into lifting those limitations. In order to not break the backward compatibility with <=1.20 versions, it was decided to revert this addition PR until all the underlying issues around package size issues are resolved.

cc @rix0rrr

Close #19919


All Submissions:

Adding new Unconventional Dependencies:

  • This PR adds new unconventional dependencies following the process described here

New Features

  • Have you added the new feature to an integration test?
    • 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

@gitpod-io
Copy link

gitpod-io bot commented Apr 20, 2022

@github-actions github-actions bot added the p2 label Apr 20, 2022
@aws-cdk-automation aws-cdk-automation requested a review from a team April 20, 2022 20:02
@kaizencc
Copy link
Contributor

Unrelated, but you're the lucky winner for composing the 20,000th github issue!

@rix0rrr rix0rrr changed the title Revert "feat(eks): add k8s v1.22 (#19756)" fix(eks): remove non-complete support for k8s v1.22 Apr 21, 2022
rix0rrr
rix0rrr previously approved these changes Apr 21, 2022
@mergify mergify bot dismissed rix0rrr’s stale review April 21, 2022 16:56

Pull request has been modified.

comcalvi
comcalvi previously approved these changes Apr 21, 2022
This commit reverts addition of the latest version of EKS (1.22) to CDK as there are some incompatibilities between the current lambda-layer-kubectl and v1.22 EKS cluster.
Preferably we would have multiple versions fo kubectl lambda layer, but we are currently struggling with package size issues. kubectl is large, and our package is larger,
and adding multiple kubectls to it will make it exceed size limits of package managers. So we can't do this right now, until we have invested significant engineering
effort into lifting those limitations. In order to not break the backward compatibility with <=1.20 versions, it was decided to revert this addition PR until
all the underlying issues around package size issues are resolved.

This reverts commit 9a518c5.
@mergify mergify bot dismissed comcalvi’s stale review April 21, 2022 18:13

Pull request has been modified.

@robertd
Copy link
Contributor Author

robertd commented Apr 21, 2022

@comcalvi Build is failing on aws-lambda-python tests... I rebased on the latest master to see if that does the trick.

image

@github-actions github-actions bot added the bug This issue is a bug. label Apr 21, 2022
@rix0rrr rix0rrr changed the title fix(eks): remove non-complete support for k8s v1.22 fix(eks): remove incomplete support for k8s v1.22 Apr 21, 2022
rix0rrr
rix0rrr previously approved these changes Apr 21, 2022
@mergify mergify bot dismissed rix0rrr’s stale review April 21, 2022 21:37

Pull request has been modified.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: c4241df
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Apr 21, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit d38a9e4 into aws:master Apr 21, 2022
@robertd robertd deleted the revert-eks-1.22 branch April 22, 2022 04:18
StevePotter pushed a commit to StevePotter/aws-cdk that referenced this pull request Apr 27, 2022
Revert "feat(eks): add k8s v1.22 (aws#19756)"

This commit reverts addition of the latest version of EKS (1.22) to CDK as there are some incompatibilities between the current lambda-layer-kubectl and v1.22 EKS cluster. Preferably we would have multiple versions fo kubectl lambda layer, but we are currently struggling with package size issues. kubectl is large, and our package is larger, and adding multiple kubectls to it will make it exceed size limits of package managers. So we can't do this right now, until we have invested significant engineering effort into lifting those limitations. In order to not break the backward compatibility with <=1.20 versions, it was decided to revert this addition PR until all the underlying issues around package size issues are resolved.

cc @rix0rrr

Close aws#19919 

----

### All Submissions:

* [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/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/master/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*
@robertd
Copy link
Contributor Author

robertd commented May 2, 2022

Link #15736

@madeline-k
Copy link
Contributor

Hello, for anyone interested in re-rolling this PR. We are currently working on a mechanism to be able to add support for more versions of EKS to the AWS CDK. There is a project board here tracking the work: https://github.com/aws/aws-cdk/projects/15. There should be a new Pull Request this week to track as well.

@lalxyy
Copy link

lalxyy commented Sep 15, 2022

Hi, I'm still wondering when CDK will be able to provide full support for Kubernetes 1.22. Our company is depending on CDK for provisioning EKS, and we are also using some new features of Kubernetes that are only supported on 1.22. For now, we are using aws-cdk-lib 2.20.0 which provides (partial) support of 1.22 and can solve part of our issues, but we can't add new node groups to EKS due to the missing kubectl in CDK library. In the foreseeable future our project may be blocked furthermore due to the lack of support. I do respect that you are having technical difficulties on it but I still hope that the feature can be added back to CDK in the near future.

@leadelngalame1611
Copy link

leadelngalame1611 commented Oct 24, 2022

Hey,
any update on this issue? my company also depends on CDK for provisioning to EKS and since we upgraded EKS to version 1.22, we have been facing so serous issues during provisioning. A workaround we have been using was to set the Prune attribute to false in every resource, but this do not seem to resolve the problem. Downgrading back to version 1.21 is not an option for us.

@robertd
Copy link
Contributor Author

robertd commented Nov 8, 2022

@leadelngalame1611 Support for v1.22 and v1.23 landed in cdk v2.50.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants