From fffe1e01dcf725fffd3cd18b3125d8db8ed15549 Mon Sep 17 00:00:00 2001 From: Derek Su Date: Sun, 15 May 2022 14:10:48 +0000 Subject: [PATCH] Fix customize default settings while upgrade/update Longhorn 2570 Signed-off-by: Derek Su --- chart/templates/crds.yaml | 2 ++ chart/templates/daemonset-sa.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/chart/templates/crds.yaml b/chart/templates/crds.yaml index fa6cd51..6330351 100644 --- a/chart/templates/crds.yaml +++ b/chart/templates/crds.yaml @@ -2424,6 +2424,8 @@ spec: 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' type: string + configMapResourceVersion: + type: string 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' type: string diff --git a/chart/templates/daemonset-sa.yaml b/chart/templates/daemonset-sa.yaml index 085c35d..413e81e 100644 --- a/chart/templates/daemonset-sa.yaml +++ b/chart/templates/daemonset-sa.yaml @@ -77,6 +77,8 @@ spec: fieldPath: spec.nodeName - name: DEFAULT_SETTING_PATH value: /var/lib/longhorn-setting/default-setting.yaml + - name: DEFAULT_SETTING_CONFIGMAP + value: longhorn-default-setting volumes: - name: dev hostPath: