-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
patchesStrategicMerge fix with go FixKustomizationPreMarshalling is broken #5499
Comments
This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
what's the output of |
On my PC it's:
But it is unrelated. |
you're doing make kustomizer object and call Run to perform like kustomize cli right? I haven't try it before, I may need time to reproduce it to see what happen |
@Noamrok kustomize/api/types/kustomization.go Lines 275 to 287 in 0c461d6
Have you put valid files when you exec fix? |
Hi, My files are valid (suppose to be) and this is what I dont understand, in my case: kind: Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
patchesStrategicMerge:
- gateway-patches/gcp-us-west1.yaml the apiVersion: Z/v1alpha1
kind: A
metadata:
name: B
namespace: C
spec:
lb:
address: D |
I wasn't reproducing in my computer with
Maybe you failed to call |
Hi, After further investigating @Noamrok's issue I think the problem is that the current working directory wasn't set to the folder of the I think it would be useful to be able to create a |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What happened?
We have the following kustomization.yaml file:
We are running kustomize using the golang api v0.15.0, and using the
FixKustomizationPreMarshalling
function.The output is:
and the kustomize on this file returns the following error:
What did you expect to happen?
We solved it by manually converting
patchesStrategicMerge
topatches
:We think this is the intended output that suppose to be.
How can we reproduce it (as minimally and precisely as possible)?
Expected output
Actual output
Kustomize version
v0.15.0
Operating system
None
The text was updated successfully, but these errors were encountered: