2023-12-20 23:51:20 +01:00
|
|
|
{{ define "chart.header" }}= {{ .Name }}
|
|
|
|
{{ end }}
|
|
|
|
{{ define "chart.versionBadge" }}
|
|
|
|
image::https://img.shields.io/badge/Version-{{ .Version | replace "-" "--" }}-informational?style=flat-square[Version: {{ .Version }}]{{end}}
|
|
|
|
{{ define "chart.typeBadge" }}
|
|
|
|
image::https://img.shields.io/badge/Version-{{ .Type }}-informational?style=flat-square[Type: {{ .Type }}]{{end}}
|
|
|
|
{{ define "chart.appVersionBadge" }}{{- if (ne .AppVersion "") }}
|
|
|
|
image::https://img.shields.io/badge/AppVersion-{{ .AppVersion }}-informational?style=flat-square[AppVersion: {{ .AppVersion }}]{{ end }}{{end}}
|
|
|
|
{{ define "chart.maintainersHeader" }}== Maintainers{{ end }}
|
|
|
|
{{ define "chart.maintainersTable" }}.Maintainers
|
|
|
|
|===
|
|
|
|
| Name | Email | Url
|
|
|
|
{{- range .Maintainers }}
|
|
|
|
|
|
|
|
| {{ .Name }}
|
|
|
|
| {{ if .Email }}<{{ .Email }}>{{ end }}
|
|
|
|
| {{ if .Url }}<{{ .Url }}>{{ end }}
|
|
|
|
{{- end }}
|
|
|
|
|===
|
|
|
|
{{ end }}
|
|
|
|
{{ define "chart.valuesHeader" }}== Values{{ end }}
|
2024-04-03 15:48:03 +02:00
|
|
|
{{ define "chart.valuesTable" -}}
|
|
|
|
{{- if .Sections.Sections -}}
|
|
|
|
{{- range .Sections.Sections }}
|
|
|
|
.Values {{.SectionName }}
|
|
|
|
{{ template "chart.valuesOneTable" .SectionItems }}
|
|
|
|
{{- end }}{{/* range sections*/}}
|
|
|
|
{{- if .Sections.DefaultSection.SectionItems -}}
|
|
|
|
.Values {{.Sections.DefaultSection.SectionName }}
|
|
|
|
{{ template "chart.valuesOneTable" .Sections.DefaultSection.SectionItems }}
|
|
|
|
{{- end }}{{/* end default section */}}
|
|
|
|
{{- else }}{{/* if no sections */}}
|
|
|
|
.Values
|
|
|
|
{{ template "chart.valuesOneTable" .Values }}
|
|
|
|
{{- end }}
|
|
|
|
{{ end }}{{/* end chart.valuesTable */}}
|
|
|
|
{{ define "chart.valuesOneTable" -}}
|
2023-12-20 23:51:20 +01:00
|
|
|
|===
|
|
|
|
| Key | Type | Default | Description
|
2024-04-03 15:48:03 +02:00
|
|
|
{{- range . }}
|
2023-12-20 23:51:20 +01:00
|
|
|
|
|
|
|
| {{ .Key }}
|
|
|
|
| {{ .Type }}
|
|
|
|
| {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }}
|
|
|
|
| {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }}
|
|
|
|
{{- end }}
|
|
|
|
|===
|
2024-04-03 15:48:03 +02:00
|
|
|
{{ end }}{{/* end chart.valuesOneTable */}}
|
2023-12-20 23:51:20 +01:00
|
|
|
|
|
|
|
{{- define "chart.prerequirements" -}}{{- end -}}
|
|
|
|
|
|
|
|
{{ template "chart.header" . }}
|
|
|
|
{{ template "chart.deprecationWarning" . }}
|
|
|
|
|
|
|
|
{{ template "chart.badgesSection" . }}
|
|
|
|
{{ template "chart.maintainersSection" . }}
|
|
|
|
|
|
|
|
{{ template "chart.prerequirements" . }}
|
|
|
|
|
|
|
|
== Usage
|
|
|
|
|
|
|
|
Helm must be installed and setup to your kubernetes cluster to use the charts.
|
|
|
|
Refer to Helm's https://helm.sh/docs[documentation] to get started.
|
|
|
|
Once Helm has been set up correctly, fetch the charts as follows:
|
|
|
|
|
|
|
|
[source,bash]
|
|
|
|
----
|
|
|
|
helm pull oci://codeberg.org/wrenix/helm-charts/{{ template "chart.name" . }}
|
|
|
|
----
|
|
|
|
|
|
|
|
You can install a chart release using the following command:
|
|
|
|
|
|
|
|
[source,bash]
|
|
|
|
----
|
|
|
|
helm install {{ template "chart.name" . }}-release oci://codeberg.org/wrenix/helm-charts/{{ template "chart.name" . }} --values values.yaml
|
|
|
|
----
|
|
|
|
|
|
|
|
To uninstall a chart release use `helm`'s delete command:
|
|
|
|
|
|
|
|
[source,bash]
|
|
|
|
----
|
|
|
|
helm uninstall {{ template "chart.name" . }}-release
|
|
|
|
----
|
|
|
|
|
|
|
|
{{ template "chart.valuesSection" . }}
|
|
|
|
|
|
|
|
Autogenerated from chart metadata using https://github.com/norwoodj/helm-docs[helm-docs]
|