Skip to content

Commit

Permalink
nfs: use v1.0.0 as starting tag for nfs-provisioner (#183)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
shivamerla authored Jun 12, 2020
1 parent f0adc30 commit 0d88699
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/flavor/kubernetes/nfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit 0d88699

Please sign in to comment.