How to get Repository name and Image tag name through CDK #20646
-
Hi Guys, I have built a docker image and pushed to ECR repository. I want to pass the Repository name and Image tag to the helm chart. Is it possible through CDK python ?? asset = DockerImageAsset(self, "Image1", |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You'll need to start your helm chart with the repository. The documentation explains this: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.HelmChart.html eks.HelmChart(self, "MyOCIChart",
cluster=cluster,
chart="some-chart",
repository="oci://${ACCOUNT_ID}.dkr.ecr.${ACCOUNT_REGION}.amazonaws.com/${REPO_NAME}",
namespace="oci",
version="0.0.1"
) |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
You'll need to start your helm chart with the repository. The documentation explains this: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.HelmChart.html