c417060e02
* 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
33 lines
828 B
YAML
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" }}'
|