knative/func

Double quotes in func.yaml overwritten with single quotes

nettrino opened this issue · 3 comments

Hello all,

I have a func.yaml which accesses secrets like so:

specVersion: 0.35.0
...
invoke: cloudevent
build:
  builder: pack
run:
  envs:
    - name: GITHUB_APP_ID
      value: "{{ secret:github-app-id:GITHUB_APP_ID }}"
    - name: GITHUB_APP_PRIVATE_KEY
      value: "{{ secret:github-app-private-key:GITHUB_APP_PRIVATE_KEY }}"
...

Upon running kn func deploy --build, func.yaml is being overwritten and double quotes are replaced with single quotes, and as a result the env variables are not fetched dynamically as they should but interpreted as fixed strings.

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

/remove-lifecycle stale

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.