I am trying use a private ECR chart repository with the format oci://<account id>.dkr.ecr.<region>.amazonaws.com/release/charts/<chart name>
Unfortunately, the OCI reference is not recognized and the helm login is not run beforehand.
This causes the chart pull to fail, preventing deployment.
Expected Behavior
The chart should be deployed successfully.
Current Behavior
Pulling from the chart repo fails because no login is attempted prior.
Reproduction Steps
Create a private ECR repo, and give it a multilevel prefix like release/charts/
Attempt to deploy the chart using the HelmChart construct
Possible Solution
The issues seems to be line 102 in the helm handler of the kubectl provider.
Inputting oci://<account id>.dkr.ecr.<region>.amazonaws.com/release/charts/<chart name>
results in <account id>.dkr.ecr.<region>.amazonaws.com/release/charts, which does not match the private_ecr_pattern.
Describe the bug
I am trying use a private ECR chart repository with the format
oci://<account id>.dkr.ecr.<region>.amazonaws.com/release/charts/<chart name>
Unfortunately, the OCI reference is not recognized and the helm login is not run beforehand. This causes the chart pull to fail, preventing deployment.
Expected Behavior
The chart should be deployed successfully.
Current Behavior
Pulling from the chart repo fails because no login is attempted prior.
Reproduction Steps
Possible Solution
The issues seems to be line 102 in the helm handler of the kubectl provider.
Inputting
oci://<account id>.dkr.ecr.<region>.amazonaws.com/release/charts/<chart name>
results in<account id>.dkr.ecr.<region>.amazonaws.com/release/charts
, which does not match theprivate_ecr_pattern
.I recommend replacing this line with:
Which would result in the correct output of
<account id>.dkr.ecr.<region>.amazonaws.com
Additional Information/Context
This bug is currently blocking the our usage of CDK to deploy helm charts
CDK CLI Version
2.53.0
Framework Version
No response
Node.js Version
16.16
OS
MacOS Monterrey
Language
Typescript
Language Version
No response
Other information
No response