-
Notifications
You must be signed in to change notification settings - Fork 11
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: initial kubectl layer construct #1
Conversation
.projenrc.js
Outdated
defaultReleaseBranch: 'main', | ||
name: 'awscdk-asset-kubectl', | ||
name: '@aws-cdk/asset-kubectl-v1-20', |
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.
Naming suggestions? @aws-cdk/asset-kubectl-v1.20
does not work. I don't know if people care about the minor version of kubectl here, maybe just @aws-cdk/asset-kubectl-v1
is sufficient?
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.
people do care about the minor version. Each minor version bump in kubernetes can have breaking changes. How about we borrow the convention from cdk8s-plus https://www.npmjs.com/package/cdk8s-plus-21
@aws-cdk/asset-kubectl-21
or @aws-cdk/asset-kubectl-v21
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.
Ok. Looks like this should be @aws-cdk/asset-kubectil-v20
then.
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.
Is there an integration test to bring over from aws-cdk? Otherwise, looks good
No integ test in this module |
Signed-off-by: github-actions <github-actions@github.com>
This is nearly a direct copy from https://github.com/aws/aws-cdk/tree/main/packages/%40aws-cdk/lambda-layer-kubectl with some changes to make it v2-compatible and projen-compatible.
Note: this exposes a
kubeCtlLayer
construct, not the final formkubeCtlAsset
. I figure it is better to start here and then update this repo in subsequent PRs. However, that means there are some inconsistencies with what I say this library exposes -- since this is not meant for active use right now, I feel like that is ok and will be corrected in a future PR.