Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

clean paths before comparison #867

Merged

Conversation

laverya
Copy link
Member

@laverya laverya commented Mar 14, 2019

What I Did

Fixes #831 by cleaning the paths to the patches before comparing them.

How I Did it

We didn’t handle comparing ./path/to/resource.yaml with path/to/resource.yaml as part of the k8s patch comparison process. Now we run filepath.Clean on those paths before the comparison.

How to verify it

Description for the Changelog

Fixed an issue that could prevent kustomize patches from being saved.

Picture of a Ship (not required but encouraged)

USS Stribling (DD-867)

@laverya laverya requested a review from Rob0h March 14, 2019 21:28
@laverya laverya merged commit 6c2fcb4 into replicatedhq:master Mar 14, 2019
@laverya laverya deleted the we-were-unable-to-apply-your-patch branch March 14, 2019 22:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants