Skip to content

Commit

Permalink
version Change for nfs image (#320)
Browse files Browse the repository at this point in the history
Signed-off-by: Madhavendra Goswami <[email protected]>

Co-authored-by: Madhavendra Goswami <[email protected]>
  • Loading branch information
maddiegos and Madhavendra Goswami committed Jul 13, 2022
1 parent a0bd6ed commit d7aaa62
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 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 = "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
Expand Down Expand Up @@ -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{
Expand All @@ -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},
},
}

Expand Down

0 comments on commit d7aaa62

Please sign in to comment.