Go to Katenary V3
This is the next-gen of Katenary
This commit is contained in:
49
examples/cronjobs/chart/README.md
Normal file
49
examples/cronjobs/chart/README.md
Normal file
@@ -0,0 +1,49 @@
|
||||
# cronjobs
|
||||
|
||||
A Helm chart for cronjobs
|
||||
|
||||
## Installing the Chart
|
||||
|
||||
To install the chart with the release name `my-release`:
|
||||
|
||||
```bash
|
||||
# Standard Helm install
|
||||
$ helm install my-release cronjobs
|
||||
|
||||
# To use a custom namespace and force the creation of the namespace
|
||||
$ helm install my-release --namespace my-namespace --create-namespace cronjobs
|
||||
|
||||
# To use a custom values file
|
||||
$ helm install my-release -f my-values.yaml cronjobs
|
||||
```
|
||||
|
||||
See the [Helm documentation](https://helm.sh/docs/intro/using_helm/) for more information on installing and managing the chart.
|
||||
|
||||
## Configuration
|
||||
|
||||
The following table lists the configurable parameters of the cronjobs chart and their default values.
|
||||
|
||||
| Parameter | Default |
|
||||
| ----------------------------------- | -------------- |
|
||||
| `app.imagePullPolicy` | `IfNotPresent` |
|
||||
| `app.replicas` | `1` |
|
||||
| `app.repository.image` | `nginx` |
|
||||
| `app.repository.tag` | `` |
|
||||
| `backup.cronjob.imagePullPolicy` | `IfNotPresent` |
|
||||
| `backup.cronjob.repository.image` | `alpine` |
|
||||
| `backup.cronjob.repository.tag` | `1` |
|
||||
| `backup.cronjob.schedule` | `@hourly` |
|
||||
| `backup.imagePullPolicy` | `IfNotPresent` |
|
||||
| `backup.replicas` | `1` |
|
||||
| `backup.repository.image` | `alpine` |
|
||||
| `backup.repository.tag` | `1` |
|
||||
| `withrbac.cronjob.imagePullPolicy` | `IfNotPresent` |
|
||||
| `withrbac.cronjob.repository.image` | `busybox` |
|
||||
| `withrbac.cronjob.repository.tag` | `` |
|
||||
| `withrbac.cronjob.schedule` | `@daily` |
|
||||
| `withrbac.imagePullPolicy` | `IfNotPresent` |
|
||||
| `withrbac.replicas` | `1` |
|
||||
| `withrbac.repository.image` | `busybox` |
|
||||
| `withrbac.repository.tag` | `` |
|
||||
|
||||
|
27
examples/cronjobs/chart/templates/NOTES.txt
Normal file
27
examples/cronjobs/chart/templates/NOTES.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
Your release is named {{ .Release.Name }}.
|
||||
|
||||
To learn more about the release, try:
|
||||
|
||||
$ helm -n {{ .Release.Namespace }} status {{ .Release.Name }}
|
||||
$ helm -n {{ .Release.Namespace }} get all {{ .Release.Name }}
|
||||
|
||||
To delete the release, run:
|
||||
|
||||
$ helm -n {{ .Release.Namespace }} delete {{ .Release.Name }}
|
||||
|
||||
You can see this notes again by running:
|
||||
|
||||
$ helm -n {{ .Release.Namespace }} get notes {{ .Release.Name }}
|
||||
|
||||
{{- $count := 0 -}}
|
||||
{{- range $s, $v := .Values -}}
|
||||
{{- if and $v $v.ingress -}}
|
||||
{{- $count = add $count 1 -}}
|
||||
{{- if eq $count 1 }}
|
||||
|
||||
The ingress list is:
|
||||
{{ end }}
|
||||
- {{ $s }}: http://{{ $v.ingress.host }}{{ $v.ingress.path }}
|
||||
{{- end -}}
|
||||
{{ end -}}
|
||||
|
36
examples/cronjobs/chart/templates/_helpers.tpl
Normal file
36
examples/cronjobs/chart/templates/_helpers.tpl
Normal file
@@ -0,0 +1,36 @@
|
||||
{{- define "cronjobs.fullname" -}}
|
||||
{{- if .Values.fullnameOverride -}}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
||||
{{- if contains $name .Release.Name -}}
|
||||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "cronjobs.name" -}}
|
||||
{{- if .Values.nameOverride -}}
|
||||
{{- .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "cronjobs.labels" -}}
|
||||
{{ include "cronjobs.selectorLabels" .}}
|
||||
{{ if .Chart.Version -}}
|
||||
{{ printf "katenary.v3/chart-version: %s" .Chart.Version }}
|
||||
{{- end }}
|
||||
{{ if .Chart.AppVersion -}}
|
||||
{{ printf "katenary.v3/app-version: %s" .Chart.AppVersion }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "cronjobs.selectorLabels" -}}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
||||
{{ printf "katenary.v3/name: %s" $name }}
|
||||
{{ printf "katenary.v3/instance: %s" .Release.Name }}
|
||||
{{- end -}}
|
Reference in New Issue
Block a user