Package k8s.io.api.core.v1
Class Generated.SecurityContext
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.Generated.SecurityContext
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.SecurityContextOrBuilder
- Enclosing class:
- Generated
public static final class Generated.SecurityContext extends com.google.protobuf.GeneratedMessageV3 implements Generated.SecurityContextOrBuilder
SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.
Protobuf typek8s.io.api.core.v1.SecurityContext- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.SecurityContext.BuilderSecurityContext holds security configuration that will be applied to a container.-
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 intALLOWPRIVILEGEESCALATION_FIELD_NUMBERstatic intAPPARMORPROFILE_FIELD_NUMBERstatic intCAPABILITIES_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.SecurityContext>PARSERDeprecated.static intPRIVILEGED_FIELD_NUMBERstatic intPROCMOUNT_FIELD_NUMBERstatic intREADONLYROOTFILESYSTEM_FIELD_NUMBERstatic intRUNASGROUP_FIELD_NUMBERstatic intRUNASNONROOT_FIELD_NUMBERstatic intRUNASUSER_FIELD_NUMBERstatic intSECCOMPPROFILE_FIELD_NUMBERstatic intSELINUXOPTIONS_FIELD_NUMBERstatic intWINDOWSOPTIONS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetAllowPrivilegeEscalation()AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process.Generated.AppArmorProfilegetAppArmorProfile()appArmorProfile is the AppArmor options to use by this container.Generated.AppArmorProfileOrBuildergetAppArmorProfileOrBuilder()appArmorProfile is the AppArmor options to use by this container.Generated.CapabilitiesgetCapabilities()The capabilities to add/drop when running containers.Generated.CapabilitiesOrBuildergetCapabilitiesOrBuilder()The capabilities to add/drop when running containers.static Generated.SecurityContextgetDefaultInstance()Generated.SecurityContextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<Generated.SecurityContext>getParserForType()booleangetPrivileged()Run container in privileged mode.StringgetProcMount()procMount denotes the type of proc mount to use for the containers.com.google.protobuf.ByteStringgetProcMountBytes()procMount denotes the type of proc mount to use for the containers.booleangetReadOnlyRootFilesystem()Whether this container has a read-only root filesystem.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 this container.Generated.SeccompProfileOrBuildergetSeccompProfileOrBuilder()The seccomp options to use by this container.Generated.SELinuxOptionsgetSeLinuxOptions()The SELinux context to be applied to the container.Generated.SELinuxOptionsOrBuildergetSeLinuxOptionsOrBuilder()The SELinux context to be applied to the container.intgetSerializedSize()Generated.WindowsSecurityContextOptionsgetWindowsOptions()The Windows specific settings applied to all containers.Generated.WindowsSecurityContextOptionsOrBuildergetWindowsOptionsOrBuilder()The Windows specific settings applied to all containers.booleanhasAllowPrivilegeEscalation()AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process.booleanhasAppArmorProfile()appArmorProfile is the AppArmor options to use by this container.booleanhasCapabilities()The capabilities to add/drop when running containers.inthashCode()booleanhasPrivileged()Run container in privileged mode.booleanhasProcMount()procMount denotes the type of proc mount to use for the containers.booleanhasReadOnlyRootFilesystem()Whether this container has a read-only root filesystem.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 this container.booleanhasSeLinuxOptions()The SELinux context to be applied to the container.booleanhasWindowsOptions()The Windows specific settings applied to all containers.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Generated.SecurityContext.BuildernewBuilder()static Generated.SecurityContext.BuildernewBuilder(Generated.SecurityContext prototype)Generated.SecurityContext.BuildernewBuilderForType()protected Generated.SecurityContext.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.SecurityContextparseDelimitedFrom(InputStream input)static Generated.SecurityContextparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecurityContextparseFrom(byte[] data)static Generated.SecurityContextparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecurityContextparseFrom(com.google.protobuf.ByteString data)static Generated.SecurityContextparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecurityContextparseFrom(com.google.protobuf.CodedInputStream input)static Generated.SecurityContextparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecurityContextparseFrom(InputStream input)static Generated.SecurityContextparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.SecurityContextparseFrom(ByteBuffer data)static Generated.SecurityContextparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.SecurityContext>parser()Generated.SecurityContext.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
-
CAPABILITIES_FIELD_NUMBER
public static final int CAPABILITIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRIVILEGED_FIELD_NUMBER
public static final int PRIVILEGED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
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
-
READONLYROOTFILESYSTEM_FIELD_NUMBER
public static final int READONLYROOTFILESYSTEM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALLOWPRIVILEGEESCALATION_FIELD_NUMBER
public static final int ALLOWPRIVILEGEESCALATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROCMOUNT_FIELD_NUMBER
public static final int PROCMOUNT_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
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.SecurityContext> 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
-
hasCapabilities
public boolean hasCapabilities()
The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.Capabilities capabilities = 1;- Specified by:
hasCapabilitiesin interfaceGenerated.SecurityContextOrBuilder- Returns:
- Whether the capabilities field is set.
-
getCapabilities
public Generated.Capabilities getCapabilities()
The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.Capabilities capabilities = 1;- Specified by:
getCapabilitiesin interfaceGenerated.SecurityContextOrBuilder- Returns:
- The capabilities.
-
getCapabilitiesOrBuilder
public Generated.CapabilitiesOrBuilder getCapabilitiesOrBuilder()
The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.Capabilities capabilities = 1;- Specified by:
getCapabilitiesOrBuilderin interfaceGenerated.SecurityContextOrBuilder
-
hasPrivileged
public boolean hasPrivileged()
Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. +optional
optional bool privileged = 2;- Specified by:
hasPrivilegedin interfaceGenerated.SecurityContextOrBuilder- Returns:
- Whether the privileged field is set.
-
getPrivileged
public boolean getPrivileged()
Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. +optional
optional bool privileged = 2;- Specified by:
getPrivilegedin interfaceGenerated.SecurityContextOrBuilder- Returns:
- The privileged.
-
hasSeLinuxOptions
public boolean hasSeLinuxOptions()
The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. 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 windows. +optional
optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3;- Specified by:
hasSeLinuxOptionsin interfaceGenerated.SecurityContextOrBuilder- Returns:
- Whether the seLinuxOptions field is set.
-
getSeLinuxOptions
public Generated.SELinuxOptions getSeLinuxOptions()
The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. 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 windows. +optional
optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3;- Specified by:
getSeLinuxOptionsin interfaceGenerated.SecurityContextOrBuilder- Returns:
- The seLinuxOptions.
-
getSeLinuxOptionsOrBuilder
public Generated.SELinuxOptionsOrBuilder getSeLinuxOptionsOrBuilder()
The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. 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 windows. +optional
optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3;- Specified by:
getSeLinuxOptionsOrBuilderin interfaceGenerated.SecurityContextOrBuilder
-
hasWindowsOptions
public boolean hasWindowsOptions()
The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext 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 = 10;- Specified by:
hasWindowsOptionsin interfaceGenerated.SecurityContextOrBuilder- Returns:
- Whether the windowsOptions field is set.
-
getWindowsOptions
public Generated.WindowsSecurityContextOptions getWindowsOptions()
The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext 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 = 10;- Specified by:
getWindowsOptionsin interfaceGenerated.SecurityContextOrBuilder- Returns:
- The windowsOptions.
-
getWindowsOptionsOrBuilder
public Generated.WindowsSecurityContextOptionsOrBuilder getWindowsOptionsOrBuilder()
The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext 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 = 10;- Specified by:
getWindowsOptionsOrBuilderin interfaceGenerated.SecurityContextOrBuilder
-
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 PodSecurityContext. 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 windows. +optional
optional int64 runAsUser = 4;- Specified by:
hasRunAsUserin interfaceGenerated.SecurityContextOrBuilder- 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 PodSecurityContext. 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 windows. +optional
optional int64 runAsUser = 4;- Specified by:
getRunAsUserin interfaceGenerated.SecurityContextOrBuilder- 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 PodSecurityContext. 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 windows. +optional
optional int64 runAsGroup = 8;- Specified by:
hasRunAsGroupin interfaceGenerated.SecurityContextOrBuilder- 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 PodSecurityContext. 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 windows. +optional
optional int64 runAsGroup = 8;- Specified by:
getRunAsGroupin interfaceGenerated.SecurityContextOrBuilder- 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 PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional
optional bool runAsNonRoot = 5;- Specified by:
hasRunAsNonRootin interfaceGenerated.SecurityContextOrBuilder- 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 PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional
optional bool runAsNonRoot = 5;- Specified by:
getRunAsNonRootin interfaceGenerated.SecurityContextOrBuilder- Returns:
- The runAsNonRoot.
-
hasReadOnlyRootFilesystem
public boolean hasReadOnlyRootFilesystem()
Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. +optional
optional bool readOnlyRootFilesystem = 6;- Specified by:
hasReadOnlyRootFilesystemin interfaceGenerated.SecurityContextOrBuilder- Returns:
- Whether the readOnlyRootFilesystem field is set.
-
getReadOnlyRootFilesystem
public boolean getReadOnlyRootFilesystem()
Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. +optional
optional bool readOnlyRootFilesystem = 6;- Specified by:
getReadOnlyRootFilesystemin interfaceGenerated.SecurityContextOrBuilder- Returns:
- The readOnlyRootFilesystem.
-
hasAllowPrivilegeEscalation
public boolean hasAllowPrivilegeEscalation()
AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. +optional
optional bool allowPrivilegeEscalation = 7;- Specified by:
hasAllowPrivilegeEscalationin interfaceGenerated.SecurityContextOrBuilder- Returns:
- Whether the allowPrivilegeEscalation field is set.
-
getAllowPrivilegeEscalation
public boolean getAllowPrivilegeEscalation()
AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. +optional
optional bool allowPrivilegeEscalation = 7;- Specified by:
getAllowPrivilegeEscalationin interfaceGenerated.SecurityContextOrBuilder- Returns:
- The allowPrivilegeEscalation.
-
hasProcMount
public boolean hasProcMount()
procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. +optional
optional string procMount = 9;- Specified by:
hasProcMountin interfaceGenerated.SecurityContextOrBuilder- Returns:
- Whether the procMount field is set.
-
getProcMount
public String getProcMount()
procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. +optional
optional string procMount = 9;- Specified by:
getProcMountin interfaceGenerated.SecurityContextOrBuilder- Returns:
- The procMount.
-
getProcMountBytes
public com.google.protobuf.ByteString getProcMountBytes()
procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. +optional
optional string procMount = 9;- Specified by:
getProcMountBytesin interfaceGenerated.SecurityContextOrBuilder- Returns:
- The bytes for procMount.
-
hasSeccompProfile
public boolean hasSeccompProfile()
The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11;- Specified by:
hasSeccompProfilein interfaceGenerated.SecurityContextOrBuilder- Returns:
- Whether the seccompProfile field is set.
-
getSeccompProfile
public Generated.SeccompProfile getSeccompProfile()
The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11;- Specified by:
getSeccompProfilein interfaceGenerated.SecurityContextOrBuilder- Returns:
- The seccompProfile.
-
getSeccompProfileOrBuilder
public Generated.SeccompProfileOrBuilder getSeccompProfileOrBuilder()
The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11;- Specified by:
getSeccompProfileOrBuilderin interfaceGenerated.SecurityContextOrBuilder
-
hasAppArmorProfile
public boolean hasAppArmorProfile()
appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.AppArmorProfile appArmorProfile = 12;- Specified by:
hasAppArmorProfilein interfaceGenerated.SecurityContextOrBuilder- Returns:
- Whether the appArmorProfile field is set.
-
getAppArmorProfile
public Generated.AppArmorProfile getAppArmorProfile()
appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.AppArmorProfile appArmorProfile = 12;- Specified by:
getAppArmorProfilein interfaceGenerated.SecurityContextOrBuilder- Returns:
- The appArmorProfile.
-
getAppArmorProfileOrBuilder
public Generated.AppArmorProfileOrBuilder getAppArmorProfileOrBuilder()
appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. +optional
optional .k8s.io.api.core.v1.AppArmorProfile appArmorProfile = 12;- Specified by:
getAppArmorProfileOrBuilderin interfaceGenerated.SecurityContextOrBuilder
-
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.SecurityContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.SecurityContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.SecurityContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.SecurityContext 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.SecurityContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.SecurityContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.SecurityContext parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.SecurityContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.SecurityContext parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.SecurityContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.SecurityContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.SecurityContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.SecurityContext.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.SecurityContext.Builder newBuilder()
-
newBuilder
public static Generated.SecurityContext.Builder newBuilder(Generated.SecurityContext prototype)
-
toBuilder
public Generated.SecurityContext.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.SecurityContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.SecurityContext getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.SecurityContext> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.SecurityContext> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.SecurityContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-