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

feat: initial kubectl layer construct #1

Merged
merged 7 commits into from
Sep 19, 2022
Merged

feat: initial kubectl layer construct #1

merged 7 commits into from
Sep 19, 2022

Conversation

kaizencc
Copy link
Contributor

@kaizencc kaizencc commented Sep 16, 2022

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 form kubeCtlAsset. 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.

.projenrc.js Outdated
defaultReleaseBranch: 'main',
name: 'awscdk-asset-kubectl',
name: '@aws-cdk/asset-kubectl-v1-20',
Copy link
Contributor Author

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?

Copy link
Contributor

@madeline-k madeline-k Sep 19, 2022

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

Copy link
Contributor Author

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.

Copy link
Contributor

@madeline-k madeline-k left a 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

@kaizencc
Copy link
Contributor Author

Is there an integration test to bring over from aws-cdk? Otherwise, looks good

No integ test in this module

github-actions and others added 3 commits September 19, 2022 16:57
Signed-off-by: github-actions <github-actions@github.com>
@mergify mergify bot merged commit d38d49d into main Sep 19, 2022
@mergify mergify bot deleted the conroy/first branch September 19, 2022 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants