airshipctl/manifests/function/airshipctl-base-catalogues/env-vars-template.yaml
siraj.yasin c417060e02 Templater config syntax update for env vars
* Env vars were not replaced in the templater and is always empty string
  in the rendered yamls.
* Updated the correct syntax for using env in templater

Change-Id: I840d7d246d1408addbe9871e1e251e15a35e0305
2021-02-12 15:48:57 +00:00

33 lines
828 B
YAML

apiVersion: airshipit.org/v1alpha1
kind: Templater
metadata:
name: env-vars-template
labels:
airshipit.org/deploy-k8s: "false"
annotations:
config.kubernetes.io/function: |-
container:
image: quay.io/airshipit/templater:latest
envs:
- HTTP_PROXY
- HTTPS_PROXY
- http_proxy
- https_proxy
- NO_PROXY
- no_proxy
template: |
---
apiVersion: airshipit.org/v1alpha1
kind: VariableCatalogue
metadata:
labels:
airshipit.org/deploy-k8s: "false"
name: env-vars-catalogue
env:
HTTP_PROXY: '{{ env "HTTP_PROXY" }}'
HTTPS_PROXY: '{{ env "HTTPS_PROXY" }}'
http_proxy: '{{ env "http_proxy" }}'
https_proxy: '{{ env "https_proxy" }}'
NO_PROXY: '{{ env "NO_PROXY" }}'
no_proxy: '{{ env "no_proxy" }}'