viaduct-ai / kustomize-sops

KSOPS - A Flexible Kustomize Plugin for SOPS Encrypted Resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is ksop.so file still needed?

AnthonyWC opened this issue · comments

From local testing kustomize build would error out if this file wasn't found in $KUSTOMIZE_PLUGIN_HOME/viaduct.ai/v1/ksops but in viaductoss/ksops:v4.2.1 this file doesn't exists. Is this file still needed?

Hey @AnthonyWC thanks for making an issue! No ksops.so is no longer needed. kops.so was used for the v3 and earlier Go-style plugin, which kustomize has deprecated. See #127

The output binary is ksops (no suffix), which should be compatible with the old legacy exec style plugin and new KRM style plugin standard.

Hope this helps and let me know if you have follow up questions!

Hi. Got this error Error: loading generator plugins: failed to load generator: expected file with Go object code at: /Users/paragon/.config/kustomize/plugin/viaduct.ai/v1/ksops/ksops.so error: no objects passed to apply on mac air m1. kustomize(v5.0.1), sops(sops 3.7.3), ksops installed via brew. Pls help resolve this.

Hi @yuriididuk89 can you share the command you ran to get this error?

Also, see #195 if you are having issues installing on an M1

Thanks for your feedback.(kustomize build --enable-alpha-plugins kustomize/kitweb/stg/apps/ | kubectl apply -f -) But after a few hours of struggling with this error I finally solved it. Here is my solution and maybe it will help someone. In my case this command source <(curl -s https://raw.githubusercontent.com/viaduct-ai/kustomize-sops/master/scripts/install-ksops-archive.sh) did not work. So I downloaded the content from the script and created a script myself that I ran as sudo. Then mv /usr/local/bin/ksops /Users/paragon/.config/kustomize/plugin/viaduct.ai/v1/ksops/ and and everything worked. I also tested the following solution -- when I moved the binary file installed via brew into .config/kustomize/plugin/viaduct.ai/v1/ksops/ -- it didn't work And when I installed it from the script, everything worked fine and + ksops work without these variables export XDG_CONFIG_HOME=$HOME/.config export KUSTOMIZE_PLUGIN_HOME=$XDG_CONFIG_HOME/kustomize/plugin/.

@yuriididuk89 Sorry for all the issues, but glad to hear you fixed it. I'll prioritize #195 as soon as I can