Fix customize default settings while upgrade/update

Longhorn 2570

Signed-off-by: Derek Su <derek.su@suse.com>
This commit is contained in:
Derek Su 2022-05-15 14:10:48 +00:00 committed by David Ko
parent 8a84fdbe38
commit fffe1e01dc
2 changed files with 4 additions and 0 deletions

View File

@ -2424,6 +2424,8 @@ spec:
apiVersion: apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string type: string
configMapResourceVersion:
type: string
kind: kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string type: string

View File

@ -77,6 +77,8 @@ spec:
fieldPath: spec.nodeName fieldPath: spec.nodeName
- name: DEFAULT_SETTING_PATH - name: DEFAULT_SETTING_PATH
value: /var/lib/longhorn-setting/default-setting.yaml value: /var/lib/longhorn-setting/default-setting.yaml
- name: DEFAULT_SETTING_CONFIGMAP
value: longhorn-default-setting
volumes: volumes:
- name: dev - name: dev
hostPath: hostPath: