We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
kpt fn run
$ kpt pkg get git@github.com:GoogleContainerTools/kpt-functions-sdk.git/example-configs example-configs $ cd example-configs
This works:
kpt fn source . | kpt fn run --image gcr.io/kpt-functions/label-namespace -- label_name=color label_value=orange | kpt fn sink .
This doesn't:
$ cat << EOF > kpt-func.yaml apiVersion: v1 kind: ConfigMap metadata: name: my-config annotations: config.k8s.io/function: | container: image: gcr.io/kpt-functions/label-namespace config.kubernetes.io/local-config: "true" data: label_name: color label_value: orange EOF $ kpt fn source .
Removing scoping rules, will run the function:
kpt fn run --global-scope .
The text was updated successfully, but these errors were encountered:
Root cause is that code is using strings.HasPrefix(resourceDir, dir) to do subdirectory match.
strings.HasPrefix(resourceDir, dir)
Sorry, something went wrong.
Fix: kubernetes-sigs/kustomize#2165
frankfarzan
No branches or pull requests
This works:
This doesn't:
Removing scoping rules, will run the function:
The text was updated successfully, but these errors were encountered: