fix: 修正values节点格式

pull/1208/head
zhangxinhui02 2025-08-20 04:00:13 +08:00
parent 8f158f8a59
commit f933b045b8
No known key found for this signature in database
GPG Key ID: 22C23383864A313F
8 changed files with 92 additions and 23 deletions

View File

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

View File

@ -35,7 +35,10 @@ spec:
- containerPort: 8000 - containerPort: 8000
name: adapter-ws name: adapter-ws
protocol: TCP protocol: TCP
resources: {{ .Values.core.resources | default nil }} {{- if .Values.core.resources }}
resources:
{{ toYaml .Values.core.resources | nindent 12 }}
{{- end }}
volumeMounts: volumeMounts:
- mountPath: /MaiMBot/data - mountPath: /MaiMBot/data
name: data name: data
@ -59,9 +62,18 @@ spec:
- mountPath: /MaiMBot/statistics - mountPath: /MaiMBot/statistics
name: statistics name: statistics
{{- end }} {{- end }}
imagePullSecrets: {{ .Values.core.image.pullSecrets | default nil }} {{- if .Values.core.image.pullSecrets }}
nodeSelector: {{ .Values.core.nodeSelector | default nil }} imagePullSecrets:
tolerations: {{ .Values.core.tolerations | default nil }} {{ toYaml .Values.core.image.pullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.core.nodeSelector }}
nodeSelector:
{{ toYaml .Values.core.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Values.core.tolerations }}
tolerations:
{{ toYaml .Values.core.tolerations | nindent 8 }}
{{- end }}
volumes: volumes:
- name: data - name: data
persistentVolumeClaim: persistentVolumeClaim:

View File

@ -4,7 +4,10 @@ kind: Ingress
metadata: metadata:
name: {{ .Release.Name }}-maibot-napcat name: {{ .Release.Name }}-maibot-napcat
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
annotations: {{ .Values.napcat.ingress.annotations | default nil }} {{- if .Values.napcat.ingress.annotations }}
annotations:
{{ toYaml .Values.napcat.ingress.annotations | nindent 4 }}
{{- end }}
labels: labels:
app: {{ .Release.Name }}-maibot-napcat app: {{ .Release.Name }}-maibot-napcat
spec: spec:

View File

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

View File

@ -4,7 +4,10 @@ kind: Ingress
metadata: metadata:
name: {{ .Release.Name }}-maibot-sqlite-web name: {{ .Release.Name }}-maibot-sqlite-web
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
annotations: {{ .Values.sqlite_web.ingress.annotations | default nil }} {{- if .Values.sqlite_web.ingress.annotations }}
annotations:
{{ toYaml .Values.sqlite_web.ingress.annotations | nindent 4 }}
{{- end }}
labels: labels:
app: {{ .Release.Name }}-maibot-sqlite-web app: {{ .Release.Name }}-maibot-sqlite-web
spec: spec:

View File

@ -38,13 +38,25 @@ spec:
- containerPort: 8080 - containerPort: 8080
name: webui name: webui
protocol: TCP protocol: TCP
resources: {{ .Values.sqlite_web.resources | default nil }} {{- if .Values.sqlite_web.resources }}
resources:
{{ toYaml .Values.sqlite_web.resources | nindent 12 }}
{{- end }}
volumeMounts: volumeMounts:
- mountPath: /data/MaiMBot - mountPath: /data/MaiMBot
name: data name: data
imagePullSecrets: {{ .Values.sqlite_web.image.pullSecrets | default nil }} {{- if .Values.sqlite_web.image.pullSecrets }}
nodeSelector: {{ .Values.sqlite_web.nodeSelector | default nil }} imagePullSecrets:
tolerations: {{ .Values.sqlite_web.tolerations | default nil }} {{ toYaml .Values.sqlite_web.image.pullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.sqlite_web.nodeSelector }}
nodeSelector:
{{ toYaml .Values.sqlite_web.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Values.sqlite_web.tolerations }}
tolerations:
{{ toYaml .Values.sqlite_web.tolerations | nindent 8 }}
{{- end }}
volumes: volumes:
- name: data - name: data
persistentVolumeClaim: persistentVolumeClaim:

View File

@ -34,14 +34,26 @@ spec:
- containerPort: 80 - containerPort: 80
name: dashboard name: dashboard
protocol: TCP protocol: TCP
resources: {{ .Values.statistics_dashboard.resources | default nil }} {{- if .Values.statistics_dashboard.resources }}
resources:
{{ toYaml .Values.statistics_dashboard.resources | nindent 12 }}
{{- end }}
volumeMounts: volumeMounts:
- mountPath: /usr/share/nginx/html - mountPath: /usr/share/nginx/html
name: statistics name: statistics
readOnly: true readOnly: true
imagePullSecrets: {{ .Values.statistics_dashboard.image.pullSecrets | default nil }} {{- if .Values.statistics_dashboard.image.pullSecrets }}
nodeSelector: {{ .Values.statistics_dashboard.nodeSelector | default nil }} imagePullSecrets:
tolerations: {{ .Values.core.tolerations | default nil }} {{ toYaml .Values.statistics_dashboard.image.pullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.statistics_dashboard.nodeSelector }}
nodeSelector:
{{ toYaml .Values.statistics_dashboard.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Values.statistics_dashboard.tolerations }}
tolerations:
{{ toYaml .Values.statistics_dashboard.tolerations | nindent 8 }}
{{- end }}
volumes: volumes:
- name: statistics - name: statistics
persistentVolumeClaim: persistentVolumeClaim:

View File

@ -4,7 +4,10 @@ kind: Ingress
metadata: metadata:
name: {{ .Release.Name }}-maibot-statistics-dashboard name: {{ .Release.Name }}-maibot-statistics-dashboard
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
annotations: {{ .Values.statistics_dashboard.ingress.annotations | default nil }} {{- if .Values.statistics_dashboard.ingress.annotations }}
annotations:
{{ toYaml .Values.statistics_dashboard.ingress.annotations | nindent 4 }}
{{- end }}
labels: labels:
app: {{ .Release.Name }}-maibot-statistics-dashboard app: {{ .Release.Name }}-maibot-statistics-dashboard
spec: spec: