deployapi: Refactor internal objects to match versioned
@@ -224,8 +224,7 @@ type DeploymentConfig struct {
Status DeploymentConfigStatus `json:"status" description:"the current state of the latest deployment"`
}
-// DeploymentTemplate contains all the necessary information to create a deployment from a
-// DeploymentStrategy.
+// DeploymentConfigSpec represents the desired state of the deployment.
type DeploymentConfigSpec struct {
// Strategy describes how a deployment is executed.
Strategy DeploymentStrategy `json:"strategy" description:"how a deployment is executed"`
@@ -290,11 +289,10 @@ type DeploymentTriggerImageChangeParams struct {
Automatic bool `json:"automatic,omitempty" description:"whether detection of a new tag value should trigger a deployment"`
// ContainerNames is used to restrict tag updates to the specified set of container names in a pod.
ContainerNames []string `json:"containerNames,omitempty" description:"restricts tag updates to a set of container names in the pod"`
- // From is a reference to a Docker image repository tag to watch for changes. The
- // Kind may be left blank, in which case it defaults to "ImageStreamTag". The "Name" is
- // the only required subfield - if Namespace is blank, the namespace of the current deployment
+ // From is a reference to an image stream tag to watch for changes. From.Name is the only
+ // required subfield - if From.Namespace is blank, the namespace of the current deployment
// trigger will be used.
- From kapi.ObjectReference `json:"from" description:"a reference to an ImageRepository, ImageStream, or ImageStreamTag to watch for changes"`
+ From kapi.ObjectReference `json:"from" description:"a reference to an ImageStreamTag to watch for changes"`
// LastTriggeredImage is the last image to be triggered.
LastTriggeredImage string `json:"lastTriggeredImage,omitempty" description:"the last image to be triggered"`
}
