-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
apiVersion: v2 | ||
name: base-cronjob | ||
description: A Helm chart for Kubernetes | ||
|
||
type: application | ||
version: 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "name" -}} | ||
{{- default .Values.name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} |
30 changes: 30 additions & 0 deletions
30
kubernetes/charts/base/chart-cronjob/templates/cronjob.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: {{ template "name" . }} | ||
labels: | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" | ||
spec: | ||
schedule: {{ .Values.schedule }} | ||
jobTemplate: | ||
metadata: | ||
name: {{ template "name" . }} | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
{{ range .Values.containers }} | ||
- name: {{ .name }} | ||
image: "{{ .repository }}:{{ .tag }}" | ||
command: {{ .command | default list | toYaml | nindent 16 }} | ||
args: {{ .args | default list | toYaml | nindent 16 }} | ||
env: {{ .env | default list | toYaml | nindent 16 }} | ||
envFrom: {{ .envFrom | default list | toYaml | nindent 16 }} | ||
volumeMounts: {{ toYaml .volumeMounts | default list | nindent 16 }} | ||
{{ end }} | ||
restartPolicy: Never | ||
volumes: {{ toYaml .Values.volumes | default list | nindent 12 }} | ||
tolerations: {{ toYaml .Values.tolerations | default list | nindent 12 }} | ||
{{ if .Values.nodeSelector }} | ||
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 12 }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters