-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(lambda-layer-kubectl): custom lambda layer for kubectl based on EKS version of the cluster #20596
Conversation
…EKS version of the cluster
Awesome! |
KUBECTL_VERSION: props.kubectlVersion, | ||
HELM_VERSION: '3.8.2', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KUBECTL_VERSION: props.kubectlVersion, | |
HELM_VERSION: '3.8.2', | |
KUBECTL_VERSION: props?.kubectlVersion ?? '1.20.0', | |
HELM_VERSION: props?.helmVersion ?? '3.8.1', |
If props undefined, the default versions should be the original versions, wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will KubectlLayer
ever be used outside of the Cluster constructor?
packages/@aws-cdk/lambda-layer-kubectl/test/kubectl-layer.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! Thanks for the PR @robertd !
It's pretty much the same with my experimental code today. Some suggested changes provided though and some considerations as below:
-
To avoid breaking changes, maybe we should allow the
props
to be optional with predefined defaults ofkubectl
andhelm
CLIs. However, users are allowed to customize them if necessary. -
We probably need a static mapping table in aws-eks for
cluster version
withkubectl version
, e.g.
cluster 1.22 should map to kubectl 1.22.6 according to this document so when we provision a 1.22 cluster, the kubectl of version1.22.6
lambda layer will be provisioned.
Thoughts?
Have discussed with @neilkuan today about this issue. What we can explore next this to pass the cluster version to here so the
|
support dynamic KubectlLayer for eks
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@pahud ... few notes:
|
According to the approach proposed in RFC 39, we are planning to publish |
@pahud Agreed. I think this PR draft was a valiant effort on our part, but I think breaking this into external module(s) is a better idea. Closing this PR draft. |
This is an early WIP/POC
All Submissions:
Adding new Unconventional Dependencies:
New Features
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