perf: 移除多余的配置文件

This commit is contained in:
吴小白 2023-11-30 13:23:32 +08:00
parent d8c51baa8f
commit beaaefa0ec
4 changed files with 0 additions and 27 deletions

View File

@ -107,9 +107,6 @@ spec:
resources:
{{- toYaml .resources | nindent 12 }}
volumeMounts:
- mountPath: "/opt/jumpserver/config.yml"
name: "jms-core-config"
subPath: "config.yml"
- mountPath: "/opt/jumpserver/data"
name: "jms-core-data"
{{- if .persistence.subPath }}
@ -120,9 +117,6 @@ spec:
{{- end }}
restartPolicy: Always
volumes:
- configMap:
name: '{{ include "jumpserver.fullname" $ }}-jms-core'
name: "jms-core-config"
- persistentVolumeClaim:
{{- if .persistence.existingClaim }}
claimName: {{ .persistence.existingClaim | quote }}

View File

@ -1,15 +0,0 @@
{{- if .Values.core.enabled }}
{{- with .Values.core }}
{{- $fullName := printf "%s-%s" (include "jumpserver.fullname" $) "jms-core" }}
kind: ConfigMap
apiVersion: v1
metadata:
name: {{ $fullName }}
labels:
{{- include "jumpserver.labels" $ | nindent 4 }}
{{- toYaml .labels | nindent 4 }}
data:
{{- $path := printf "%s/%s/%s" "configs" "jms-core" "config.yml" -}}
{{- tpl (( $.Files.Glob $path ).AsConfig) $ | nindent 2 }}
{{- end }}
{{- end }}

View File

@ -103,9 +103,6 @@ spec:
resources:
{{- toYaml .resources | nindent 12 }}
volumeMounts:
- mountPath: "/opt/jumpserver/config.yml"
name: "jms-core-config"
subPath: "config.yml"
- mountPath: "/opt/jumpserver/data"
name: "jms-core-data"
{{- if .persistence.subPath }}
@ -116,9 +113,6 @@ spec:
{{- end }}
restartPolicy: Always
volumes:
- configMap:
name: '{{ include "jumpserver.fullname" $ }}-jms-core'
name: "jms-core-config"
- persistentVolumeClaim:
{{- if .persistence.existingClaim }}
claimName: {{ .persistence.existingClaim | quote }}