Package k8s.io.api.core.v1
Class Generated.PodSecurityContext
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.Generated.PodSecurityContext
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.PodSecurityContextOrBuilder
- Enclosing class:
- Generated
public static final class Generated.PodSecurityContext extends com.google.protobuf.GeneratedMessageV3 implements Generated.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 typek8s.io.api.core.v1.PodSecurityContext- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.PodSecurityContext.BuilderPodSecurityContext holds pod-level security attributes and common container settings.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAPPARMORPROFILE_FIELD_NUMBERstatic intFSGROUP_FIELD_NUMBERstatic intFSGROUPCHANGEPOLICY_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.PodSecurityContext>PARSERDeprecated.static intRUNASGROUP_FIELD_NUMBERstatic intRUNASNONROOT_FIELD_NUMBERstatic intRUNASUSER_FIELD_NUMBERstatic intSECCOMPPROFILE_FIELD_NUMBERstatic intSELINUXCHANGEPOLICY_FIELD_NUMBERstatic intSELINUXOPTIONS_FIELD_NUMBERstatic intSUPPLEMENTALGROUPS_FIELD_NUMBERstatic intSUPPLEMENTALGROUPSPOLICY_FIELD_NUMBERstatic intSYSCTLS_FIELD_NUMBERstatic intWINDOWSOPTIONS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Generated.AppArmorProfilegetAppArmorProfile()appArmorProfile is the AppArmor options to use by the containers in this pod.Generated.AppArmorProfileOrBuildergetAppArmorProfileOrBuilder()appArmorProfile is the AppArmor options to use by the containers in this pod.static Generated.PodSecurityContextgetDefaultInstance()Generated.PodSecurityContextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()longgetFsGroup()A special supplemental group that applies to all containers in a pod.StringgetFsGroupChangePolicy()fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod.com.google.protobuf.ByteStringgetFsGroupChangePolicyBytes()fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod.com.google.protobuf.Parser<Generated.PodSecurityContext>getParserForType()longgetRunAsGroup()The GID to run the entrypoint of the container process.booleangetRunAsNonRoot()Indicates that the container must run as a non-root user.longgetRunAsUser()The UID to run the entrypoint of the container process.Generated.SeccompProfilegetSeccompProfile()The seccomp options to use by the containers in this pod.Generated.SeccompProfileOrBuildergetSeccompProfileOrBuilder()The seccomp options to use by the containers in this pod.StringgetSeLinuxChangePolicy()seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.com.google.protobuf.ByteStringgetSeLinuxChangePolicyBytes()seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.Generated.SELinuxOptionsgetSeLinuxOptions()The SELinux context to be applied to all containers.Generated.SELinuxOptionsOrBuildergetSeLinuxOptionsOrBuilder()The SELinux context to be applied to all containers.intgetSerializedSize()longgetSupplementalGroups(int index)A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified).intgetSupplementalGroupsCount()A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified).List<Long>getSupplementalGroupsList()A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified).StringgetSupplementalGroupsPolicy()Defines how supplemental groups of the first container processes are calculated.com.google.protobuf.ByteStringgetSupplementalGroupsPolicyBytes()Defines how supplemental groups of the first container processes are calculated.Generated.SysctlgetSysctls(int index)Sysctls hold a list of namespaced sysctls used for the pod.intgetSysctlsCount()Sysctls hold a list of namespaced sysctls used for the pod.List<Generated.Sysctl>getSysctlsList()Sysctls hold a list of namespaced sysctls used for the pod.Generated.SysctlOrBuildergetSysctlsOrBuilder(int index)Sysctls hold a list of namespaced sysctls used for the pod.List<? extends Generated.SysctlOrBuilder>getSysctlsOrBuilderList()Sysctls hold a list of namespaced sysctls used for the pod.Generated.WindowsSecurityContextOptionsgetWindowsOptions()The Windows specific settings applied to all containers.Generated.WindowsSecurityContextOptionsOrBuildergetWindowsOptionsOrBuilder()The Windows specific settings applied to all containers.booleanhasAppArmorProfile()appArmorProfile is the AppArmor options to use by the containers in this pod.booleanhasFsGroup()A special supplemental group that applies to all containers in a pod.booleanhasFsGroupChangePolicy()fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod.inthashCode()booleanhasRunAsGroup()The GID to run the entrypoint of the container process.booleanhasRunAsNonRoot()Indicates that the container must run as a non-root user.booleanhasRunAsUser()The UID to run the entrypoint of the container process.booleanhasSeccompProfile()The seccomp options to use by the containers in this pod.booleanhasSeLinuxChangePolicy()seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.booleanhasSeLinuxOptions()The SELinux context to be applied to all containers.booleanhasSupplementalGroupsPolicy()Defines how supplemental groups of the first container processes are calculated.booleanhasWindowsOptions()The Windows specific settings applied to all containers.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Generated.PodSecurityContext.BuildernewBuilder()static Generated.PodSecurityContext.BuildernewBuilder(Generated.PodSecurityContext prototype)Generated.PodSecurityContext.BuildernewBuilderForType()protected Generated.PodSecurityContext.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.PodSecurityContextparseDelimitedFrom(InputStream input)static Generated.PodSecurityContextparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PodSecurityContextparseFrom(byte[] data)static Generated.PodSecurityContextparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PodSecurityContextparseFrom(com.google.protobuf.ByteString data)static Generated.PodSecurityContextparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PodSecurityContextparseFrom(com.google.protobuf.CodedInputStream input)static Generated.PodSecurityContextparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PodSecurityContextparseFrom(InputStream input)static Generated.PodSecurityContextparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.PodSecurityContextparseFrom(ByteBuffer data)static Generated.PodSecurityContextparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.PodSecurityContext>parser()Generated.PodSecurityContext.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SELINUXOPTIONS_FIELD_NUMBER
public static final int SELINUXOPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WINDOWSOPTIONS_FIELD_NUMBER
public static final int WINDOWSOPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RUNASUSER_FIELD_NUMBER
public static final int RUNASUSER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RUNASGROUP_FIELD_NUMBER
public static final int RUNASGROUP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RUNASNONROOT_FIELD_NUMBER
public static final int RUNASNONROOT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUPPLEMENTALGROUPS_FIELD_NUMBER
public static final int SUPPLEMENTALGROUPS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUPPLEMENTALGROUPSPOLICY_FIELD_NUMBER
public static final int SUPPLEMENTALGROUPSPOLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FSGROUP_FIELD_NUMBER
public static final int FSGROUP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYSCTLS_FIELD_NUMBER
public static final int SYSCTLS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FSGROUPCHANGEPOLICY_FIELD_NUMBER
public static final int FSGROUPCHANGEPOLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECCOMPPROFILE_FIELD_NUMBER
public static final int SECCOMPPROFILE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
APPARMORPROFILE_FIELD_NUMBER
public static final int APPARMORPROFILE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SELINUXCHANGEPOLICY_FIELD_NUMBER
public static final int SELINUXCHANGEPOLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.PodSecurityContext> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasSeLinuxOptions
public 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. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1;- Specified by:
hasSeLinuxOptionsin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- Whether the seLinuxOptions field is set.
-
getSeLinuxOptions
public Generated.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. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1;- Specified by:
getSeLinuxOptionsin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The seLinuxOptions.
-
getSeLinuxOptionsOrBuilder
public Generated.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. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1;- Specified by:
getSeLinuxOptionsOrBuilderin interfaceGenerated.PodSecurityContextOrBuilder
-
hasWindowsOptions
public boolean hasWindowsOptions()
The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. +optional
optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8;- Specified by:
hasWindowsOptionsin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- Whether the windowsOptions field is set.
-
getWindowsOptions
public Generated.WindowsSecurityContextOptions getWindowsOptions()
The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. +optional
optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8;- Specified by:
getWindowsOptionsin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The windowsOptions.
-
getWindowsOptionsOrBuilder
public Generated.WindowsSecurityContextOptionsOrBuilder getWindowsOptionsOrBuilder()
The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. +optional
optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8;- Specified by:
getWindowsOptionsOrBuilderin interfaceGenerated.PodSecurityContextOrBuilder
-
hasRunAsUser
public 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. Note that this field cannot be set when spec.os.name is windows. +optional
optional int64 runAsUser = 2;- Specified by:
hasRunAsUserin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- Whether the runAsUser field is set.
-
getRunAsUser
public 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. Note that this field cannot be set when spec.os.name is windows. +optional
optional int64 runAsUser = 2;- Specified by:
getRunAsUserin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The runAsUser.
-
hasRunAsGroup
public 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. Note that this field cannot be set when spec.os.name is windows. +optional
optional int64 runAsGroup = 6;- Specified by:
hasRunAsGroupin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- Whether the runAsGroup field is set.
-
getRunAsGroup
public 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. Note that this field cannot be set when spec.os.name is windows. +optional
optional int64 runAsGroup = 6;- Specified by:
getRunAsGroupin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The runAsGroup.
-
hasRunAsNonRoot
public 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;- Specified by:
hasRunAsNonRootin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- Whether the runAsNonRoot field is set.
-
getRunAsNonRoot
public 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;- Specified by:
getRunAsNonRootin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The runAsNonRoot.
-
getSupplementalGroupsList
public List<Long> getSupplementalGroupsList()
A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows. +optional +listType=atomic
repeated int64 supplementalGroups = 4;- Specified by:
getSupplementalGroupsListin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- A list containing the supplementalGroups.
-
getSupplementalGroupsCount
public int getSupplementalGroupsCount()
A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows. +optional +listType=atomic
repeated int64 supplementalGroups = 4;- Specified by:
getSupplementalGroupsCountin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The count of supplementalGroups.
-
getSupplementalGroups
public 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 and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows. +optional +listType=atomic
repeated int64 supplementalGroups = 4;- Specified by:
getSupplementalGroupsin interfaceGenerated.PodSecurityContextOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The supplementalGroups at the given index.
-
hasSupplementalGroupsPolicy
public boolean hasSupplementalGroupsPolicy()
Defines how supplemental groups of the first container processes are calculated. Valid values are "Merge" and "Strict". If not specified, "Merge" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows. TODO: update the default value to "Merge" when spec.os.name is not windows in v1.34 +featureGate=SupplementalGroupsPolicy +optional
optional string supplementalGroupsPolicy = 12;- Specified by:
hasSupplementalGroupsPolicyin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- Whether the supplementalGroupsPolicy field is set.
-
getSupplementalGroupsPolicy
public String getSupplementalGroupsPolicy()
Defines how supplemental groups of the first container processes are calculated. Valid values are "Merge" and "Strict". If not specified, "Merge" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows. TODO: update the default value to "Merge" when spec.os.name is not windows in v1.34 +featureGate=SupplementalGroupsPolicy +optional
optional string supplementalGroupsPolicy = 12;- Specified by:
getSupplementalGroupsPolicyin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The supplementalGroupsPolicy.
-
getSupplementalGroupsPolicyBytes
public com.google.protobuf.ByteString getSupplementalGroupsPolicyBytes()
Defines how supplemental groups of the first container processes are calculated. Valid values are "Merge" and "Strict". If not specified, "Merge" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows. TODO: update the default value to "Merge" when spec.os.name is not windows in v1.34 +featureGate=SupplementalGroupsPolicy +optional
optional string supplementalGroupsPolicy = 12;- Specified by:
getSupplementalGroupsPolicyBytesin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The bytes for supplementalGroupsPolicy.
-
hasFsGroup
public 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. Note that this field cannot be set when spec.os.name is windows. +optional
optional int64 fsGroup = 5;- Specified by:
hasFsGroupin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- Whether the fsGroup field is set.
-
getFsGroup
public 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. Note that this field cannot be set when spec.os.name is windows. +optional
optional int64 fsGroup = 5;- Specified by:
getFsGroupin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The fsGroup.
-
getSysctlsList
public List<Generated.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. Note that this field cannot be set when spec.os.name is windows. +optional +listType=atomic
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;- Specified by:
getSysctlsListin interfaceGenerated.PodSecurityContextOrBuilder
-
getSysctlsOrBuilderList
public List<? extends Generated.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. Note that this field cannot be set when spec.os.name is windows. +optional +listType=atomic
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;- Specified by:
getSysctlsOrBuilderListin interfaceGenerated.PodSecurityContextOrBuilder
-
getSysctlsCount
public 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. Note that this field cannot be set when spec.os.name is windows. +optional +listType=atomic
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;- Specified by:
getSysctlsCountin interfaceGenerated.PodSecurityContextOrBuilder
-
getSysctls
public Generated.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. Note that this field cannot be set when spec.os.name is windows. +optional +listType=atomic
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;- Specified by:
getSysctlsin interfaceGenerated.PodSecurityContextOrBuilder
-
getSysctlsOrBuilder
public Generated.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. Note that this field cannot be set when spec.os.name is windows. +optional +listType=atomic
repeated .k8s.io.api.core.v1.Sysctl sysctls = 7;- Specified by:
getSysctlsOrBuilderin interfaceGenerated.PodSecurityContextOrBuilder
-
hasFsGroupChangePolicy
public boolean hasFsGroupChangePolicy()
fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows. +optional
optional string fsGroupChangePolicy = 9;- Specified by:
hasFsGroupChangePolicyin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- Whether the fsGroupChangePolicy field is set.
-
getFsGroupChangePolicy
public String getFsGroupChangePolicy()
fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows. +optional
optional string fsGroupChangePolicy = 9;- Specified by:
getFsGroupChangePolicyin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The fsGroupChangePolicy.
-
getFsGroupChangePolicyBytes
public com.google.protobuf.ByteString getFsGroupChangePolicyBytes()
fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows. +optional
optional string fsGroupChangePolicy = 9;- Specified by:
getFsGroupChangePolicyBytesin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The bytes for fsGroupChangePolicy.
-
hasSeccompProfile
public boolean hasSeccompProfile()
The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10;- Specified by:
hasSeccompProfilein interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- Whether the seccompProfile field is set.
-
getSeccompProfile
public Generated.SeccompProfile getSeccompProfile()
The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10;- Specified by:
getSeccompProfilein interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The seccompProfile.
-
getSeccompProfileOrBuilder
public Generated.SeccompProfileOrBuilder getSeccompProfileOrBuilder()
The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10;- Specified by:
getSeccompProfileOrBuilderin interfaceGenerated.PodSecurityContextOrBuilder
-
hasAppArmorProfile
public boolean hasAppArmorProfile()
appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.AppArmorProfile appArmorProfile = 11;- Specified by:
hasAppArmorProfilein interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- Whether the appArmorProfile field is set.
-
getAppArmorProfile
public Generated.AppArmorProfile getAppArmorProfile()
appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.AppArmorProfile appArmorProfile = 11;- Specified by:
getAppArmorProfilein interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The appArmorProfile.
-
getAppArmorProfileOrBuilder
public Generated.AppArmorProfileOrBuilder getAppArmorProfileOrBuilder()
appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.AppArmorProfile appArmorProfile = 11;- Specified by:
getAppArmorProfileOrBuilderin interfaceGenerated.PodSecurityContextOrBuilder
-
hasSeLinuxChangePolicy
public boolean hasSeLinuxChangePolicy()
seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are "MountOption" and "Recursive". "Recursive" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. "MountOption" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. "MountOption" value is allowed only when SELinuxMount feature gate is enabled. If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes and "Recursive" for all other volumes. This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows. +featureGate=SELinuxChangePolicy +optional
optional string seLinuxChangePolicy = 13;- Specified by:
hasSeLinuxChangePolicyin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- Whether the seLinuxChangePolicy field is set.
-
getSeLinuxChangePolicy
public String getSeLinuxChangePolicy()
seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are "MountOption" and "Recursive". "Recursive" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. "MountOption" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. "MountOption" value is allowed only when SELinuxMount feature gate is enabled. If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes and "Recursive" for all other volumes. This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows. +featureGate=SELinuxChangePolicy +optional
optional string seLinuxChangePolicy = 13;- Specified by:
getSeLinuxChangePolicyin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The seLinuxChangePolicy.
-
getSeLinuxChangePolicyBytes
public com.google.protobuf.ByteString getSeLinuxChangePolicyBytes()
seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are "MountOption" and "Recursive". "Recursive" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node. "MountOption" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. "MountOption" value is allowed only when SELinuxMount feature gate is enabled. If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes and "Recursive" for all other volumes. This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows. +featureGate=SELinuxChangePolicy +optional
optional string seLinuxChangePolicy = 13;- Specified by:
getSeLinuxChangePolicyBytesin interfaceGenerated.PodSecurityContextOrBuilder- Returns:
- The bytes for seLinuxChangePolicy.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Generated.PodSecurityContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PodSecurityContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PodSecurityContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PodSecurityContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PodSecurityContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PodSecurityContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.PodSecurityContext parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.PodSecurityContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.PodSecurityContext parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.PodSecurityContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.PodSecurityContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.PodSecurityContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.PodSecurityContext.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.PodSecurityContext.Builder newBuilder()
-
newBuilder
public static Generated.PodSecurityContext.Builder newBuilder(Generated.PodSecurityContext prototype)
-
toBuilder
public Generated.PodSecurityContext.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.PodSecurityContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.PodSecurityContext getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.PodSecurityContext> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.PodSecurityContext> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.PodSecurityContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-