Try with templates

This commit is contained in:
Nikolai Rodionov 2023-02-22 22:21:46 +01:00
parent 89555f45cd
commit 1bfefb404e
3 changed files with 16 additions and 11 deletions

View File

@ -36,9 +36,6 @@ releases:
installed: true installed: true
namespace: gitea-service namespace: gitea-service
createNamespace: false createNamespace: false
dependencies:
- chart: bedag/raw
version: 2.0.0
- <<: *funkwhale - <<: *funkwhale
installed: true installed: true

View File

@ -1,12 +1,5 @@
raw: istio:
enabled: true enabled: true
global:
imageRegistry: "company-registry/"
# Consider this Image tag Mainly. But considers global imageRegistry, if set by parent chart.
image:
registry: docker.io
repository: bitnami/apache
hostname: git.badhouseplants.net hostname: git.badhouseplants.net
templates: templates:
- | - |

View File

@ -1,5 +1,8 @@
--- ---
templates: templates:
# ---------------------------
# -- Hooks
# ---------------------------
crd-management-hook: crd-management-hook:
hooks: hooks:
- events: ["preapply"] - events: ["preapply"]
@ -20,6 +23,9 @@ templates:
args: args:
- -c - -c
- "helm show crds {{ .Release.Chart }} --version {{ .Release.Version }} | kubectl delete -f -" - "helm show crds {{ .Release.Chart }} --version {{ .Release.Version }} | kubectl delete -f -"
# ----------------------------
# -- Configs
# ----------------------------
default-env-values: default-env-values:
values: values:
- "{{ requiredEnv \"PWD\" }}/{{ .Environment.Name }}/values/values.{{ .Release.Name }}.yaml" - "{{ requiredEnv \"PWD\" }}/{{ .Environment.Name }}/values/values.{{ .Release.Name }}.yaml"
@ -27,6 +33,14 @@ templates:
secrets: secrets:
- "{{ requiredEnv \"PWD\" }}/{{ .Environment.Name }}/values/secrets.{{ .Release.Name }}.yaml" - "{{ requiredEnv \"PWD\" }}/{{ .Environment.Name }}/values/secrets.{{ .Release.Name }}.yaml"
# ---------------------------- # ----------------------------
# -- Extensions
# ----------------------------
istio-resource:
dependencies:
- chart: bedag/raw
version: 2.0.0
alias: istio
# ----------------------------
# -- Releases # -- Releases
# ---------------------------- # ----------------------------
# -- System # -- System
@ -142,6 +156,7 @@ templates:
inherit: inherit:
- template: default-env-values - template: default-env-values
- template: default-env-secrets - template: default-env-secrets
- template: istio-resource
funkwhale: &funkwhale funkwhale: &funkwhale
name: funkwhale name: funkwhale