From 0d88699c87a6911472fdf6c07319bd87628b29a5 Mon Sep 17 00:00:00 2001 From: Shiva Krishna Merla Date: Thu, 11 Jun 2020 20:07:33 -0700 Subject: [PATCH] nfs: use v1.0.0 as starting tag for nfs-provisioner (#183) * nfs: use v1.0.0 as starting tag for nfs-provisioner * Problem: * nfs-ganesha version was used as tag * ImagePullPolicy of Always increases time for container startup. * Implementation: * as its implemention detail, re-tag from v1.0.0 * Change image pull policy as IfNotPresent * Testing: deployed nfs pods * Review: rkumar * NIV_EVENT too verbose and change default as WARN Signed-off-by: Shiva Krishna, Merla --- pkg/flavor/kubernetes/nfs.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/flavor/kubernetes/nfs.go b/pkg/flavor/kubernetes/nfs.go index 29aa7141..01c46b97 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 = "hpestorage/nfs-provisioner:2.8.3-4" + defaultNFSImage = "hpestorage/nfs-provisioner:v1.0.0" creationInterval = 60 // 300s with sleep interval of 5s creationDelay = 5 * time.Second @@ -833,12 +833,12 @@ func (flavor *Flavor) makeContainer(name string, nfsSpec *NFSSpec) core_v1.Conta cont := core_v1.Container{ Name: name, Image: nfsSpec.image, - ImagePullPolicy: core_v1.PullAlways, + ImagePullPolicy: core_v1.PullIfNotPresent, SecurityContext: securityContext, Env: []core_v1.EnvVar{ { Name: "GANESHA_OPTIONS", - Value: getEnv("GANESHA_OPTIONS", "-N NIV_EVENT"), + Value: getEnv("GANESHA_OPTIONS", "-N NIV_WARN"), }, }, Ports: []core_v1.ContainerPort{