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

@@ -27,7 +27,10 @@ spec:
- containerPort: 8095
name: napcat-ws
protocol: TCP
resources: {{ .Values.adapter.resources | default nil }}
{{- if .Values.adapter.resources }}
resources:
{{ toYaml .Values.adapter.resources | nindent 12 }}
{{- end }}
volumeMounts:
- mountPath: /adapters/data
name: data
@@ -35,9 +38,18 @@ spec:
name: config
readOnly: true
subPath: config.toml
imagePullSecrets: {{ .Values.adapter.image.pullSecrets | default nil }}
nodeSelector: {{ .Values.adapter.nodeSelector | default nil }}
tolerations: {{ .Values.adapter.tolerations | default nil }}
{{- if .Values.adapter.image.pullSecrets }}
imagePullSecrets:
{{ toYaml .Values.adapter.image.pullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.adapter.nodeSelector }}
nodeSelector:
{{ toYaml .Values.adapter.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Values.adapter.tolerations }}
tolerations:
{{ toYaml .Values.adapter.tolerations | nindent 8 }}
{{- end }}
volumes:
- name: data
persistentVolumeClaim: