public static final class V1.EphemeralContainer.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder> implements V1.EphemeralContainerOrBuilder
An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted. This is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate.Protobuf type
k8s.io.api.core.v1.EphemeralContainer| Modifier and Type | Method and Description |
|---|---|
V1.EphemeralContainer.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.EphemeralContainer |
build() |
V1.EphemeralContainer |
buildPartial() |
V1.EphemeralContainer.Builder |
clear() |
V1.EphemeralContainer.Builder |
clearEphemeralContainerCommon()
Ephemeral containers have all of the fields of Container, plus additional fields
specific to ephemeral containers.
|
V1.EphemeralContainer.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.EphemeralContainer.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.EphemeralContainer.Builder |
clearTargetContainerName()
If set, the name of the container from PodSpec that this ephemeral container targets.
|
V1.EphemeralContainer.Builder |
clone() |
V1.EphemeralContainer |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
V1.EphemeralContainerCommon |
getEphemeralContainerCommon()
Ephemeral containers have all of the fields of Container, plus additional fields
specific to ephemeral containers.
|
V1.EphemeralContainerCommon.Builder |
getEphemeralContainerCommonBuilder()
Ephemeral containers have all of the fields of Container, plus additional fields
specific to ephemeral containers.
|
V1.EphemeralContainerCommonOrBuilder |
getEphemeralContainerCommonOrBuilder()
Ephemeral containers have all of the fields of Container, plus additional fields
specific to ephemeral containers.
|
String |
getTargetContainerName()
If set, the name of the container from PodSpec that this ephemeral container targets.
|
com.google.protobuf.ByteString |
getTargetContainerNameBytes()
If set, the name of the container from PodSpec that this ephemeral container targets.
|
boolean |
hasEphemeralContainerCommon()
Ephemeral containers have all of the fields of Container, plus additional fields
specific to ephemeral containers.
|
boolean |
hasTargetContainerName()
If set, the name of the container from PodSpec that this ephemeral container targets.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1.EphemeralContainer.Builder |
mergeEphemeralContainerCommon(V1.EphemeralContainerCommon value)
Ephemeral containers have all of the fields of Container, plus additional fields
specific to ephemeral containers.
|
V1.EphemeralContainer.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.EphemeralContainer.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.EphemeralContainer.Builder |
mergeFrom(V1.EphemeralContainer other) |
V1.EphemeralContainer.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.EphemeralContainer.Builder |
setEphemeralContainerCommon(V1.EphemeralContainerCommon.Builder builderForValue)
Ephemeral containers have all of the fields of Container, plus additional fields
specific to ephemeral containers.
|
V1.EphemeralContainer.Builder |
setEphemeralContainerCommon(V1.EphemeralContainerCommon value)
Ephemeral containers have all of the fields of Container, plus additional fields
specific to ephemeral containers.
|
V1.EphemeralContainer.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.EphemeralContainer.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.EphemeralContainer.Builder |
setTargetContainerName(String value)
If set, the name of the container from PodSpec that this ephemeral container targets.
|
V1.EphemeralContainer.Builder |
setTargetContainerNameBytes(com.google.protobuf.ByteString value)
If set, the name of the container from PodSpec that this ephemeral container targets.
|
V1.EphemeralContainer.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>public V1.EphemeralContainer.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>public V1.EphemeralContainer getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.EphemeralContainer build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.EphemeralContainer buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.EphemeralContainer.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>public V1.EphemeralContainer.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>public V1.EphemeralContainer.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>public V1.EphemeralContainer.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>public V1.EphemeralContainer.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>public V1.EphemeralContainer.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>public V1.EphemeralContainer.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.EphemeralContainer.Builder>public V1.EphemeralContainer.Builder mergeFrom(V1.EphemeralContainer other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>public V1.EphemeralContainer.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.EphemeralContainer.Builder>IOExceptionpublic boolean hasEphemeralContainerCommon()
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
hasEphemeralContainerCommon in interface V1.EphemeralContainerOrBuilderpublic V1.EphemeralContainerCommon getEphemeralContainerCommon()
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
getEphemeralContainerCommon in interface V1.EphemeralContainerOrBuilderpublic V1.EphemeralContainer.Builder setEphemeralContainerCommon(V1.EphemeralContainerCommon value)
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
public V1.EphemeralContainer.Builder setEphemeralContainerCommon(V1.EphemeralContainerCommon.Builder builderForValue)
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
public V1.EphemeralContainer.Builder mergeEphemeralContainerCommon(V1.EphemeralContainerCommon value)
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
public V1.EphemeralContainer.Builder clearEphemeralContainerCommon()
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
public V1.EphemeralContainerCommon.Builder getEphemeralContainerCommonBuilder()
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
public V1.EphemeralContainerCommonOrBuilder getEphemeralContainerCommonOrBuilder()
Ephemeral containers have all of the fields of Container, plus additional fields specific to ephemeral containers. Fields in common with Container are in the following inlined struct so than an EphemeralContainer may easily be converted to a Container.
optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
getEphemeralContainerCommonOrBuilder in interface V1.EphemeralContainerOrBuilderpublic boolean hasTargetContainerName()
If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional
optional string targetContainerName = 2;hasTargetContainerName in interface V1.EphemeralContainerOrBuilderpublic String getTargetContainerName()
If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional
optional string targetContainerName = 2;getTargetContainerName in interface V1.EphemeralContainerOrBuilderpublic com.google.protobuf.ByteString getTargetContainerNameBytes()
If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional
optional string targetContainerName = 2;getTargetContainerNameBytes in interface V1.EphemeralContainerOrBuilderpublic V1.EphemeralContainer.Builder setTargetContainerName(String value)
If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional
optional string targetContainerName = 2;public V1.EphemeralContainer.Builder clearTargetContainerName()
If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional
optional string targetContainerName = 2;public V1.EphemeralContainer.Builder setTargetContainerNameBytes(com.google.protobuf.ByteString value)
If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional
optional string targetContainerName = 2;public final V1.EphemeralContainer.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>public final V1.EphemeralContainer.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>Copyright © 2023. All rights reserved.