jkube
jkube copied to clipboard
When k8s:push identifies a push to ECR, JKube should allow autocreating repo using aws-sdk if the repository does not exist
Component
Kubernetes Maven Plugin
Is your enhancement related to a problem? Please describe
ECR requires precreation of repositories in order for jkube being able to push images
Describe the solution you'd like
Since the repo information is configured at pom.xml/jkube level (with image name etc..), on a multi-project pipeline, and provided JKube can identify and connect to ECR repositories using aws-sdk specific code, I think there should be an optional flag to request auocreation of repository if the remote repo is not created
Describe alternatives you've considered
Having to parse project's pom.xml jkube metadata in order to infer the future repository name and later on attempt to create it from the pipeline script
Additional context
No response