Documentation ¶
Overview ¶
Package rollback contains the code for generating DeploymentConfigs representing rollbacks as well as REST support for API clients.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST provides a rollback generation endpoint. Only the Create method is implemented.
func NewREST ¶
func NewREST(appsclient appsclient.Interface, kc kubernetes.Interface) *REST
NewREST safely creates a new REST.
type RollbackGenerator ¶
type RollbackGenerator interface { // GenerateRollback creates a new deployment config by merging to onto from // based on the options provided by spec. The latestVersion of the result is // unconditionally incremented, as rollback candidates should be possible // to be deployed manually regardless of other system behavior such as // triggering. // // Any image change triggers on the new config are disabled to prevent // triggered deployments from immediately replacing the rollback. GenerateRollback(from, to *appsapi.DeploymentConfig, spec *appsapi.DeploymentConfigRollbackSpec) (*appsapi.DeploymentConfig, error) }
RollbackGenerator generates a new deployment config by merging a pair of deployment configs in a configurable way.
func NewRollbackGenerator ¶
func NewRollbackGenerator() RollbackGenerator
NewRollbackGenerator returns a new rollback generator.
Click to show internal directories.
Click to hide internal directories.