Skip to content

apps.v1.execNewPodHook

"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."

Index

Fields

fn withCommand

withCommand(command)

"Command is the action command and its arguments."

fn withCommandMixin

withCommandMixin(command)

"Command is the action command and its arguments."

Note: This function appends passed data to existing values

fn 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 withEnv

withEnv(env)

"Env is a set of environment variables to supply to the hook pod's container."

fn 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 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 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