-
Notifications
You must be signed in to change notification settings - Fork 85
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
[help] --enable-exec
breaks behavior: merge
#199
Comments
🤖 Hello, The issue you're experiencing is likely due to a known limitation in the Kustomize plugin framework. When using the This is because the Unfortunately, there's no direct workaround for this issue in KSOPS v4.2.1. You might need to manually merge the output of the KSOPS plugin with your other resources. As for your question about any changes or updates in the KSOPS codebase after version v4.2.1 that addresses this issue, I wasn't able to find an answer within the repository. It's possible that the answer may be available elsewhere or I could have missed it. I hope this helps clarify the situation. If you have any other questions or need further clarification, feel free to ask. Best regards, SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Hi @TheRealNoob thanks for making an issue. I'm not sure if the bot's response is correct (maybe GPT memorized this issue in training or maybe its hallucinating 🤷♂️), but I do think it's directionally correct in that the error seems like a kustomize bug. From a quick search I found one potentially related issue kubernetes-sigs/kustomize#5250 but need to dig deeper figure out what's going on. You might want to raise this issue in kustomize and see if they can help. Even if they narrow down the issue to KSOPS that would be useful. |
@devstein Thank you. please forgive my lack of understanding, i'm still new to Kustomize, but isn't |
Of course. If I understand your setup correctly, this isn't a bug but incorrect usage. In the you repo share, it looks like you are adding the merge behavior in the a deployment patch , then using KSOPs to apply the patch AND also applying it as normal patch When you use the Can you remove the deployment patch from the KSOPS generator and see if that fixes it? |
Ah there are two patch files. One encrypted one not. I'm doing a normal patch of one and a ksops patch of the other. When I try commenting out the proposed line it does return valid yaml now - the |
Hello! I am having a difficult time getting
kustomize.config.k8s.io/behavior: merge
to work for me. I suspect I'm probably doing something wrong, maybe somebody could point me in the right direction.I've created a small repo to make explaining my setup easier. I haven't encrypted the *.sops.yaml files so that you can see the contents. If you are to run this, these files have to be encrypted first. In this file below I show the diff between kustomizing this directory with and without
--enable-exec
.https://pastebin.com/JcJzmZUz
You'll notice that with enable-exec kustomize follows a
replace
strategy instead of `merge. Am I putting the annotation in the incorrect place?I tested this on my local machine with the below versions, but I also tested in the container image viaductoss/ksops:v4.2.1
The text was updated successfully, but these errors were encountered: