fix: 修正values节点格式

This commit is contained in:
zhangxinhui02
2025-08-20 04:00:13 +08:00
parent 8f158f8a59
commit f933b045b8
8 changed files with 92 additions and 23 deletions

View File

@@ -42,7 +42,10 @@ spec:
- containerPort: 6099
name: webui
protocol: TCP
resources: {{ .Values.napcat.resources | default nil }}
{{- if .Values.napcat.resources }}
resources:
{{ toYaml .Values.napcat.resources | nindent 12 }}
{{- end }}
volumeMounts:
- mountPath: /app/napcat/config
name: napcat
@@ -50,9 +53,18 @@ spec:
- mountPath: /app/.config/QQ
name: napcat
subPath: data
imagePullSecrets: {{ .Values.napcat.image.pullSecrets | default nil }}
nodeSelector: {{ .Values.napcat.nodeSelector | default nil }}
tolerations: {{ .Values.napcat.tolerations | default nil }}
{{- if .Values.napcat.image.pullSecrets }}
imagePullSecrets:
{{ toYaml .Values.napcat.image.pullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.napcat.nodeSelector }}
nodeSelector:
{{ toYaml .Values.napcat.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Values.napcat.tolerations }}
tolerations:
{{ toYaml .Values.napcat.tolerations | nindent 8 }}
{{- end }}
volumes:
- name: napcat
persistentVolumeClaim: