Interface KubernetesPodData.ContainerOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
KubernetesPodData.Container, KubernetesPodData.Container.Builder
Enclosing class:
KubernetesPodData

public static interface KubernetesPodData.ContainerOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
       Name of the container specified as a DNS_LABEL.
       Each container in a pod must have a unique name (DNS_LABEL).
       Cannot be updated.
       
      string name = 1 [json_name = "name"];
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Name of the container specified as a DNS_LABEL.
       Each container in a pod must have a unique name (DNS_LABEL).
       Cannot be updated.
       
      string name = 1 [json_name = "name"];
      Returns:
      The bytes for name.
    • hasImage

      boolean hasImage()
       Container image name.
       More info: https://kubernetes.io/docs/concepts/containers/images
       This field is optional to allow higher level config management to default or override
       container images in workload controllers like Deployments and StatefulSets.
       +optional
       
      optional string image = 2 [json_name = "image"];
      Returns:
      Whether the image field is set.
    • getImage

      String getImage()
       Container image name.
       More info: https://kubernetes.io/docs/concepts/containers/images
       This field is optional to allow higher level config management to default or override
       container images in workload controllers like Deployments and StatefulSets.
       +optional
       
      optional string image = 2 [json_name = "image"];
      Returns:
      The image.
    • getImageBytes

      com.google.protobuf.ByteString getImageBytes()
       Container image name.
       More info: https://kubernetes.io/docs/concepts/containers/images
       This field is optional to allow higher level config management to default or override
       container images in workload controllers like Deployments and StatefulSets.
       +optional
       
      optional string image = 2 [json_name = "image"];
      Returns:
      The bytes for image.
    • getCommandList

      List<String> getCommandList()
       Entrypoint array. Not executed within a shell.
       The container image's ENTRYPOINT is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       +listType=atomic
       
      repeated string command = 3 [json_name = "command"];
      Returns:
      A list containing the command.
    • getCommandCount

      int getCommandCount()
       Entrypoint array. Not executed within a shell.
       The container image's ENTRYPOINT is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       +listType=atomic
       
      repeated string command = 3 [json_name = "command"];
      Returns:
      The count of command.
    • getCommand

      String getCommand(int index)
       Entrypoint array. Not executed within a shell.
       The container image's ENTRYPOINT is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       +listType=atomic
       
      repeated string command = 3 [json_name = "command"];
      Parameters:
      index - The index of the element to return.
      Returns:
      The command at the given index.
    • getCommandBytes

      com.google.protobuf.ByteString getCommandBytes(int index)
       Entrypoint array. Not executed within a shell.
       The container image's ENTRYPOINT is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       +listType=atomic
       
      repeated string command = 3 [json_name = "command"];
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the command at the given index.
    • getArgsList

      List<String> getArgsList()
       Arguments to the entrypoint.
       The container image's CMD is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       +listType=atomic
       
      repeated string args = 4 [json_name = "args"];
      Returns:
      A list containing the args.
    • getArgsCount

      int getArgsCount()
       Arguments to the entrypoint.
       The container image's CMD is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       +listType=atomic
       
      repeated string args = 4 [json_name = "args"];
      Returns:
      The count of args.
    • getArgs

      String getArgs(int index)
       Arguments to the entrypoint.
       The container image's CMD is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       +listType=atomic
       
      repeated string args = 4 [json_name = "args"];
      Parameters:
      index - The index of the element to return.
      Returns:
      The args at the given index.
    • getArgsBytes

      com.google.protobuf.ByteString getArgsBytes(int index)
       Arguments to the entrypoint.
       The container image's CMD is used if this is not provided.
       Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       of whether the variable exists or not. Cannot be updated.
       More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       +optional
       +listType=atomic
       
      repeated string args = 4 [json_name = "args"];
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the args at the given index.
    • hasWorkingDir

      boolean hasWorkingDir()
       Container's working directory.
       If not specified, the container runtime's default will be used, which
       might be configured in the container image.
       Cannot be updated.
       +optional
       
      optional string working_dir = 5 [json_name = "workingDir"];
      Returns:
      Whether the workingDir field is set.
    • getWorkingDir

      String getWorkingDir()
       Container's working directory.
       If not specified, the container runtime's default will be used, which
       might be configured in the container image.
       Cannot be updated.
       +optional
       
      optional string working_dir = 5 [json_name = "workingDir"];
      Returns:
      The workingDir.
    • getWorkingDirBytes

      com.google.protobuf.ByteString getWorkingDirBytes()
       Container's working directory.
       If not specified, the container runtime's default will be used, which
       might be configured in the container image.
       Cannot be updated.
       +optional
       
      optional string working_dir = 5 [json_name = "workingDir"];
      Returns:
      The bytes for workingDir.
    • getEnvList

       List of environment variables to set in the container.
       Cannot be updated.
       +optional
       +patchMergeKey=name
       +patchStrategy=merge
       +listType=map
       +listMapKey=name
       
      repeated .chalk.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];
    • getEnv

      KubernetesPodData.EnvVar getEnv(int index)
       List of environment variables to set in the container.
       Cannot be updated.
       +optional
       +patchMergeKey=name
       +patchStrategy=merge
       +listType=map
       +listMapKey=name
       
      repeated .chalk.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];
    • getEnvCount

      int getEnvCount()
       List of environment variables to set in the container.
       Cannot be updated.
       +optional
       +patchMergeKey=name
       +patchStrategy=merge
       +listType=map
       +listMapKey=name
       
      repeated .chalk.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];
    • getEnvOrBuilderList

      List<? extends KubernetesPodData.EnvVarOrBuilder> getEnvOrBuilderList()
       List of environment variables to set in the container.
       Cannot be updated.
       +optional
       +patchMergeKey=name
       +patchStrategy=merge
       +listType=map
       +listMapKey=name
       
      repeated .chalk.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];
    • getEnvOrBuilder

      KubernetesPodData.EnvVarOrBuilder getEnvOrBuilder(int index)
       List of environment variables to set in the container.
       Cannot be updated.
       +optional
       +patchMergeKey=name
       +patchStrategy=merge
       +listType=map
       +listMapKey=name
       
      repeated .chalk.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];
    • hasResources

      boolean hasResources()
       Compute Resources required by this container.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];
      Returns:
      Whether the resources field is set.
    • getResources

       Compute Resources required by this container.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];
      Returns:
      The resources.
    • getResourcesOrBuilder

       Compute Resources required by this container.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];
    • hasRestartPolicy

      boolean hasRestartPolicy()
       RestartPolicy defines the restart behavior of individual containers in a pod.
       This field may only be set for init containers, and the only allowed value is "Always".
       For non-init containers or when this field is not specified,
       the restart behavior is defined by the Pod's restart policy and the container type.
       Setting the RestartPolicy as "Always" for the init container will have the following effect:
       this init container will be continually restarted on
       exit until all regular containers have terminated. Once all regular
       containers have completed, all init containers with restartPolicy "Always"
       will be shut down. This lifecycle differs from normal init containers and
       is often referred to as a "sidecar" container. Although this init
       container still starts in the init container sequence, it does not wait
       for the container to complete before proceeding to the next init
       container. Instead, the next init container starts immediately after this
       init container is started, or after any startupProbe has successfully
       completed.
       +featureGate=SidecarContainers
       +optional
       
      optional string restart_policy = 24 [json_name = "restartPolicy"];
      Returns:
      Whether the restartPolicy field is set.
    • getRestartPolicy

      String getRestartPolicy()
       RestartPolicy defines the restart behavior of individual containers in a pod.
       This field may only be set for init containers, and the only allowed value is "Always".
       For non-init containers or when this field is not specified,
       the restart behavior is defined by the Pod's restart policy and the container type.
       Setting the RestartPolicy as "Always" for the init container will have the following effect:
       this init container will be continually restarted on
       exit until all regular containers have terminated. Once all regular
       containers have completed, all init containers with restartPolicy "Always"
       will be shut down. This lifecycle differs from normal init containers and
       is often referred to as a "sidecar" container. Although this init
       container still starts in the init container sequence, it does not wait
       for the container to complete before proceeding to the next init
       container. Instead, the next init container starts immediately after this
       init container is started, or after any startupProbe has successfully
       completed.
       +featureGate=SidecarContainers
       +optional
       
      optional string restart_policy = 24 [json_name = "restartPolicy"];
      Returns:
      The restartPolicy.
    • getRestartPolicyBytes

      com.google.protobuf.ByteString getRestartPolicyBytes()
       RestartPolicy defines the restart behavior of individual containers in a pod.
       This field may only be set for init containers, and the only allowed value is "Always".
       For non-init containers or when this field is not specified,
       the restart behavior is defined by the Pod's restart policy and the container type.
       Setting the RestartPolicy as "Always" for the init container will have the following effect:
       this init container will be continually restarted on
       exit until all regular containers have terminated. Once all regular
       containers have completed, all init containers with restartPolicy "Always"
       will be shut down. This lifecycle differs from normal init containers and
       is often referred to as a "sidecar" container. Although this init
       container still starts in the init container sequence, it does not wait
       for the container to complete before proceeding to the next init
       container. Instead, the next init container starts immediately after this
       init container is started, or after any startupProbe has successfully
       completed.
       +featureGate=SidecarContainers
       +optional
       
      optional string restart_policy = 24 [json_name = "restartPolicy"];
      Returns:
      The bytes for restartPolicy.
    • hasTerminationMessagePath

      boolean hasTerminationMessagePath()
       Optional: Path at which the file to which the container's termination message
       will be written is mounted into the container's filesystem.
       Message written is intended to be brief final status, such as an assertion failure message.
       Will be truncated by the node if greater than 4096 bytes. The total message length across
       all containers will be limited to 12kb.
       Defaults to /dev/termination-log.
       Cannot be updated.
       +optional
       
      optional string termination_message_path = 13 [json_name = "terminationMessagePath"];
      Returns:
      Whether the terminationMessagePath field is set.
    • getTerminationMessagePath

      String getTerminationMessagePath()
       Optional: Path at which the file to which the container's termination message
       will be written is mounted into the container's filesystem.
       Message written is intended to be brief final status, such as an assertion failure message.
       Will be truncated by the node if greater than 4096 bytes. The total message length across
       all containers will be limited to 12kb.
       Defaults to /dev/termination-log.
       Cannot be updated.
       +optional
       
      optional string termination_message_path = 13 [json_name = "terminationMessagePath"];
      Returns:
      The terminationMessagePath.
    • getTerminationMessagePathBytes

      com.google.protobuf.ByteString getTerminationMessagePathBytes()
       Optional: Path at which the file to which the container's termination message
       will be written is mounted into the container's filesystem.
       Message written is intended to be brief final status, such as an assertion failure message.
       Will be truncated by the node if greater than 4096 bytes. The total message length across
       all containers will be limited to 12kb.
       Defaults to /dev/termination-log.
       Cannot be updated.
       +optional
       
      optional string termination_message_path = 13 [json_name = "terminationMessagePath"];
      Returns:
      The bytes for terminationMessagePath.
    • hasTerminationMessagePolicy

      boolean hasTerminationMessagePolicy()
       Indicate how the termination message should be populated. File will use the contents of
       terminationMessagePath to populate the container status message on both success and failure.
       FallbackToLogsOnError will use the last chunk of container log output if the termination
       message file is empty and the container exited with an error.
       The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       Defaults to File.
       Cannot be updated.
       +optional
       
      optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];
      Returns:
      Whether the terminationMessagePolicy field is set.
    • getTerminationMessagePolicy

      String getTerminationMessagePolicy()
       Indicate how the termination message should be populated. File will use the contents of
       terminationMessagePath to populate the container status message on both success and failure.
       FallbackToLogsOnError will use the last chunk of container log output if the termination
       message file is empty and the container exited with an error.
       The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       Defaults to File.
       Cannot be updated.
       +optional
       
      optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];
      Returns:
      The terminationMessagePolicy.
    • getTerminationMessagePolicyBytes

      com.google.protobuf.ByteString getTerminationMessagePolicyBytes()
       Indicate how the termination message should be populated. File will use the contents of
       terminationMessagePath to populate the container status message on both success and failure.
       FallbackToLogsOnError will use the last chunk of container log output if the termination
       message file is empty and the container exited with an error.
       The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       Defaults to File.
       Cannot be updated.
       +optional
       
      optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];
      Returns:
      The bytes for terminationMessagePolicy.
    • hasImagePullPolicy

      boolean hasImagePullPolicy()
       Image pull policy.
       One of Always, Never, IfNotPresent.
       Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       +optional
       
      optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];
      Returns:
      Whether the imagePullPolicy field is set.
    • getImagePullPolicy

      String getImagePullPolicy()
       Image pull policy.
       One of Always, Never, IfNotPresent.
       Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       +optional
       
      optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];
      Returns:
      The imagePullPolicy.
    • getImagePullPolicyBytes

      com.google.protobuf.ByteString getImagePullPolicyBytes()
       Image pull policy.
       One of Always, Never, IfNotPresent.
       Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       Cannot be updated.
       More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       +optional
       
      optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];
      Returns:
      The bytes for imagePullPolicy.
    • getStdin

      boolean getStdin()
       Whether this container should allocate a buffer for stdin in the container runtime. If this
       is not set, reads from stdin in the container will always result in EOF.
       
      bool stdin = 16 [json_name = "stdin"];
      Returns:
      The stdin.
    • getStdinOnce

      boolean getStdinOnce()
       Whether the container runtime should close the stdin channel after it has been opened by
       a single attach. When stdin is true the stdin stream will remain open across multiple attach
       sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
       first client attaches to stdin, and then remains open and accepts data until the client disconnects,
       at which time stdin is closed and remains closed until the container is restarted. If this
       flag is false, a container processes that reads from stdin will never receive an EOF.
       
      bool stdin_once = 17 [json_name = "stdinOnce"];
      Returns:
      The stdinOnce.
    • getTty

      boolean getTty()
       Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
       
      bool tty = 18 [json_name = "tty"];
      Returns:
      The tty.