Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/kasm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ keywords:
maintainers:
- name: Kasm Technologies, Inc.
url: https://github.com/kasmtech/kasm-helm
version: 1.1181.0
version: 1.1181.1
11 changes: 5 additions & 6 deletions charts/kasm/templates/db-init-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ metadata:
labels:
app.kubernetes.io/name: {{ .Release.Name }}-db-init
{{- include "kasm.defaultLabels" . | indent 4 }}
{{- with .Values.components.api.labels }}{{- toYaml . | nindent 4 }}{{- end }}
{{- with .Values.components.init_db.labels }}{{- toYaml . | nindent 4 }}{{- end }}
{{- with .Values.extraLabels.job }}{{- toYaml . | nindent 4 }}{{- end }}
{{- with .Values.labels }}{{- toYaml . | nindent 4 }}{{- end }}
{{- with .Values.components.api.annotations }}
{{- with .Values.components.init_db.annotations }}
annotations: {{- toYaml . | nindent 4 }}
helm.sh/hook: pre-install
{{- end }}
spec:
ttlSecondsAfterFinished: 100
Expand All @@ -26,13 +25,13 @@ spec:
app.kubernetes.io/name: {{ .Release.Name }}-db-init
app.kubernetes.io/component: db-init
{{- include "kasm.defaultLabels" . | indent 8 }}
{{- with .Values.components.api.labels }}{{ toYaml . | nindent 8 }}{{- end }}
{{- with .Values.components.init_db.labels }}{{ toYaml . | nindent 8 }}{{- end }}
{{- with .Values.extraLabels.jobPod }}{{ toYaml . | nindent 8 }}{{- end }}
{{- with .Values.labels }}{{- toYaml . | nindent 8 }}{{- end }}
{{- if or .Values.components.api.annotations .Values.annotations.pod }}
{{- if or .Values.components.init_db.annotations .Values.annotations.pod }}
annotations:
{{- with .Values.annotations.pod }}{{ toYaml . | nindent 8 }}{{- end }}
{{- with .Values.components.api.annotations }}{{ toYaml . | nindent 8 }}{{- end }}
{{- with .Values.components.init_db.annotations }}{{ toYaml . | nindent 8 }}{{- end }}
{{- end }}
spec:
{{- if .Values.imagePullSecrets.enabled }}
Expand Down
24 changes: 24 additions & 0 deletions charts/kasm/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,30 @@
"labels"
]
},
"init_db": {
"additionalProperties": false,
"description": "Configuration settings for the DB initialization job",
"properties": {
"annotations": {
"additionalProperties": true,
"description": "Custom annotations to add to the DB init Job. By default includes helm.sh/hook for Helm deployments. ArgoCD users should override this to remove the hook to prevent deployment deadlocks.",
"title": "annotations",
"type": "object"
},
"labels": {
"additionalProperties": true,
"description": "Custom labels to add to the DB init Job",
"title": "labels",
"type": "object"
}
},
"title": "init_db",
"type": "object",
"requied": [
"annotations",
"labels"
]
},
"guac": {
"additionalProperties": false,
"description": " ",
Expand Down
10 changes: 10 additions & 0 deletions charts/kasm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,16 @@ components:
resources: {}
# components.api.labels -- Custom labels to add to the Kasm api Deployment
labels: {}
# Configuration settings for the DB initialization job
#
init_db:
# components.init_db.annotations -- Custom annotations to add to the DB init Job.
# By default includes helm.sh/hook for Helm deployments. ArgoCD users should override
# this to remove the hook to prevent deployment deadlocks.
annotations:
helm.sh/hook: pre-install
# components.init_db.labels -- Custom labels to add to the DB init Job
labels: {}
# Configuration settings for the Kasm Manager service
#
manager:
Expand Down