add helm charts

This commit is contained in:
Ybehrooz
2025-11-09 13:22:40 +03:30
parent 282c3e52d0
commit 38e4d749ad
1352 changed files with 190457 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "zot.fullname" . }}-test-connection"
namespace: {{ .Values.namespace | default .Release.Namespace }}
labels:
{{- include "zot.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded,hook-failed
spec:
containers:
- name: wget
image: alpine:3.18
command:
- sh
- -c
- |
scheme="http"
{{- if eq $.Values.httpGet.scheme "HTTPS"}}
scheme="https"
{{- end }}
echo "$scheme"
{{- if .Values.authHeader }}
wget --no-check-certificate --header "Authorization: Basic {{ .Values.authHeader }}" $scheme://{{ include "zot.fullname" . }}:{{ .Values.service.port }}/v2/_catalog
{{- else }}
wget --no-check-certificate $scheme://{{ include "zot.fullname" . }}:{{ .Values.service.port }}/v2/_catalog
{{- end }}
restartPolicy: Never