declare tools (#1)
Reviewed-on: https://gitea.arcodange.duckdns.org/arcodange-org/tools/pulls/1 Co-authored-by: Gabriel Radureau <arcodange@gmail.com> Co-committed-by: Gabriel Radureau <arcodange@gmail.com>
This commit is contained in:
13
tool/templates/_helm-chart-config.yaml
Normal file
13
tool/templates/_helm-chart-config.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
{{- define "tool.helm-chart-config.tpl" -}}
|
||||
{{- $name := .Release.Name -}}
|
||||
{{ with ( .Values.values ) }}
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChartConfig
|
||||
metadata:
|
||||
name: {{ $name }}
|
||||
namespace: tools
|
||||
spec:
|
||||
valuesContent: |-
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
14
tool/templates/_helm-chart.yaml
Normal file
14
tool/templates/_helm-chart.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
{{- define "tool.helm-chart.tpl" -}}
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
namespace: tools
|
||||
spec:
|
||||
repo: {{ .Values.repo }}
|
||||
chart: {{ .Values.chart }}
|
||||
{{ with .Values.version -}}
|
||||
version: {{ . }}
|
||||
{{ end -}}
|
||||
targetNamespace: tools
|
||||
{{- end -}}
|
||||
3
tool/templates/helm-chart-config.yaml
Normal file
3
tool/templates/helm-chart-config.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
# {{- if eq .Values.kind "HelmChart" -}}
|
||||
# {{- include "tool.helm-chart-config.tpl" . -}}
|
||||
# {{- end -}}
|
||||
3
tool/templates/helm-chart.yaml
Normal file
3
tool/templates/helm-chart.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
# {{- if eq .Values.kind "HelmChart" -}}
|
||||
# {{- include "tool.helm-chart.tpl" . -}}
|
||||
# {{- end -}}
|
||||
Reference in New Issue
Block a user