mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-06 12:10:05 +00:00
Do not set Pod's Image pull policy if not explicitly set (#1914)
This commit is contained in:
@@ -44,7 +44,7 @@ func Pod(namespace string, step *types.Step, labels, annotations map[string]stri
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pullPolicy := v1.PullIfNotPresent
|
var pullPolicy v1.PullPolicy
|
||||||
if step.Pull {
|
if step.Pull {
|
||||||
pullPolicy = v1.PullAlways
|
pullPolicy = v1.PullAlways
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user