Closed
Description
$ 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 .