-
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
kustomize can't load builtin transformers when leveraging 'transformers:' entry #1508
Comments
After rebuilding kustomize from master (make install) : $HOME/bin/kustomize build $DEMO_HOME --enable_alpha_plugins
Error: plugin /home/xxx/.config/kustomize/plugin/builtin/prefixsuffixtransformer/PrefixSuffixTransformer fails to load: plugin.Open("/home/xxx/.config/kustomize/plugin/builtin/prefixsuffixtransformer/PrefixSuffixTransformer.so"): realpath failed and building and installing the PrefixSuffixTransformer.go (GOPATH=$myGoPath GO111MODULE=on go build -buildmode plugin -o ${HOME}/.config/kustomize/${i}.so ./$i.go), it seems to behave properly $HOME/bin/kustomize build $DEMO_HOME --enable_alpha_plugins apiVersion: v1
kind: Role
metadata:
name: myRole
---
apiVersion: v1
kind: Service
metadata:
name: zzz-myService
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: zzz-myDeployment
spec:
template:
metadata:
labels:
backend: awesome
spec:
containers:
- image: whatever
name: whatever |
/assign @monopole @Liujingfang1 |
I've been able to replicate this in my environment. It seems that configuring plugins requires the user to have the compiled |
Thanks guys, my fault. |
@monopole Cool, this is one major step in being able to use built in plugins, bring a lot of flexibility and still keep the kustomization.yaml simple. I'll revisit the KEP. |
This example is a reproduction of automatic feature test:
customconfigofbuiltinplugin_test.go
but is run from the command line as a normal user:kustomize does not seem to be able to locate the plugin and looks for it XDG_CONFIG_HOME
To reproduce:
$HOME/bin/kustomize.3.1.0 version Version: {KustomizeVersion:3.1.0 GitCommit:95f3303493fdea243ae83b767978092396169baf BuildDate:2019-07-26T18:11:16Z GoOs:linux GoArch:amd64}
The text was updated successfully, but these errors were encountered: