Class V1WindowsSecurityContextOptions
java.lang.Object
io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-18T15:05:57.863601Z[Etc/UTC]")
public class V1WindowsSecurityContextOptions
extends Object
WindowsSecurityContextOptions contain Windows-specific options and credentials.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.GMSACredentialSpecName is the name of the GMSA credential spec to use.HostProcess determines if a container should be run as a 'Host Process' container.The UserName in Windows to run the entrypoint of the container process.gmsaCredentialSpec
(String gmsaCredentialSpec) gmsaCredentialSpecName
(String gmsaCredentialSpecName) int
hashCode()
hostProcess
(Boolean hostProcess) runAsUserName
(String runAsUserName) void
setGmsaCredentialSpec
(String gmsaCredentialSpec) void
setGmsaCredentialSpecName
(String gmsaCredentialSpecName) void
setHostProcess
(Boolean hostProcess) void
setRunAsUserName
(String runAsUserName) toString()
-
Field Details
-
SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC
- See Also:
-
SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC_NAME
- See Also:
-
SERIALIZED_NAME_HOST_PROCESS
- See Also:
-
SERIALIZED_NAME_RUN_AS_USER_NAME
- See Also:
-
-
Constructor Details
-
V1WindowsSecurityContextOptions
public V1WindowsSecurityContextOptions()
-
-
Method Details
-
gmsaCredentialSpec
-
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.- Returns:
- gmsaCredentialSpec
-
setGmsaCredentialSpec
-
gmsaCredentialSpecName
-
getGmsaCredentialSpecName
GMSACredentialSpecName is the name of the GMSA credential spec to use.- Returns:
- gmsaCredentialSpecName
-
setGmsaCredentialSpecName
-
hostProcess
-
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.- Returns:
- hostProcess
-
setHostProcess
-
runAsUserName
-
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.- Returns:
- runAsUserName
-
setRunAsUserName
-
equals
-
hashCode
public int hashCode() -
toString
-