add .gitignore, .editorconfig, and clean up

This commit is contained in:
2025-09-30 13:19:15 +02:00
parent 9e07471746
commit 1c8fa4b52e
6 changed files with 65 additions and 54 deletions

View File

@@ -26,53 +26,53 @@ spec:
runAsNonRoot: {{ .Values.securityContext.runAsNonRoot }}
{{- end }}
containers:
- name: mongo
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- name: mongo
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
{{- if .Values.extraCommandLineArgs }}
- "{{ .Values.extraCommandLineArgs }}"
- "{{ .Values.extraCommandLineArgs }}"
{{- end }}
ports:
- containerPort: {{ .Values.service.port }}
name: mongodb
envFrom:
- secretRef:
name: {{ include "mongo.name.secret" . }}
volumeMounts:
- name: data
mountPath: /data/db
ports:
- containerPort: {{ .Values.service.port }}
name: mongodb
envFrom:
- secretRef:
name: {{ include "mongo.name.secret" . }}
volumeMounts:
- name: data
mountPath: /data/db
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
exec:
command: {{ toJson .Values.healthCheck.command }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
readinessProbe:
exec:
command: {{ toJson .Values.healthCheck.command }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
{{- end }}
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
exec:
command: {{ toJson .Values.healthCheck.command }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
livenessProbe:
exec:
command: {{ toJson .Values.healthCheck.command }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 10 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes:
{{- toYaml .Values.persistence.accessModes | nindent 10 }}
resources:
requests:
storage: {{ .Values.persistence.size }}
- metadata:
name: data
spec:
accessModes:
{{- toYaml .Values.persistence.accessModes | nindent 10 }}
resources:
requests:
storage: {{ .Values.persistence.size }}
{{- if .Values.persistence.storageClass }}
storageClassName: {{ .Values.persistence.storageClass }}
{{- end }}
storageClassName: {{ .Values.persistence.storageClass }}
{{- end }}