added repo

This commit is contained in:
Your Name
2026-08-26 03:39:42 +05:30
parent 45c25a95af
commit b8575bb8b9
6889 changed files with 1217125 additions and 0 deletions
@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "config-test.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "config-test.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "config-test.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "config-test.labels" -}}
helm.sh/chart: {{ include "config-test.chart" . }}
{{ include "config-test.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "config-test.selectorLabels" -}}
app.kubernetes.io/name: {{ include "config-test.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "config-test.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "config-test.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
@@ -0,0 +1,132 @@
{{- if eq .Values.deploymentType "Deployment" -}}
apiVersion: apps/v1
kind: Deployment
metadata:
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.labels }}
labels:
{{ toYaml . | indent 4 }}
{{- end }}
name: {{ .Values.fullNameOverride }}
namespace: {{ .Release.Namespace }}
spec:
serviceName: {{ .Values.fullNameOverride }}
selector:
{{- with .Values.labels }}
matchLabels:
{{ toYaml . | indent 6 }}
{{- end }}
replicas: {{ .Values.replicas }}
podManagementPolicy: {{ .Values.podManagementPolicy }}
template:
metadata:
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
{{- with .Values.labels }}
labels:
{{ toYaml . | indent 8 }}
{{- end }}
spec:
{{- if .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{ toYaml .Values.topologySpreadConstraints | indent 8 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: "{{ .Values.priorityClassName }}"
{{- end }}
containers:
- name: dind
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: "{{ .Values.image.imagePullPolicy }}"
{{- if .Values.containerWorkingDir }}
workingDir: {{ .Values.containerWorkingDir }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 12 }}
command:
- docker-init
- --
- dockerd
{{- range $key, $value := .Values.extraArgs }}
- --{{ $key }}={{ $value }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
env:
- name: TZ
value: Asia/Kolkata
{{- with .Values.env }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- with $.Values.probe.liveness }}
livenessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with $.Values.probe.readiness }}
readinessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
resources: {{ toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: dind-volume
mountPath: {{ .Values.persistentVolume.mountPath }}
subPath: {{ .Values.persistentVolume.subPath }}
{{- range .Values.extraHostPathMounts }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
subPath: {{ .subPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- range .Values.extraConfigmapMounts }}
- name: {{ $.Values.name }}-{{ .name }}
mountPath: {{ .mountPath }}
subPath: {{ .subPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- range .Values.extraSecretMounts }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
subPath: {{ .subPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 2 }}
{{- end }}
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
serviceAccountName: {{ .Values.serviceAccountName }}
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
volumes:
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
- name: dind-volume
emptyDir: {}
{{- end }}
+26
View File
@@ -0,0 +1,26 @@
{{- if .Values.podDisruptionBudget.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ .Values.fullNameOverride }}
namespace: {{ .Release.Namespace }}
labels:
{{- with .Values.labels }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- with .Values.podDisruptionBudget.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.podDisruptionBudget.minAvailable }}
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
{{- end }}
{{- if .Values.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
{{- end }}
selector:
{{- with .Values.labels }}
matchLabels:
{{ toYaml . | indent 6 }}
{{- end }}
{{- end }}
+27
View File
@@ -0,0 +1,27 @@
{{- if and .Values.persistentVolume.enabled (not .Values.persistentVolume.existingClaim) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: "{{ .Values.fullNameOverride }}-pvc"
{{- if .Values.persistentVolume.annotations }}
annotations:
{{ toYaml .Values.persistentVolume.annotations | indent 10 }}
{{- end }}
{{- if .Values.persistentVolume.labels }}
labels:
{{ toYaml .Values.persistentVolume.labels | indent 10 }}
{{- end }}
spec:
accessModes:
{{ toYaml .Values.persistentVolume.accessModes | indent 10 }}
resources:
requests:
storage: "{{ .Values.persistentVolume.size }}"
{{- if .Values.persistentVolume.storageClass }}
{{- if (eq "-" .Values.persistentVolume.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistentVolume.storageClass }}"
{{- end }}
{{- end }}
{{- end }}
@@ -0,0 +1,30 @@
apiVersion: v1
kind: Service
metadata:
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
{{- with .Values.labels }}
labels:
{{ toYaml . | indent 4 }}
{{- end }}
name: "{{ .Values.fullNameOverride }}-svc"
namespace: {{ .Release.Namespace }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.port }}
protocol: TCP
name: http
{{- range .Values.service.extraPorts }}
- name: {{ .name }}
port: {{ .port }}
protocol: TCP
targetPort: {{ .targetPort }}
{{- end }}
{{- with .Values.labels }}
selector:
{{ toYaml . | indent 4 }}
{{- end }}
@@ -0,0 +1,145 @@
{{- if eq .Values.deploymentType "StatefulSet" -}}
apiVersion: apps/v1
kind: StatefulSet
metadata:
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.labels }}
labels:
{{ toYaml . | indent 4 }}
{{- end }}
name: {{ .Values.fullNameOverride }}
namespace: {{ .Release.Namespace }}
spec:
serviceName: {{ .Values.fullNameOverride }}
selector:
{{- with .Values.labels }}
matchLabels:
{{ toYaml . | indent 6 }}
{{- end }}
replicas: {{ .Values.replicas }}
podManagementPolicy: {{ .Values.podManagementPolicy }}
template:
metadata:
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
{{- with .Values.labels }}
labels:
{{ toYaml . | indent 8 }}
{{- end }}
spec:
{{- if .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{ toYaml .Values.topologySpreadConstraints | indent 8 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: "{{ .Values.priorityClassName }}"
{{- end }}
containers:
- name: dind
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: "{{ .Values.image.imagePullPolicy }}"
{{- if .Values.containerWorkingDir }}
workingDir: {{ .Values.containerWorkingDir }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 12 }}
command:
- docker-init
- --
- dockerd
{{- range $key, $value := .Values.extraArgs }}
- --{{ $key }}={{ $value }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
env:
- name: TZ
value: Asia/Kolkata
{{- with .Values.env }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.probe.liveness }}
livenessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.probe.readiness }}
readinessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
resources: {{ toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: dind-volume
mountPath: {{ .Values.persistentVolume.mountPath }}
subPath: {{ .Values.persistentVolume.subPath }}
{{- range .Values.extraHostPathMounts }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
subPath: {{ .subPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- range .Values.extraConfigmapMounts }}
- name: {{ $.Values.name }}-{{ .name }}
mountPath: {{ .mountPath }}
subPath: {{ .subPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- range .Values.extraSecretMounts }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
subPath: {{ .subPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 2 }}
{{- end }}
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
serviceAccountName: {{ .Values.serviceAccountName }}
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
volumes:
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if not .Values.persistentVolume.enabled }}
- name: dind-volume
emptyDir: {}
{{- else }}
{{- if .Values.persistentVolume.existingClaim }}
- name: dind-volume
persistentVolumeClaim:
claimName: {{ .Values.persistentVolume.existingClaim }}
{{- end }}
{{- if .Values.persistentVolume.enabled }}
- name: dind-volume
persistentVolumeClaim:
claimName: "{{ .Values.fullNameOverride }}-pvc"
{{- end }}
{{- end }}
{{- end }}