Class 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 Detail

      • ExecNewPodHook

        public ExecNewPodHook()
        No args constructor for use in serialization
      • ExecNewPodHook

        public ExecNewPodHook​(List<String> command,
                              String containerName,
                              List<io.fabric8.kubernetes.api.model.EnvVar> env,
                              List<String> volumes)
    • Method Detail

      • getCommand

        public List<String> getCommand()
        command is the action command and its arguments.
      • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)