apps.v1.lifecycleHook
"LifecycleHook defines a specific deployment lifecycle action. Only one type of action may be specified at any time."
Index
fn withFailurePolicy(failurePolicy)
fn withTagImages(tagImages)
fn withTagImagesMixin(tagImages)
obj execNewPod
Fields
fn withFailurePolicy
withFailurePolicy(failurePolicy)
"FailurePolicy specifies what action to take if the hook fails."
fn withTagImages
withTagImages(tagImages)
"TagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag."
fn withTagImagesMixin
withTagImagesMixin(tagImages)
"TagImages instructs the deployer to tag the current image referenced under a container onto an image stream tag."
Note: This function appends passed data to existing values
obj execNewPod
"ExecNewPodHook is a hook implementation which runs a command in a new pod based on the specified container which is assumed to be part of the deployment template."
fn execNewPod.withCommand
withCommand(command)
"Command is the action command and its arguments."
fn execNewPod.withCommandMixin
withCommandMixin(command)
"Command is the action command and its arguments."
Note: This function appends passed data to existing values
fn execNewPod.withContainerName
withContainerName(containerName)
"ContainerName is the name of a container in the deployment pod template whose container image will be used for the hook pod's container."
fn execNewPod.withEnv
withEnv(env)
"Env is a set of environment variables to supply to the hook pod's container."
fn execNewPod.withEnvMixin
withEnvMixin(env)
"Env is a set of environment variables to supply to the hook pod's container."
Note: This function appends passed data to existing values
fn execNewPod.withVolumes
withVolumes(volumes)
"Volumes is a list of named volumes from the pod template which should be copied to the hook pod. Volumes names not found in pod spec are ignored. An empty list means no volumes will be copied."
fn execNewPod.withVolumesMixin
withVolumesMixin(volumes)
"Volumes is a list of named volumes from the pod template which should be copied to the hook pod. Volumes names not found in pod spec are ignored. An empty list means no volumes will be copied."
Note: This function appends passed data to existing values