Files
manifests/helmfile.d/namecheap-webhook.yaml.gotmpl

43 lines
1.3 KiB
Go Template

bases:
- ../envs/environments.yaml.gotmpl
repositories:
- name: namecheap-webhook
url: git+https://github.com/kelvie/cert-manager-webhook-namecheap@deploy?ref=master
commonLabels:
tier: system
releases:
- name: namecheap-webhook
namespace: cert-manager
chart: namecheap-webhook/cert-manager-webhook-namecheap
condition: namecheap.enabled
values:
- ../values/namecheap-webhook/values/namecheap-webhook.yaml.gotmpl
- ../values/namecheap-webhook/values/namecheap-webhook-{{ .Environment.Name }}.yaml.gotmpl
postRenderer: ../bin/kustomizer
postRendererArgs:
- ../values/namecheap-webhook/kustomize/{{ .Environment.Name }}
missingFileHandler: Info
- name: manifests
namespace: cert-manager
chart: manifests
condition: namecheap.enabled
missingFileHandler: Info
values:
- ../values/env.yaml
- ../values/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml
- ../values/namecheap-webhook/env.yaml.gotmpl
- ../values/namecheap-webhook/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml.gotmpl
hooks:
- events: [ prepare, cleanup ]
showlogs: true
command: ../bin/helmify
args:
- '{{`{{ if eq .Event.Name "prepare" }}build{{ else }}clean{{ end }}`}}'
- '{{`{{ .Release.Chart }}`}}'
- '{{`{{ .Environment.Name }}`}}'
- ../values/namecheap-webhook/manifests
- manifests