Skip to content

apps.v1.deploymentConfigRollback

"DeploymentConfigRollback provides the input to rollback generation."

Index

Fields

fn new

new(name)

new returns an instance of DeploymentConfigRollback

fn withName

withName(name)

"Name of the deployment config that will be rolled back."

fn withUpdatedAnnotations

withUpdatedAnnotations(updatedAnnotations)

"UpdatedAnnotations is a set of new annotations that will be added in the deployment config."

fn withUpdatedAnnotationsMixin

withUpdatedAnnotationsMixin(updatedAnnotations)

"UpdatedAnnotations is a set of new annotations that will be added in the deployment config."

Note: This function appends passed data to existing values

obj spec

"DeploymentConfigRollbackSpec represents the options for rollback generation."

fn spec.withIncludeReplicationMeta

withIncludeReplicationMeta(includeReplicationMeta)

"IncludeReplicationMeta specifies whether to include the replica count and selector."

fn spec.withIncludeStrategy

withIncludeStrategy(includeStrategy)

"IncludeStrategy specifies whether to include the deployment Strategy."

fn spec.withIncludeTemplate

withIncludeTemplate(includeTemplate)

"IncludeTemplate specifies whether to include the PodTemplateSpec."

fn spec.withIncludeTriggers

withIncludeTriggers(includeTriggers)

"IncludeTriggers specifies whether to include config Triggers."

fn spec.withRevision

withRevision(revision)

"Revision to rollback to. If set to 0, rollback to the last revision."

obj spec.from

"ObjectReference contains enough information to let you inspect or modify the referred object."

fn spec.from.withApiVersion

withApiVersion(apiVersion)

"API version of the referent."

fn spec.from.withFieldPath

withFieldPath(fieldPath)

"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."

fn spec.from.withKind

withKind(kind)

"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds"

fn spec.from.withName

withName(name)

"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"

fn spec.from.withNamespace

withNamespace(namespace)

"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"

fn spec.from.withResourceVersion

withResourceVersion(resourceVersion)

"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency"

fn spec.from.withUid

withUid(uid)

"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"