Skip to content

kustomize: fix kustomization.yaml path on Windows - #1154

Merged
matheuscscp merged 1 commit into
fluxcd:mainfrom
Drupi:fix-windows-build-paths
Mar 30, 2026
Merged

matheuscscp merged 1 commit into
fluxcd:mainfrom
Drupi:fix-windows-build-paths

Conversation

@Drupi

@Drupi Drupi commented Mar 29, 2026 •

Copy link
Copy Markdown
Contributor

Refactor kustomization backup logic for better path handling

This PR addresses: fluxcd/flux2#5673

This PR updates the WithSaveOriginalKustomization function to use filepath.Base when creating backup files instead of path.Base

Tests and E2E passed locally

@Drupi
Drupi force-pushed the fix-windows-build-paths branch from 434a723 to e9276d0 Compare March 29, 2026 20:32
@Drupi
Drupi marked this pull request as ready for review March 29, 2026 20:59
@Drupi
Drupi requested a review from stefanprodan as a code owner March 29, 2026 20:59
@stefanprodan stefanprodan changed the title fix:failed to generate kustomization.yaml on Windows kustomize: fix kustomization.yaml path on Windows Mar 30, 2026
@stefanprodan stefanprodan added bug Something isn't working area/kustomize Kustomize related issues and pull requests backport:flux/v2.8.x To be backported to flux/v2.8.x labels Mar 30, 2026

@matheuscscp matheuscscp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@matheuscscp
matheuscscp merged commit 90cfd68 into fluxcd:main Mar 30, 2026
17 checks passed
@fluxcdbot

Copy link
Copy Markdown
Member

Successfully created backport PR for flux/v2.8.x:

@Drupi
Drupi deleted the fix-windows-build-paths branch March 30, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/kustomize Kustomize related issues and pull requests backport:flux/v2.8.x To be backported to flux/v2.8.x bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants