public static final class V1.WindowsSecurityContextOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder> implements V1.WindowsSecurityContextOptionsOrBuilder
WindowsSecurityContextOptions contain Windows-specific options and credentials.Protobuf type
k8s.io.api.core.v1.WindowsSecurityContextOptions| Modifier and Type | Method and Description |
|---|---|
V1.WindowsSecurityContextOptions.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.WindowsSecurityContextOptions |
build() |
V1.WindowsSecurityContextOptions |
buildPartial() |
V1.WindowsSecurityContextOptions.Builder |
clear() |
V1.WindowsSecurityContextOptions.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.WindowsSecurityContextOptions.Builder |
clearGmsaCredentialSpec()
GMSACredentialSpec is where the GMSA admission webhook
(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
GMSA credential spec named by the GMSACredentialSpecName field.
|
V1.WindowsSecurityContextOptions.Builder |
clearGmsaCredentialSpecName()
GMSACredentialSpecName is the name of the GMSA credential spec to use.
|
V1.WindowsSecurityContextOptions.Builder |
clearHostProcess()
HostProcess determines if a container should be run as a 'Host Process' container.
|
V1.WindowsSecurityContextOptions.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.WindowsSecurityContextOptions.Builder |
clearRunAsUserName()
The UserName in Windows to run the entrypoint of the container process.
|
V1.WindowsSecurityContextOptions.Builder |
clone() |
V1.WindowsSecurityContextOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getGmsaCredentialSpec()
GMSACredentialSpec is where the GMSA admission webhook
(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
GMSA credential spec named by the GMSACredentialSpecName field.
|
com.google.protobuf.ByteString |
getGmsaCredentialSpecBytes()
GMSACredentialSpec is where the GMSA admission webhook
(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
GMSA credential spec named by the GMSACredentialSpecName field.
|
String |
getGmsaCredentialSpecName()
GMSACredentialSpecName is the name of the GMSA credential spec to use.
|
com.google.protobuf.ByteString |
getGmsaCredentialSpecNameBytes()
GMSACredentialSpecName is the name of the GMSA credential spec to use.
|
boolean |
getHostProcess()
HostProcess determines if a container should be run as a 'Host Process' container.
|
String |
getRunAsUserName()
The UserName in Windows to run the entrypoint of the container process.
|
com.google.protobuf.ByteString |
getRunAsUserNameBytes()
The UserName in Windows to run the entrypoint of the container process.
|
boolean |
hasGmsaCredentialSpec()
GMSACredentialSpec is where the GMSA admission webhook
(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
GMSA credential spec named by the GMSACredentialSpecName field.
|
boolean |
hasGmsaCredentialSpecName()
GMSACredentialSpecName is the name of the GMSA credential spec to use.
|
boolean |
hasHostProcess()
HostProcess determines if a container should be run as a 'Host Process' container.
|
boolean |
hasRunAsUserName()
The UserName in Windows to run the entrypoint of the container process.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1.WindowsSecurityContextOptions.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.WindowsSecurityContextOptions.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.WindowsSecurityContextOptions.Builder |
mergeFrom(V1.WindowsSecurityContextOptions other) |
V1.WindowsSecurityContextOptions.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.WindowsSecurityContextOptions.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.WindowsSecurityContextOptions.Builder |
setGmsaCredentialSpec(String value)
GMSACredentialSpec is where the GMSA admission webhook
(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
GMSA credential spec named by the GMSACredentialSpecName field.
|
V1.WindowsSecurityContextOptions.Builder |
setGmsaCredentialSpecBytes(com.google.protobuf.ByteString value)
GMSACredentialSpec is where the GMSA admission webhook
(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
GMSA credential spec named by the GMSACredentialSpecName field.
|
V1.WindowsSecurityContextOptions.Builder |
setGmsaCredentialSpecName(String value)
GMSACredentialSpecName is the name of the GMSA credential spec to use.
|
V1.WindowsSecurityContextOptions.Builder |
setGmsaCredentialSpecNameBytes(com.google.protobuf.ByteString value)
GMSACredentialSpecName is the name of the GMSA credential spec to use.
|
V1.WindowsSecurityContextOptions.Builder |
setHostProcess(boolean value)
HostProcess determines if a container should be run as a 'Host Process' container.
|
V1.WindowsSecurityContextOptions.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.WindowsSecurityContextOptions.Builder |
setRunAsUserName(String value)
The UserName in Windows to run the entrypoint of the container process.
|
V1.WindowsSecurityContextOptions.Builder |
setRunAsUserNameBytes(com.google.protobuf.ByteString value)
The UserName in Windows to run the entrypoint of the container process.
|
V1.WindowsSecurityContextOptions.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>public V1.WindowsSecurityContextOptions.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>public V1.WindowsSecurityContextOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.WindowsSecurityContextOptions build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.WindowsSecurityContextOptions buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.WindowsSecurityContextOptions.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>public V1.WindowsSecurityContextOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>public V1.WindowsSecurityContextOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>public V1.WindowsSecurityContextOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>public V1.WindowsSecurityContextOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>public V1.WindowsSecurityContextOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>public V1.WindowsSecurityContextOptions.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.WindowsSecurityContextOptions.Builder>public V1.WindowsSecurityContextOptions.Builder mergeFrom(V1.WindowsSecurityContextOptions other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>public V1.WindowsSecurityContextOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.WindowsSecurityContextOptions.Builder>IOExceptionpublic boolean hasGmsaCredentialSpecName()
GMSACredentialSpecName is the name of the GMSA credential spec to use. +optional
optional string gmsaCredentialSpecName = 1;hasGmsaCredentialSpecName in interface V1.WindowsSecurityContextOptionsOrBuilderpublic String getGmsaCredentialSpecName()
GMSACredentialSpecName is the name of the GMSA credential spec to use. +optional
optional string gmsaCredentialSpecName = 1;getGmsaCredentialSpecName in interface V1.WindowsSecurityContextOptionsOrBuilderpublic com.google.protobuf.ByteString getGmsaCredentialSpecNameBytes()
GMSACredentialSpecName is the name of the GMSA credential spec to use. +optional
optional string gmsaCredentialSpecName = 1;getGmsaCredentialSpecNameBytes in interface V1.WindowsSecurityContextOptionsOrBuilderpublic V1.WindowsSecurityContextOptions.Builder setGmsaCredentialSpecName(String value)
GMSACredentialSpecName is the name of the GMSA credential spec to use. +optional
optional string gmsaCredentialSpecName = 1;public V1.WindowsSecurityContextOptions.Builder clearGmsaCredentialSpecName()
GMSACredentialSpecName is the name of the GMSA credential spec to use. +optional
optional string gmsaCredentialSpecName = 1;public V1.WindowsSecurityContextOptions.Builder setGmsaCredentialSpecNameBytes(com.google.protobuf.ByteString value)
GMSACredentialSpecName is the name of the GMSA credential spec to use. +optional
optional string gmsaCredentialSpecName = 1;public boolean hasGmsaCredentialSpec()
GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. +optional
optional string gmsaCredentialSpec = 2;hasGmsaCredentialSpec in interface V1.WindowsSecurityContextOptionsOrBuilderpublic String getGmsaCredentialSpec()
GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. +optional
optional string gmsaCredentialSpec = 2;getGmsaCredentialSpec in interface V1.WindowsSecurityContextOptionsOrBuilderpublic com.google.protobuf.ByteString getGmsaCredentialSpecBytes()
GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. +optional
optional string gmsaCredentialSpec = 2;getGmsaCredentialSpecBytes in interface V1.WindowsSecurityContextOptionsOrBuilderpublic V1.WindowsSecurityContextOptions.Builder setGmsaCredentialSpec(String value)
GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. +optional
optional string gmsaCredentialSpec = 2;public V1.WindowsSecurityContextOptions.Builder clearGmsaCredentialSpec()
GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. +optional
optional string gmsaCredentialSpec = 2;public V1.WindowsSecurityContextOptions.Builder setGmsaCredentialSpecBytes(com.google.protobuf.ByteString value)
GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. +optional
optional string gmsaCredentialSpec = 2;public boolean hasRunAsUserName()
The UserName in Windows to run the entrypoint of the container process. Defaults to the 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. +optional
optional string runAsUserName = 3;hasRunAsUserName in interface V1.WindowsSecurityContextOptionsOrBuilderpublic String getRunAsUserName()
The UserName in Windows to run the entrypoint of the container process. Defaults to the 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. +optional
optional string runAsUserName = 3;getRunAsUserName in interface V1.WindowsSecurityContextOptionsOrBuilderpublic com.google.protobuf.ByteString getRunAsUserNameBytes()
The UserName in Windows to run the entrypoint of the container process. Defaults to the 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. +optional
optional string runAsUserName = 3;getRunAsUserNameBytes in interface V1.WindowsSecurityContextOptionsOrBuilderpublic V1.WindowsSecurityContextOptions.Builder setRunAsUserName(String value)
The UserName in Windows to run the entrypoint of the container process. Defaults to the 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. +optional
optional string runAsUserName = 3;public V1.WindowsSecurityContextOptions.Builder clearRunAsUserName()
The UserName in Windows to run the entrypoint of the container process. Defaults to the 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. +optional
optional string runAsUserName = 3;public V1.WindowsSecurityContextOptions.Builder setRunAsUserNameBytes(com.google.protobuf.ByteString value)
The UserName in Windows to run the entrypoint of the container process. Defaults to the 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. +optional
optional string runAsUserName = 3;public boolean hasHostProcess()
HostProcess determines if a container should be run as a 'Host Process' container. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. +optional
optional bool hostProcess = 4;hasHostProcess in interface V1.WindowsSecurityContextOptionsOrBuilderpublic boolean getHostProcess()
HostProcess determines if a container should be run as a 'Host Process' container. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. +optional
optional bool hostProcess = 4;getHostProcess in interface V1.WindowsSecurityContextOptionsOrBuilderpublic V1.WindowsSecurityContextOptions.Builder setHostProcess(boolean value)
HostProcess determines if a container should be run as a 'Host Process' container. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. +optional
optional bool hostProcess = 4;public V1.WindowsSecurityContextOptions.Builder clearHostProcess()
HostProcess determines if a container should be run as a 'Host Process' container. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. +optional
optional bool hostProcess = 4;public final V1.WindowsSecurityContextOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>public final V1.WindowsSecurityContextOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.WindowsSecurityContextOptions.Builder>Copyright © 2023. All rights reserved.