fix: 修正类型问题

pull/1208/head
zhangxinhui02 2025-08-20 02:58:21 +08:00
parent 93778370bf
commit 4c5c7137e7
No known key found for this signature in database
GPG Key ID: 22C23383864A313F
12 changed files with 22 additions and 22 deletions

View File

@ -12,7 +12,7 @@ spec:
protocol: TCP
targetPort: 8095
{{- if eq .Values.adapter.service.type "nodePort" }}
nodePort: {{ .Values.adapter.service.nodePort }}
nodePort: {{ .Values.adapter.service.nodePort | default nil }}
{{- end }}
selector:
app: {{ .Release.Name }}-maibot-adapter

View File

@ -35,9 +35,9 @@ spec:
name: config
readOnly: true
subPath: config.toml
imagePullSecrets: {{ .Values.adapter.image.pullSecrets }}
nodeSelector: {{ .Values.adapter.nodeSelector }}
tolerations: {{ .Values.adapter.tolerations }}
imagePullSecrets: {{ .Values.adapter.image.pullSecrets | default nil }}
nodeSelector: {{ .Values.adapter.nodeSelector | default nil }}
tolerations: {{ .Values.adapter.tolerations | default nil }}
volumes:
- name: data
persistentVolumeClaim:

View File

@ -59,9 +59,9 @@ spec:
- mountPath: /MaiMBot/statistics
name: statistics
{{- end }}
imagePullSecrets: {{ .Values.core.image.pullSecrets }}
nodeSelector: {{ .Values.core.nodeSelector }}
tolerations: {{ .Values.core.tolerations }}
imagePullSecrets: {{ .Values.core.image.pullSecrets | default nil }}
nodeSelector: {{ .Values.core.nodeSelector | default nil }}
tolerations: {{ .Values.core.tolerations | default nil }}
volumes:
- name: data
persistentVolumeClaim:

View File

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

View File

@ -13,7 +13,7 @@ spec:
protocol: TCP
targetPort: 6099
{{- if eq .Values.napcat.service.type "nodePort" }}
nodePort: {{ .Values.napcat.service.nodePort }}
nodePort: {{ .Values.napcat.service.nodePort | default nil }}
{{- end }}
selector:
app: {{ .Release.Name }}-maibot-napcat

View File

@ -50,9 +50,9 @@ spec:
- mountPath: /app/.config/QQ
name: napcat
subPath: data
imagePullSecrets: {{ .Values.napcat.image.pullSecrets }}
nodeSelector: {{ .Values.napcat.nodeSelector }}
tolerations: {{ .Values.napcat.tolerations }}
imagePullSecrets: {{ .Values.napcat.image.pullSecrets | default nil }}
nodeSelector: {{ .Values.napcat.nodeSelector | default nil }}
tolerations: {{ .Values.napcat.tolerations | default nil }}
volumes:
- name: napcat
persistentVolumeClaim:

View File

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

View File

@ -13,7 +13,7 @@ spec:
protocol: TCP
targetPort: 8080
{{- if eq .Values.sqlite_web.service.type "nodePort" }}
nodePort: {{ .Values.sqlite_web.service.nodePort }}
nodePort: {{ .Values.sqlite_web.service.nodePort | default nil }}
{{- end }}
selector:
app: {{ .Release.Name }}-maibot-sqlite-web

View File

@ -42,9 +42,9 @@ spec:
volumeMounts:
- mountPath: /data/MaiMBot
name: data
imagePullSecrets: {{ .Values.sqlite_web.image.pullSecrets }}
nodeSelector: {{ .Values.sqlite_web.nodeSelector }}
tolerations: {{ .Values.sqlite_web.tolerations }}
imagePullSecrets: {{ .Values.sqlite_web.image.pullSecrets | default nil }}
nodeSelector: {{ .Values.sqlite_web.nodeSelector | default nil }}
tolerations: {{ .Values.sqlite_web.tolerations | default nil }}
volumes:
- name: data
persistentVolumeClaim:

View File

@ -39,9 +39,9 @@ spec:
- mountPath: /usr/share/nginx/html
name: statistics
readOnly: true
imagePullSecrets: {{ .Values.statistics_dashboard.image.pullSecrets }}
nodeSelector: {{ .Values.statistics_dashboard.nodeSelector }}
tolerations: {{ .Values.core.tolerations }}
imagePullSecrets: {{ .Values.statistics_dashboard.image.pullSecrets | default nil }}
nodeSelector: {{ .Values.statistics_dashboard.nodeSelector | default nil }}
tolerations: {{ .Values.core.tolerations | default nil }}
volumes:
- name: statistics
persistentVolumeClaim:

View File

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

View File

@ -13,7 +13,7 @@ spec:
protocol: TCP
targetPort: 80
{{- if eq .Values.statistics_dashboard.service.type "nodePort" }}
nodePort: {{ .Values.statistics_dashboard.service.nodePort }}
nodePort: {{ .Values.statistics_dashboard.service.nodePort | default nil }}
{{- end }}
selector:
app: {{ .Release.Name }}-maibot-statistics-dashboard