Skip to content

build(makefile): use stream editing for kustomize image replacement#130

Closed
fernando-villalba wants to merge 1 commit intomainfrom
build/clean-kustomize-deploy
Closed

build(makefile): use stream editing for kustomize image replacement#130
fernando-villalba wants to merge 1 commit intomainfrom
build/clean-kustomize-deploy

Conversation

@fernando-villalba
Copy link
Collaborator

@fernando-villalba fernando-villalba commented Jan 21, 2026

The make kind-deploy target was modifying config/manager/kustomization.yaml in-place, causing persistent git diffs and requiring manual reverts. This polluted the git status and risked accidental commits of ephemeral tags (and caused issues with rebases too)

  • Replaced kustomize edit set image with a sed stream replacement pipeline
  • Reset config/manager/kustomization.yaml image tag to latest
  • Applied this pattern to deploy, kind-deploy, certmanager, and no-webhook targets

Ensures local development builds remain ephemeral and do not modify source control files.

The `make kind-deploy` target was modifying config/manager/kustomization.yaml
in-place, causing persistent git diffs and requiring manual reverts.
This polluted the git status and risked accidental commits of ephemeral tags (and caused issues with rebases too)

- Replaced `kustomize edit set image` with a `sed` stream replacement pipeline
- Reset config/manager/kustomization.yaml image tag to `latest`
- Applied this pattern to `deploy`, `kind-deploy`, `certmanager`, and `no-webhook` targets

Ensures local development builds remain ephemeral and do not modify source control files.
@github-actions
Copy link

🔬 Go Test Coverage Report

Summary

Coverage Type Result
Threshold 0%
Previous Test Coverage 0.0%
New Test Coverage 0.0%

Status

✅ PASS

Detail

Show New Coverage
total:	(statements)	0.0%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant