Allow additional image stream build triggers on BuildConfig
@@ -341,6 +341,12 @@ type ImageChangeTrigger struct {
// LastTriggeredImageID is used internally by the ImageChangeController to save last
// used image ID for build
LastTriggeredImageID string `json:"lastTriggeredImageID,omitempty" description:"used internally to save last used image ID for build"`
+
+ // From is a reference to an ImageStreamTag that will trigger a build when updated
+ // It is optional. If no From is specified, the From image from the build strategy
+ // will be used. Only one ImageChangeTrigger with an empty From reference is allowed in
+ // a build configuration.
+ From *kapi.ObjectReference `json:"from,omitempty" description:"reference to an ImageStreamTag that will trigger the build"`
}
// BuildTriggerPolicy describes a policy for a single trigger that results in a new Build.
@@ -427,6 +433,9 @@ type BuildRequest struct {
// TriggeredByImage is the Image that triggered this build.
TriggeredByImage *kapi.ObjectReference `json:"triggeredByImage,omitempty" description:"image that triggered this build"`
+
+ // From is the reference to the ImageStreamTag that triggered the build.
+ From *kapi.ObjectReference `json:"from,omitempty" description:"ImageStreamTag that triggered this build"`
}
// BuildLogOptions is the REST options for a build log
