mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-02-12 15:35:29 +00:00
* Changed: avoid latest image
* Changed: version bump
* Fixed: pull policy
* Removed: specific ci for glue since now it's on by default
* Fixed: don't refresh dependencies
* Changed: testing chart action version update
* Fixed: action
* Changed: dependency updates required
* Fixed: lint and install
* Revert "Changed: dependency updates required"
This reverts commit 34ee22d7d0
.
* Changed: use copy of dep charts because ththey may become unavailable
* Changed: updated readme
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
---
|
|
{{- if .Values.tests.enabled -}}
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
{{- if .Values.healthNameOverride }}
|
|
name: {{ .Values.healthNameOverride | quote }}
|
|
{{- else }}
|
|
name: "{{ .Release.Name }}-{{ randAlpha 5 | lower }}-test"
|
|
{{- end }}
|
|
annotations:
|
|
"helm.sh/hook": test
|
|
"helm.sh/hook-delete-policy": hook-succeeded
|
|
spec:
|
|
securityContext:
|
|
{{ toYaml .Values.podSecurityContext | indent 4 }}
|
|
containers:
|
|
{{- if .Values.healthNameOverride }}
|
|
- name: {{ .Values.healthNameOverride | quote }}
|
|
{{- else }}
|
|
- name: "{{ .Release.Name }}-{{ randAlpha 5 | lower }}-test"
|
|
{{- end }}
|
|
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
|
|
imagePullPolicy: "{{ .Values.imagePullPolicy }}"
|
|
command:
|
|
- "sh"
|
|
- "-c"
|
|
- |
|
|
#!/usr/bin/env bash -e
|
|
curl -XGET --fail '{{ template "elasticsearch.uname" . }}:{{ .Values.httpPort }}/_cluster/health?{{ .Values.clusterHealthCheckParams }}'
|
|
{{- if .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{ toYaml .Values.imagePullSecrets | indent 4 }}
|
|
{{- end }}
|
|
restartPolicy: Never
|
|
{{- end -}}
|