question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KubernetesManifest Task - Kustomize bake action should allow image replacement

See original GitHub issue

Required 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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
shigupt202commented, Apr 28, 2020

@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.

1reaction
shigupt202commented, Apr 9, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found