From d7aaa62f4df30217275eaf4e995360e8ed5e79fc Mon Sep 17 00:00:00 2001 From: maddiegos Date: Wed, 13 Jul 2022 14:45:06 +0530 Subject: [PATCH] version Change for nfs image (#320) Signed-off-by: Madhavendra Goswami Co-authored-by: Madhavendra Goswami --- pkg/flavor/kubernetes/nfs.go | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/pkg/flavor/kubernetes/nfs.go b/pkg/flavor/kubernetes/nfs.go index 0485765f..3889699e 100644 --- a/pkg/flavor/kubernetes/nfs.go +++ b/pkg/flavor/kubernetes/nfs.go @@ -24,7 +24,7 @@ import ( const ( nfsPrefix = "hpe-nfs-" defaultNFSNamespace = "hpe-nfs" - defaultNFSImage = "quay.io/hpestorage/nfs-provisioner:v2.0.0" + defaultNFSImage = "quay.io/hpestorage/nfs-provisioner:v3.0.0" creationInterval = 60 // 300s with sleep interval of 5s creationDelay = 5 * time.Second @@ -763,21 +763,21 @@ func (flavor *Flavor) makeNFSDeployment(name string, nfsSpec *NFSSpec, nfsNamesp volumes = append(volumes, configMapVol) - var seconds int64 = 30 + var seconds int64 = 30 - tolerationsNotReady := core_v1.Toleration{ - Key: "node.kubernetes.io/not-ready", - Operator: "Exists", - Effect: "NoExecute", - TolerationSeconds: &seconds, - } + tolerationsNotReady := core_v1.Toleration{ + Key: "node.kubernetes.io/not-ready", + Operator: "Exists", + Effect: "NoExecute", + TolerationSeconds: &seconds, + } - tolerationsUnReachable := core_v1.Toleration{ - Key: "node.kubernetes.io/unreachable", - Operator: "Exists", - Effect: "NoExecute", - TolerationSeconds: &seconds, - } + tolerationsUnReachable := core_v1.Toleration{ + Key: "node.kubernetes.io/unreachable", + Operator: "Exists", + Effect: "NoExecute", + TolerationSeconds: &seconds, + } podSpec := core_v1.PodTemplateSpec{ ObjectMeta: meta_v1.ObjectMeta{ @@ -792,7 +792,7 @@ func (flavor *Flavor) makeNFSDeployment(name string, nfsSpec *NFSSpec, nfsNamesp Volumes: volumes, HostIPC: false, HostNetwork: false, - Tolerations: []core_v1.Toleration{tolerationsNotReady, tolerationsUnReachable}, + Tolerations: []core_v1.Toleration{tolerationsNotReady, tolerationsUnReachable}, }, }