Loading charts/default/Chart.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) version: 0.1.1 version: 0.2.4 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to Loading charts/default/README.md +0 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,6 @@ Универсальная основа для запуска любых контейнеров в K*S. Пока только **Deployment** и **StatefulSet**. ## Disclaimer Loading charts/default/templates/_helpers.tpl +7 −0 Original line number Diff line number Diff line Loading @@ -78,3 +78,10 @@ If release name contains chart name it will be used as a full name. {{- end }} {{- end }} {{- end }} {{/* Migration job name. */}} {{- define "default.migration-job-name" -}} {{- printf "%s-migration" (default .Chart.Name .Values.nameOverride | trunc 53 | trimSuffix "-") }} {{- end }} charts/default/templates/deployment.yaml +4 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,10 @@ spec: serviceAccountName: {{ include "default.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} {{- with .Values.initContainers }} initContainers: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} securityContext: Loading charts/default/templates/migration-job.yaml 0 → 100644 +56 −0 Original line number Diff line number Diff line {{- if and .Values.migration .Values.migration.enabled }} --- apiVersion: batch/v1 kind: Job metadata: name: {{ include "default.migration-job-name" . }} annotations: "helm.sh/hook": pre-install,pre-upgrade # "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded spec: {{- if .Values.migration.backoffLimit }} backoffLimit: {{ .Values.migration.backoffLimit }} {{- end }} {{- if .Values.migration.activeDeadlineSeconds }} activeDeadlineSeconds: {{ .Values.migration.activeDeadlineSeconds }} {{- end }} {{- if .Values.migration.ttlSecondsAfterFinished }} ttlSecondsAfterFinished: {{ .Values.migration.ttlSecondsAfterFinished }} {{- end }} template: spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} {{- if .Values.migration.image }} image: "{{ .Values.migration.image.repository | default .Values.image.repository }}:{{ .Values.migration.image.tag | default .Values.image.tag | default .Chart.AppVersion }}" {{- else }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" {{- end }} {{- with .Values.migration.command }} command: {{- toYaml . | nindent 10 }} {{- end }} {{- with .Values.migration.args }} args: {{- toYaml . | nindent 10 }} {{- end }} {{- if .Values.migration.env }} env: {{- range $k, $v := .Values.migration.env }} - name: {{ $k | trim }} value: {{ $v | trim | quote }} {{- end }} {{- end }} {{- if .Values.migration.resources }} resources: {{- toYaml .Values.migration.resources | nindent 10 }} {{- end }} {{- with .Values.migration.sidecars }} {{- toYaml . | nindent 6 }} {{- end }} restartPolicy: Never {{- end }} Loading
charts/default/Chart.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) version: 0.1.1 version: 0.2.4 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to Loading
charts/default/README.md +0 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,6 @@ Универсальная основа для запуска любых контейнеров в K*S. Пока только **Deployment** и **StatefulSet**. ## Disclaimer Loading
charts/default/templates/_helpers.tpl +7 −0 Original line number Diff line number Diff line Loading @@ -78,3 +78,10 @@ If release name contains chart name it will be used as a full name. {{- end }} {{- end }} {{- end }} {{/* Migration job name. */}} {{- define "default.migration-job-name" -}} {{- printf "%s-migration" (default .Chart.Name .Values.nameOverride | trunc 53 | trimSuffix "-") }} {{- end }}
charts/default/templates/deployment.yaml +4 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,10 @@ spec: serviceAccountName: {{ include "default.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} {{- with .Values.initContainers }} initContainers: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} securityContext: Loading
charts/default/templates/migration-job.yaml 0 → 100644 +56 −0 Original line number Diff line number Diff line {{- if and .Values.migration .Values.migration.enabled }} --- apiVersion: batch/v1 kind: Job metadata: name: {{ include "default.migration-job-name" . }} annotations: "helm.sh/hook": pre-install,pre-upgrade # "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded spec: {{- if .Values.migration.backoffLimit }} backoffLimit: {{ .Values.migration.backoffLimit }} {{- end }} {{- if .Values.migration.activeDeadlineSeconds }} activeDeadlineSeconds: {{ .Values.migration.activeDeadlineSeconds }} {{- end }} {{- if .Values.migration.ttlSecondsAfterFinished }} ttlSecondsAfterFinished: {{ .Values.migration.ttlSecondsAfterFinished }} {{- end }} template: spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} {{- if .Values.migration.image }} image: "{{ .Values.migration.image.repository | default .Values.image.repository }}:{{ .Values.migration.image.tag | default .Values.image.tag | default .Chart.AppVersion }}" {{- else }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" {{- end }} {{- with .Values.migration.command }} command: {{- toYaml . | nindent 10 }} {{- end }} {{- with .Values.migration.args }} args: {{- toYaml . | nindent 10 }} {{- end }} {{- if .Values.migration.env }} env: {{- range $k, $v := .Values.migration.env }} - name: {{ $k | trim }} value: {{ $v | trim | quote }} {{- end }} {{- end }} {{- if .Values.migration.resources }} resources: {{- toYaml .Values.migration.resources | nindent 10 }} {{- end }} {{- with .Values.migration.sidecars }} {{- toYaml . | nindent 6 }} {{- end }} restartPolicy: Never {{- end }}