public static final class V1.PodSecurityContext extends com.google.protobuf.GeneratedMessageV3 implements V1.PodSecurityContextOrBuilder
PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.Protobuf type
k8s.io.api.core.v1.PodSecurityContext| Modifier and Type | Class and Description |
|---|---|
static class |
V1.PodSecurityContext.Builder
PodSecurityContext holds pod-level security attributes and common container settings.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
FSGROUP_FIELD_NUMBER |
static com.google.protobuf.Parser<V1.PodSecurityContext> |
PARSER
Deprecated.
|
static int |
RUNASGROUP_FIELD_NUMBER |
static int |
RUNASNONROOT_FIELD_NUMBER |
static int |
RUNASUSER_FIELD_NUMBER |
static int |
SELINUXOPTIONS_FIELD_NUMBER |
static int |
SUPPLEMENTALGROUPS_FIELD_NUMBER |
static int |
SYSCTLS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static V1.PodSecurityContext |
getDefaultInstance() |
V1.PodSecurityContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getFsGroup()
A special supplemental group that applies to all containers in a pod.
|
com.google.protobuf.Parser<V1.PodSecurityContext> |
getParserForType() |
long |
getRunAsGroup()
The GID to run the entrypoint of the container process.
|
boolean |
getRunAsNonRoot()
Indicates that the container must run as a non-root user.
|
long |
getRunAsUser()
The UID to run the entrypoint of the container process.
|
V1.SELinuxOptions |
getSeLinuxOptions()
The SELinux context to be applied to all containers.
|
V1.SELinuxOptionsOrBuilder |
getSeLinuxOptionsOrBuilder()
The SELinux context to be applied to all containers.
|
int |
getSerializedSize() |
long |
getSupplementalGroups(int index)
A list of groups applied to the first process run in each container, in addition
to the container's primary GID.
|
int |
getSupplementalGroupsCount()
A list of groups applied to the first process run in each container, in addition
to the container's primary GID.
|
List<Long> |
getSupplementalGroupsList()
A list of groups applied to the first process run in each container, in addition
to the container's primary GID.
|
V1.Sysctl |
getSysctls(int index)
Sysctls hold a list of namespaced sysctls used for the pod.
|
int |
getSysctlsCount()
Sysctls hold a list of namespaced sysctls used for the pod.
|
List<V1.Sysctl> |
getSysctlsList()
Sysctls hold a list of namespaced sysctls used for the pod.
|
V1.SysctlOrBuilder |
getSysctlsOrBuilder(int index)
Sysctls hold a list of namespaced sysctls used for the pod.
|
List<? extends V1.SysctlOrBuilder> |
getSysctlsOrBuilderList()
Sysctls hold a list of namespaced sysctls used for the pod.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasFsGroup()
A special supplemental group that applies to all containers in a pod.
|
int |
hashCode() |
boolean |
hasRunAsGroup()
The GID to run the entrypoint of the container process.
|
boolean |
hasRunAsNonRoot()
Indicates that the container must run as a non-root user.
|
boolean |
hasRunAsUser()
The UID to run the entrypoint of the container process.
|
boolean |
hasSeLinuxOptions()
The SELinux context to be applied to all containers.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static V1.PodSecurityContext.Builder |
newBuilder() |
static V1.PodSecurityContext.Builder |
newBuilder(V1.PodSecurityContext prototype) |
V1.PodSecurityContext.Builder |
newBuilderForType() |
protected V1.PodSecurityContext.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static V1.PodSecurityContext |
parseDelimitedFrom(InputStream input) |
static V1.PodSecurityContext |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.PodSecurityContext |
parseFrom(byte[] data) |
static V1.PodSecurityContext |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.PodSecurityContext |
parseFrom(ByteBuffer data) |
static V1.PodSecurityContext |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.PodSecurityContext |
parseFrom(com.google.protobuf.ByteString data) |
static V1.PodSecurityContext |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.PodSecurityContext |
parseFrom(com.google.protobuf.CodedInputStream input) |
static V1.PodSecurityContext |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.PodSecurityContext |
parseFrom(InputStream input) |
static V1.PodSecurityContext |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<V1.PodSecurityContext> |
parser() |
V1.PodSecurityContext.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SELINUXOPTIONS_FIELD_NUMBER
public static final int RUNASUSER_FIELD_NUMBER
public static final int RUNASGROUP_FIELD_NUMBER
public static final int RUNASNONROOT_FIELD_NUMBER
public static final int SUPPLEMENTALGROUPS_FIELD_NUMBER
public static final int FSGROUP_FIELD_NUMBER
public static final int SYSCTLS_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<V1.PodSecurityContext> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasSeLinuxOptions()
The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. +optional
optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1;hasSeLinuxOptions in interface V1.PodSecurityContextOrBuilderpublic V1.SELinuxOptions getSeLinuxOptions()
The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. +optional
optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1;getSeLinuxOptions in interface V1.PodSecurityContextOrBuilderpublic V1.SELinuxOptionsOrBuilder getSeLinuxOptionsOrBuilder()
The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. +optional
optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1;getSeLinuxOptionsOrBuilder in interface V1.PodSecurityContextOrBuilderpublic boolean hasRunAsUser()
The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. +optional
optional int64 runAsUser = 2;hasRunAsUser in interface V1.PodSecurityContextOrBuilderpublic long getRunAsUser()
The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. +optional
optional int64 runAsUser = 2;getRunAsUser in interface V1.PodSecurityContextOrBuilderpublic boolean hasRunAsGroup()
The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. +optional
optional int64 runAsGroup = 6;hasRunAsGroup in interface V1.PodSecurityContextOrBuilderpublic long getRunAsGroup()
The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. +optional
optional int64 runAsGroup = 6;getRunAsGroup in interface V1.PodSecurityContextOrBuilderpublic boolean hasRunAsNonRoot()
Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional
optional bool runAsNonRoot = 3;hasRunAsNonRoot in interface V1.PodSecurityContextOrBuilderpublic boolean getRunAsNonRoot()
Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional
optional bool runAsNonRoot = 3;getRunAsNonRoot in interface V1.PodSecurityContextOrBuilderpublic List<Long> getSupplementalGroupsList()
A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. +optional
repeated int64 supplementalGroups = 4;getSupplementalGroupsList in interface V1.PodSecurityContextOrBuilderpublic int getSupplementalGroupsCount()
A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. +optional
repeated int64 supplementalGroups = 4;getSupplementalGroupsCount in interface V1.PodSecurityContextOrBuilderpublic long getSupplementalGroups(int index)
A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. +optional
repeated int64 supplementalGroups = 4;getSupplementalGroups in interface V1.PodSecurityContextOrBuilderpublic boolean hasFsGroup()
A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. +optional
optional int64 fsGroup = 5;hasFsGroup in interface V1.PodSecurityContextOrBuilderpublic long getFsGroup()
A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. +optional
optional int64 fsGroup = 5;getFsGroup in interface V1.PodSecurityContextOrBuilderpublic List<V1.Sysctl> getSysctlsList()
Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. +optional
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;getSysctlsList in interface V1.PodSecurityContextOrBuilderpublic List<? extends V1.SysctlOrBuilder> getSysctlsOrBuilderList()
Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. +optional
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;getSysctlsOrBuilderList in interface V1.PodSecurityContextOrBuilderpublic int getSysctlsCount()
Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. +optional
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;getSysctlsCount in interface V1.PodSecurityContextOrBuilderpublic V1.Sysctl getSysctls(int index)
Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. +optional
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;getSysctls in interface V1.PodSecurityContextOrBuilderpublic V1.SysctlOrBuilder getSysctlsOrBuilder(int index)
Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. +optional
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;getSysctlsOrBuilder in interface V1.PodSecurityContextOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static V1.PodSecurityContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.PodSecurityContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.PodSecurityContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.PodSecurityContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.PodSecurityContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.PodSecurityContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.PodSecurityContext parseFrom(InputStream input) throws IOException
IOExceptionpublic static V1.PodSecurityContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1.PodSecurityContext parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static V1.PodSecurityContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1.PodSecurityContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static V1.PodSecurityContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic V1.PodSecurityContext.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static V1.PodSecurityContext.Builder newBuilder()
public static V1.PodSecurityContext.Builder newBuilder(V1.PodSecurityContext prototype)
public V1.PodSecurityContext.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected V1.PodSecurityContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static V1.PodSecurityContext getDefaultInstance()
public static com.google.protobuf.Parser<V1.PodSecurityContext> parser()
public com.google.protobuf.Parser<V1.PodSecurityContext> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public V1.PodSecurityContext getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2021. All rights reserved.