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,46 @@
{{/*
Generate the complete node affinity configuration
*/}}
{{- define "node-thp-config.nodeAffinity" -}}
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
{{- if .Values.baseMatchExpressions }}
- matchExpressions:
{{- include "node-thp-config.baseMatchExpressions" . | nindent 6 }}
{{- end }}
{{- if and .Values.addExtraMatchExpressions .Values.additionalMatchExpressions }}
- matchExpressions:
{{- include "node-thp-config.additionalMatchExpressions" . | nindent 6 }}
{{- end }}
{{- end }}
{{/*
Generate the base matchExpressions (always included)
*/}}
{{- define "node-thp-config.baseMatchExpressions" -}}
{{- range .Values.baseMatchExpressions }}
- key: {{ .key }}
operator: {{ .operator }}
values:
{{- range .values }}
- {{ . | quote }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Generate additional matchExpressions if enabled
*/}}
{{- define "node-thp-config.additionalMatchExpressions" -}}
{{- if and .Values.addExtraMatchExpressions .Values.additionalMatchExpressions }}
{{- range .Values.additionalMatchExpressions }}
- key: {{ .key }}
operator: {{ .operator }}
values:
{{- range .values }}
- {{ . | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
@@ -0,0 +1,59 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ .Values.daemonSet.name }}
namespace: {{ .Values.daemonSet.namespace }}
labels:
app: {{ .Values.daemonSet.name }}
{{- with .Values.daemonSet.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.daemonSet.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
app: {{ .Values.daemonSet.name }}
template:
metadata:
labels:
app: {{ .Values.daemonSet.name }}
{{- with .Values.pod.labels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.pod.annotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.global.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
hostNetwork: {{ .Values.pod.hostNetwork }}
hostPID: {{ .Values.pod.hostPID }}
hostIPC: {{ .Values.pod.hostIPC }}
containers:
- name: {{ .Values.container.name }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: {{ .Values.container.command | toJson }}
args: {{ .Values.container.args | toJson }}
securityContext:
{{- toYaml .Values.container.securityContext | nindent 12 }}
resources:
{{- toYaml .Values.container.resources | nindent 12 }}
volumeMounts:
{{- toYaml .Values.volumeMounts | nindent 12 }}
volumes:
{{- toYaml .Values.volumes | nindent 8 }}
affinity:
{{- include "node-thp-config.nodeAffinity" . | nindent 8 }}
{{- with .Values.pod.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}