Hi
I'm trying to develop a kpt function to transform images. I'd like to identify all images with a given prefix and change that prefix to a new prefix.
I initially created a
function based off the kustomize fn examples. This worked but it uses annotations on every object to specify the new refix and old prefix.
I'm now trying to change it to match the kpt fn examples because I'd like to configure it declaratively using a clientside custom resource to configure the function.
I tried creating a
config and then running my function
I ran kpt fn run ./ and it ran with no errors but had no effect. So now I need to debug and figure out what's going wrong.
Is there a way I can invoke main.go directly so I can invoke it in my debugger?
It looks like the
main is just reading from stdin and writing to stdout so I tried just using cat to stream the input
cat ./kubeflow-apps/apps_v1_deployment_jupyter-web-app-deployment.yaml image-prefix-function.yaml | ~/git_kubeflow-kfctl/kustomize-fns/kustomize-fns
Is that the right approach?
Thanks
J