mirror of
https://github.com/jumpserver/helm-charts.git
synced 2025-08-28 03:22:07 +00:00
perf: 移除多余的配置文件
This commit is contained in:
parent
d8c51baa8f
commit
beaaefa0ec
@ -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 }}
|
||||
|
@ -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 }}
|
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user