Package k8s.io.api.core.v1
Class Generated.SecurityContext.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.SecurityContext.Builder>
-
- k8s.io.api.core.v1.Generated.SecurityContext.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.SecurityContextOrBuilder
- Enclosing class:
- Generated.SecurityContext
public static final class Generated.SecurityContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.SecurityContext.Builder> 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.SecurityContext.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.SecurityContextbuild()Generated.SecurityContextbuildPartial()Generated.SecurityContext.Builderclear()Generated.SecurityContext.BuilderclearAllowPrivilegeEscalation()AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process.Generated.SecurityContext.BuilderclearAppArmorProfile()appArmorProfile is the AppArmor options to use by this container.Generated.SecurityContext.BuilderclearCapabilities()The capabilities to add/drop when running containers.Generated.SecurityContext.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.SecurityContext.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.SecurityContext.BuilderclearPrivileged()Run container in privileged mode.Generated.SecurityContext.BuilderclearProcMount()procMount denotes the type of proc mount to use for the containers.Generated.SecurityContext.BuilderclearReadOnlyRootFilesystem()Whether this container has a read-only root filesystem.Generated.SecurityContext.BuilderclearRunAsGroup()The GID to run the entrypoint of the container process.Generated.SecurityContext.BuilderclearRunAsNonRoot()Indicates that the container must run as a non-root user.Generated.SecurityContext.BuilderclearRunAsUser()The UID to run the entrypoint of the container process.Generated.SecurityContext.BuilderclearSeccompProfile()The seccomp options to use by this container.Generated.SecurityContext.BuilderclearSeLinuxOptions()The SELinux context to be applied to the container.Generated.SecurityContext.BuilderclearWindowsOptions()The Windows specific settings applied to all containers.Generated.SecurityContext.Builderclone()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.AppArmorProfile.BuildergetAppArmorProfileBuilder()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.Capabilities.BuildergetCapabilitiesBuilder()The capabilities to add/drop when running containers.Generated.CapabilitiesOrBuildergetCapabilitiesOrBuilder()The capabilities to add/drop when running containers.Generated.SecurityContextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.SeccompProfile.BuildergetSeccompProfileBuilder()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.SELinuxOptions.BuildergetSeLinuxOptionsBuilder()The SELinux context to be applied to the container.Generated.SELinuxOptionsOrBuildergetSeLinuxOptionsOrBuilder()The SELinux context to be applied to the container.Generated.WindowsSecurityContextOptionsgetWindowsOptions()The Windows specific settings applied to all containers.Generated.WindowsSecurityContextOptions.BuildergetWindowsOptionsBuilder()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.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()Generated.SecurityContext.BuildermergeAppArmorProfile(Generated.AppArmorProfile value)appArmorProfile is the AppArmor options to use by this container.Generated.SecurityContext.BuildermergeCapabilities(Generated.Capabilities value)The capabilities to add/drop when running containers.Generated.SecurityContext.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.SecurityContext.BuildermergeFrom(com.google.protobuf.Message other)Generated.SecurityContext.BuildermergeFrom(Generated.SecurityContext other)Generated.SecurityContext.BuildermergeSeccompProfile(Generated.SeccompProfile value)The seccomp options to use by this container.Generated.SecurityContext.BuildermergeSeLinuxOptions(Generated.SELinuxOptions value)The SELinux context to be applied to the container.Generated.SecurityContext.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.SecurityContext.BuildermergeWindowsOptions(Generated.WindowsSecurityContextOptions value)The Windows specific settings applied to all containers.Generated.SecurityContext.BuildersetAllowPrivilegeEscalation(boolean value)AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process.Generated.SecurityContext.BuildersetAppArmorProfile(Generated.AppArmorProfile value)appArmorProfile is the AppArmor options to use by this container.Generated.SecurityContext.BuildersetAppArmorProfile(Generated.AppArmorProfile.Builder builderForValue)appArmorProfile is the AppArmor options to use by this container.Generated.SecurityContext.BuildersetCapabilities(Generated.Capabilities value)The capabilities to add/drop when running containers.Generated.SecurityContext.BuildersetCapabilities(Generated.Capabilities.Builder builderForValue)The capabilities to add/drop when running containers.Generated.SecurityContext.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.SecurityContext.BuildersetPrivileged(boolean value)Run container in privileged mode.Generated.SecurityContext.BuildersetProcMount(String value)procMount denotes the type of proc mount to use for the containers.Generated.SecurityContext.BuildersetProcMountBytes(com.google.protobuf.ByteString value)procMount denotes the type of proc mount to use for the containers.Generated.SecurityContext.BuildersetReadOnlyRootFilesystem(boolean value)Whether this container has a read-only root filesystem.Generated.SecurityContext.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.SecurityContext.BuildersetRunAsGroup(long value)The GID to run the entrypoint of the container process.Generated.SecurityContext.BuildersetRunAsNonRoot(boolean value)Indicates that the container must run as a non-root user.Generated.SecurityContext.BuildersetRunAsUser(long value)The UID to run the entrypoint of the container process.Generated.SecurityContext.BuildersetSeccompProfile(Generated.SeccompProfile value)The seccomp options to use by this container.Generated.SecurityContext.BuildersetSeccompProfile(Generated.SeccompProfile.Builder builderForValue)The seccomp options to use by this container.Generated.SecurityContext.BuildersetSeLinuxOptions(Generated.SELinuxOptions value)The SELinux context to be applied to the container.Generated.SecurityContext.BuildersetSeLinuxOptions(Generated.SELinuxOptions.Builder builderForValue)The SELinux context to be applied to the container.Generated.SecurityContext.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.SecurityContext.BuildersetWindowsOptions(Generated.WindowsSecurityContextOptions value)The Windows specific settings applied to all containers.Generated.SecurityContext.BuildersetWindowsOptions(Generated.WindowsSecurityContextOptions.Builder builderForValue)The Windows specific settings applied to all containers.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Generated.SecurityContext.Builder>
-
clear
public Generated.SecurityContext.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecurityContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecurityContext.Builder>
-
getDefaultInstanceForType
public Generated.SecurityContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.SecurityContext build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.SecurityContext buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.SecurityContext.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecurityContext.Builder>
-
setField
public Generated.SecurityContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecurityContext.Builder>
-
clearField
public Generated.SecurityContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecurityContext.Builder>
-
clearOneof
public Generated.SecurityContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecurityContext.Builder>
-
setRepeatedField
public Generated.SecurityContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecurityContext.Builder>
-
addRepeatedField
public Generated.SecurityContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecurityContext.Builder>
-
mergeFrom
public Generated.SecurityContext.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.SecurityContext.Builder>
-
mergeFrom
public Generated.SecurityContext.Builder mergeFrom(Generated.SecurityContext other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecurityContext.Builder>
-
mergeFrom
public Generated.SecurityContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.SecurityContext.Builder>- Throws:
IOException
-
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.
-
setCapabilities
public Generated.SecurityContext.Builder setCapabilities(Generated.Capabilities value)
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;
-
setCapabilities
public Generated.SecurityContext.Builder setCapabilities(Generated.Capabilities.Builder builderForValue)
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;
-
mergeCapabilities
public Generated.SecurityContext.Builder mergeCapabilities(Generated.Capabilities value)
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;
-
clearCapabilities
public Generated.SecurityContext.Builder clearCapabilities()
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;
-
getCapabilitiesBuilder
public Generated.Capabilities.Builder getCapabilitiesBuilder()
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;
-
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.
-
setPrivileged
public Generated.SecurityContext.Builder setPrivileged(boolean value)
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;- Parameters:
value- The privileged to set.- Returns:
- This builder for chaining.
-
clearPrivileged
public Generated.SecurityContext.Builder clearPrivileged()
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;- Returns:
- This builder for chaining.
-
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.
-
setSeLinuxOptions
public Generated.SecurityContext.Builder setSeLinuxOptions(Generated.SELinuxOptions value)
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;
-
setSeLinuxOptions
public Generated.SecurityContext.Builder setSeLinuxOptions(Generated.SELinuxOptions.Builder builderForValue)
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;
-
mergeSeLinuxOptions
public Generated.SecurityContext.Builder mergeSeLinuxOptions(Generated.SELinuxOptions value)
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;
-
clearSeLinuxOptions
public Generated.SecurityContext.Builder clearSeLinuxOptions()
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;
-
getSeLinuxOptionsBuilder
public Generated.SELinuxOptions.Builder getSeLinuxOptionsBuilder()
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;
-
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.
-
setWindowsOptions
public Generated.SecurityContext.Builder setWindowsOptions(Generated.WindowsSecurityContextOptions value)
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;
-
setWindowsOptions
public Generated.SecurityContext.Builder setWindowsOptions(Generated.WindowsSecurityContextOptions.Builder builderForValue)
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;
-
mergeWindowsOptions
public Generated.SecurityContext.Builder mergeWindowsOptions(Generated.WindowsSecurityContextOptions value)
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;
-
clearWindowsOptions
public Generated.SecurityContext.Builder clearWindowsOptions()
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;
-
getWindowsOptionsBuilder
public Generated.WindowsSecurityContextOptions.Builder getWindowsOptionsBuilder()
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;
-
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.
-
setRunAsUser
public Generated.SecurityContext.Builder setRunAsUser(long value)
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;- Parameters:
value- The runAsUser to set.- Returns:
- This builder for chaining.
-
clearRunAsUser
public Generated.SecurityContext.Builder clearRunAsUser()
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;- Returns:
- This builder for chaining.
-
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.
-
setRunAsGroup
public Generated.SecurityContext.Builder setRunAsGroup(long value)
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;- Parameters:
value- The runAsGroup to set.- Returns:
- This builder for chaining.
-
clearRunAsGroup
public Generated.SecurityContext.Builder clearRunAsGroup()
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;- Returns:
- This builder for chaining.
-
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.
-
setRunAsNonRoot
public Generated.SecurityContext.Builder setRunAsNonRoot(boolean value)
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;- Parameters:
value- The runAsNonRoot to set.- Returns:
- This builder for chaining.
-
clearRunAsNonRoot
public Generated.SecurityContext.Builder clearRunAsNonRoot()
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;- Returns:
- This builder for chaining.
-
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.
-
setReadOnlyRootFilesystem
public Generated.SecurityContext.Builder setReadOnlyRootFilesystem(boolean value)
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;- Parameters:
value- The readOnlyRootFilesystem to set.- Returns:
- This builder for chaining.
-
clearReadOnlyRootFilesystem
public Generated.SecurityContext.Builder clearReadOnlyRootFilesystem()
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;- Returns:
- This builder for chaining.
-
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.
-
setAllowPrivilegeEscalation
public Generated.SecurityContext.Builder setAllowPrivilegeEscalation(boolean value)
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;- Parameters:
value- The allowPrivilegeEscalation to set.- Returns:
- This builder for chaining.
-
clearAllowPrivilegeEscalation
public Generated.SecurityContext.Builder clearAllowPrivilegeEscalation()
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;- Returns:
- This builder for chaining.
-
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.
-
setProcMount
public Generated.SecurityContext.Builder setProcMount(String value)
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;- Parameters:
value- The procMount to set.- Returns:
- This builder for chaining.
-
clearProcMount
public Generated.SecurityContext.Builder clearProcMount()
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;- Returns:
- This builder for chaining.
-
setProcMountBytes
public Generated.SecurityContext.Builder setProcMountBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for procMount to set.- Returns:
- This builder for chaining.
-
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.
-
setSeccompProfile
public Generated.SecurityContext.Builder setSeccompProfile(Generated.SeccompProfile value)
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;
-
setSeccompProfile
public Generated.SecurityContext.Builder setSeccompProfile(Generated.SeccompProfile.Builder builderForValue)
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;
-
mergeSeccompProfile
public Generated.SecurityContext.Builder mergeSeccompProfile(Generated.SeccompProfile value)
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;
-
clearSeccompProfile
public Generated.SecurityContext.Builder clearSeccompProfile()
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;
-
getSeccompProfileBuilder
public Generated.SeccompProfile.Builder getSeccompProfileBuilder()
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;
-
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.
-
setAppArmorProfile
public Generated.SecurityContext.Builder setAppArmorProfile(Generated.AppArmorProfile value)
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;
-
setAppArmorProfile
public Generated.SecurityContext.Builder setAppArmorProfile(Generated.AppArmorProfile.Builder builderForValue)
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;
-
mergeAppArmorProfile
public Generated.SecurityContext.Builder mergeAppArmorProfile(Generated.AppArmorProfile value)
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;
-
clearAppArmorProfile
public Generated.SecurityContext.Builder clearAppArmorProfile()
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;
-
getAppArmorProfileBuilder
public Generated.AppArmorProfile.Builder getAppArmorProfileBuilder()
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;
-
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
-
setUnknownFields
public final Generated.SecurityContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecurityContext.Builder>
-
mergeUnknownFields
public final Generated.SecurityContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.SecurityContext.Builder>
-
-