Package io.fabric8.openshift.api.model
Class ExecNewPodHook
- java.lang.Object
-
- io.fabric8.openshift.api.model.ExecNewPodHook
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ExecNewPodHookBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ExecNewPodHook extends Object implements io.fabric8.kubernetes.api.builder.Editable<ExecNewPodHookBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExecNewPodHook()No args constructor for use in serializationExecNewPodHook(List<String> command, String containerName, List<io.fabric8.kubernetes.api.model.EnvVar> env, List<String> volumes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecNewPodHookBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getCommand()command is the action command and its arguments.StringgetContainerName()containerName is the name of a container in the deployment pod template whose container image will be used for the hook pod's container.List<io.fabric8.kubernetes.api.model.EnvVar>getEnv()env is a set of environment variables to supply to the hook pod's container.List<String>getVolumes()volumes is a list of named volumes from the pod template which should be copied to the hook pod.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCommand(List<String> command)command is the action command and its arguments.voidsetContainerName(String 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.voidsetEnv(List<io.fabric8.kubernetes.api.model.EnvVar> env)env is a set of environment variables to supply to the hook pod's container.voidsetVolumes(List<String> volumes)volumes is a list of named volumes from the pod template which should be copied to the hook pod.ExecNewPodHookBuildertoBuilder()
-
-
-
Method Detail
-
setCommand
public void setCommand(List<String> command)
command is the action command and its arguments.
-
getContainerName
public String getContainerName()
containerName is the name of a container in the deployment pod template whose container image will be used for the hook pod's container.
-
setContainerName
public void setContainerName(String 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.
-
getEnv
public List<io.fabric8.kubernetes.api.model.EnvVar> getEnv()
env is a set of environment variables to supply to the hook pod's container.
-
setEnv
public void setEnv(List<io.fabric8.kubernetes.api.model.EnvVar> env)
env is a set of environment variables to supply to the hook pod's container.
-
getVolumes
public List<String> getVolumes()
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.
-
setVolumes
public void setVolumes(List<String> 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.
-
edit
public ExecNewPodHookBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ExecNewPodHookBuilder>
-
toBuilder
public ExecNewPodHookBuilder toBuilder()
-
-