From 37dc053972cf27a1a1a792e4ff60a9760f4e372f Mon Sep 17 00:00:00 2001 From: Derek Su Date: Tue, 15 Mar 2022 14:09:38 +0800 Subject: [PATCH] chart: update webhook and crd manifests longhorn 3562 Signed-off-by: Derek Su --- chart/templates/crds.yaml | 3 +++ chart/templates/deployment-webhook.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/chart/templates/crds.yaml b/chart/templates/crds.yaml index c327dbe..893ed56 100644 --- a/chart/templates/crds.yaml +++ b/chart/templates/crds.yaml @@ -1132,7 +1132,10 @@ spec: description: EngineImageSpec defines the desired state of the Longhorn engine image properties: image: + minLength: 1 type: string + required: + - image type: object status: description: EngineImageStatus defines the observed state of the Longhorn engine image diff --git a/chart/templates/deployment-webhook.yaml b/chart/templates/deployment-webhook.yaml index 59ec311..ce61cdc 100644 --- a/chart/templates/deployment-webhook.yaml +++ b/chart/templates/deployment-webhook.yaml @@ -124,6 +124,10 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + - name: NODE_NAME + valueFrom: + fieldRef: + fieldPath: spec.nodeName {{- if .Values.privateRegistry.registrySecret }} imagePullSecrets: - name: {{ .Values.privateRegistry.registrySecret }}