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 protocol: TCP
targetPort: 8095 targetPort: 8095
{{- if eq .Values.adapter.service.type "nodePort" }} {{- if eq .Values.adapter.service.type "nodePort" }}
nodePort: {{ .Values.adapter.service.nodePort }} nodePort: {{ .Values.adapter.service.nodePort | default nil }}
{{- end }} {{- end }}
selector: selector:
app: {{ .Release.Name }}-maibot-adapter app: {{ .Release.Name }}-maibot-adapter

View File

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

View File

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

View File

@ -4,7 +4,7 @@ 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 }} annotations: {{ .Values.napcat.ingress.annotations | default nil }}
labels: labels:
app: {{ .Release.Name }}-maibot-napcat app: {{ .Release.Name }}-maibot-napcat
spec: spec:

View File

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

View File

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

View File

@ -4,7 +4,7 @@ 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 }} annotations: {{ .Values.sqlite_web.ingress.annotations | default nil }}
labels: labels:
app: {{ .Release.Name }}-maibot-sqlite-web app: {{ .Release.Name }}-maibot-sqlite-web
spec: spec:

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@ 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 }} annotations: {{ .Values.statistics_dashboard.ingress.annotations | default nil }}
labels: labels:
app: {{ .Release.Name }}-maibot-statistics-dashboard app: {{ .Release.Name }}-maibot-statistics-dashboard
spec: spec:

View File

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