deploy: add new endpoint for rolling back deploymentconfigs
@@ -366,6 +366,10 @@ type DeploymentConfigList struct {
// DeploymentConfigRollback provides the input to rollback generation.
type DeploymentConfigRollback struct {
unversioned.TypeMeta `json:",inline"`
+ // Name of the deployment config that will be rolled back.
+ Name string `json:"name"`
+ // UpdatedAnnotations is a set of new annotations that will be added in the deployment config.
+ UpdatedAnnotations map[string]string `json:"updatedAnnotations,omitempty"`
// Spec defines the options to rollback generation.
Spec DeploymentConfigRollbackSpec `json:"spec"`
}
@@ -374,6 +378,8 @@ type DeploymentConfigRollback struct {
type DeploymentConfigRollbackSpec struct {
// From points to a ReplicationController which is a deployment.
From kapi.ObjectReference `json:"from"`
+ // Revision to rollback to. If set to 0, rollback to the last revision.
+ Revision int64 `json:"revision,omitempty"`
// IncludeTriggers specifies whether to include config Triggers.
IncludeTriggers bool `json:"includeTriggers"`
// IncludeTemplate specifies whether to include the PodTemplateSpec.
