Conversation
|
Title does not follow the guidelines of Conventional Commits. Please adjust title before merge. |
b82b23c to
ef9bdc1
Compare
ef9bdc1 to
d48d326
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
| * The name of the chart or an Asset. | ||
| */ | ||
| readonly chart: string; | ||
| readonly chart: string | Asset; |
There was a problem hiding this comment.
We don't use union types since this translate poorly in other languages (namely Java and C#).
Instead, you'll have to create a different property called chartAsset (or something like that
| let chartAssetPolicy: Policy | undefined = undefined; | ||
|
|
||
| if (typeof props.chart !== 'string') { | ||
| // Use of props.chart.grantRead(provider.handlerRole) causes a |
There was a problem hiding this comment.
Can you elaborate please?
| expect(stack).to(haveResource(eks.HelmChart.RESOURCE_TYPE, { Release: 'hismostprobablylongerthanfiftythreecharacterscaf15d09' })); | ||
| test.done(); | ||
| }, | ||
| 'should handle chart from S3 asset'(test: Test) { |
There was a problem hiding this comment.
This also deserves an integ test. Please add add a case to https://github.com/aws/aws-cdk/blob/master/packages/@aws-cdk/aws-eks/test/integ.eks-cluster.ts
|
|
||
| Additionally, the `chart` property can be an `aws-s3-assets.Asset`, | ||
| allowing use of local, private charts. | ||
|
|
iliapolo
left a comment
There was a problem hiding this comment.
Mistakenly clicked on Comment instead of Request changes
|
This PR has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
|
Do not close. @iliapolo thanks for your feedback, I hope I'll be able to make the changes soon. |
|
I need to make the code review changes, and resolve the conflicts. However, I won't be able to do this for some time (weeks/months maybe) so I'm happy for anyone to take this PR and progress it if they wish. |
Thanks for the reply and foundation you've laid so far! I started poking around last night. I'm a noob and this would be my first major open source contribution - I've been working with CDK for <2 months. If you have any advice, specifically related to ideas you've thought about since your last attempt/commit, but have not had the time to implement. Currently, I was looking into implementing it as a Things I may need help on:
**Update: ** I believe I have a working solution, but am unable to test it due to a lambda cli layer error in Gitpod (https://community.gitpod.io/t/docker-inside-gitpod/3688). Because of this, I cannot run a unit test nor |
Adding on to the work @plumdog started on #13496 and @pradoz in #15899. Implemented the @iliapolo's [suggested changes](https://github.com/aws/aws-cdk/pull/15899/files#r683431181) Related to #9273 ### Use Case To be able to use private helm charts without needing a private chart repository. ### Proposed Solution [Allow helm charts](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-eks.HelmChart.html) to be an asset by introducing the property `chartAsset`. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Adding on to the work @plumdog started on aws#13496 and @pradoz in aws#15899. Implemented the @iliapolo's [suggested changes](https://github.com/aws/aws-cdk/pull/15899/files#r683431181) Related to aws#9273 ### Use Case To be able to use private helm charts without needing a private chart repository. ### Proposed Solution [Allow helm charts](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-eks.HelmChart.html) to be an asset by introducing the property `chartAsset`. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
See #9273 (and #10247)
This is my attempt to make that work. I think the API is a bit less nice that described in #9273 (comment) but requires less code and thus less decisions for me to make.
The permissions juggling is the bit I like least, but what I've landed on appears to work.
I haven't attempt to write any tests yet, as I'm not yet convinced I'm heading in the right direction.I have added a test to make CI happy. I suspect the test could be made less ugly.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license