Skip to content
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

feat: reference ConfigMaps in envs and volumes sections in config #371

Merged
merged 1 commit into from
Jun 4, 2021

Conversation

zroubalik
Copy link
Contributor

Signed-off-by: Zbynek Roubalik zroubali@redhat.com

Follow up on #369, users can reference Kubernetes ConfigMaps in the func.yaml, in envs and volumes sections the same way it is done for Secrets, see the example:

name: test
namespace: ""
runtime: go
...
volumes:
- configMap: mycm3
  path: /workspace/configmap
envs:
- name: EXAMPLE1
  value: myvalue
- name: EXAMPLE2
  value: '{{ env.LOCAL_ENV_VALUE }}'
- name: EXAMPLE3
  value: '{{ configMap.mycm2.EXAMPLE3 }}'
- value: '{{ configMap.mycm }}'

Relates: #362

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
config.go Show resolved Hide resolved
@zroubalik zroubalik merged commit 1dbb5ae into knative:main Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants