KubernetesManifest Task - Kustomize bake action should allow image replacement
See original GitHub issueRequired Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Feature Enter Task Name: KubernetesManifest@0
Environment
- Server - Azure Pipelines
- Agent - Hosted
Issue Description
Kustomize bake action should allow image replacement like the Helm bake action allows overrides.
I want to be able to use Kustomize’s image substitution to update image tags without having to use a deploy action. Notation can be just like the deploy action, aka:
containers: |
nginx: 1.7.9
my-repo/image: some-new-tag
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
KubernetesManifest@0 - Deploy to Kubernetes v0 task
Use a Kubernetes manifest task in a build or release pipeline to bake and deploy manifests to Kubernetes clusters using Helm charts.
Read more >Azure Pipline Deploy to Kubernetes: Override image reference
But the placeholder is not replaced at all and the pod fails with invalid image refernece. Can Azure DevOps do this or do...
Read more >Geert Baeke – Page 3
In the run: section, we specify that this action uses Docker. When you use image: Dockerfile, the workflow will build the Docker image...
Read more >Loading dynamic configurations in Kubernetes Kustomize
For example, we could include placeholders in the kustomization.yaml file, but then replace the placeholders with the actual configurations.
Read more >aws-cdk/pipelines module - AWS Documentation - Amazon.com
The pipeline will be triggered every time an image is pushed to ECR: ... This class has a number of properties that allow...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@strikeout Had a discussion with the team on this. It seems better to use a common solution of image substitution for all the methods of bake action, instead of using tool specific ways. So, we’ll port the image substitution logic for this use case.
After discussing with @ds-ms and @azooinmyluggage, it looks like a better way of variable substitution for very specific use cases like these would be using a script in the pipeline, instead of adding the artifact substitution logic for every case. @strikeout You can use a script to replace image name in your pipeline.