We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63f6562 + e40b6f4 commit c78c428Copy full SHA for c78c428
pkg/deploy/registry/deployconfig/strategy.go
@@ -44,6 +44,12 @@ func (strategy) PrepareForCreate(obj runtime.Object) {
44
dc := obj.(*api.DeploymentConfig)
45
dc.Generation = 1
46
dc.Status = api.DeploymentConfigStatus{}
47
+
48
+ for i := range dc.Spec.Triggers {
49
+ if params := dc.Spec.Triggers[i].ImageChangeParams; params != nil {
50
+ params.LastTriggeredImage = ""
51
+ }
52
53
}
54
55
// PrepareForUpdate clears fields that are not allowed to be set by end users on update.
0 commit comments