Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
malakaganga committed Jun 23, 2022
1 parent e959778 commit efafe6b
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ func (r *ReconcileIntegration) deploymentForIntegration(config EIConfigNew) *app
},
)
}
pullPolicy := m.Spec.DeploySpec.PullPolicy
imagePullPolicy := corev1.PullAlways
switch {
case pullPolicy == "Always":
imagePullPolicy = corev1.PullAlways
case pullPolicy == "Never":
var imagePullPolicy corev1.PullPolicy

switch pullPolicy := m.Spec.DeploySpec.PullPolicy; pullPolicy {
case "Never":
imagePullPolicy = corev1.PullNever
case pullPolicy == "IfNotPresent":
case "IfNotPresent":
imagePullPolicy = corev1.PullIfNotPresent
default:
imagePullPolicy = corev1.PullAlways
}

deployment := &appsv1.Deployment{
Expand Down

0 comments on commit efafe6b

Please sign in to comment.