Class V1WindowsSecurityContextOptions
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1WindowsSecurityContextOptions
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
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) Set gmsaCredentialSpec in a chainable fashion.gmsaCredentialSpecName
(String gmsaCredentialSpecName) Set gmsaCredentialSpecName in a chainable fashion.int
hashCode()
hostProcess
(Boolean hostProcess) Set hostProcess in a chainable fashion.runAsUserName
(String runAsUserName) Set runAsUserName in a chainable fashion.void
setGmsaCredentialSpec
(String gmsaCredentialSpec) Set the gmsaCredentialSpec property valuevoid
setGmsaCredentialSpecName
(String gmsaCredentialSpecName) Set the gmsaCredentialSpecName property valuevoid
setHostProcess
(Boolean hostProcess) Set the hostProcess property valuevoid
setRunAsUserName
(String runAsUserName) Set the runAsUserName property valuetoString()
-
Field Details
-
JSON_PROPERTY_GMSA_CREDENTIAL_SPEC
- See Also:
-
JSON_PROPERTY_GMSA_CREDENTIAL_SPEC_NAME
- See Also:
-
JSON_PROPERTY_HOST_PROCESS
- See Also:
-
JSON_PROPERTY_RUN_AS_USER_NAME
- See Also:
-
-
Constructor Details
-
V1WindowsSecurityContextOptions
public V1WindowsSecurityContextOptions()
-
-
Method Details
-
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:
- the gmsaCredentialSpec property value
-
setGmsaCredentialSpec
Set the gmsaCredentialSpec property value- Parameters:
gmsaCredentialSpec
- property value to set
-
gmsaCredentialSpec
Set gmsaCredentialSpec in a chainable fashion.- Returns:
- The same instance of V1WindowsSecurityContextOptions for chaining.
-
getGmsaCredentialSpecName
GMSACredentialSpecName is the name of the GMSA credential spec to use.- Returns:
- the gmsaCredentialSpecName property value
-
setGmsaCredentialSpecName
Set the gmsaCredentialSpecName property value- Parameters:
gmsaCredentialSpecName
- property value to set
-
gmsaCredentialSpecName
Set gmsaCredentialSpecName in a chainable fashion.- Returns:
- The same instance of V1WindowsSecurityContextOptions for chaining.
-
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:
- the hostProcess property value
-
setHostProcess
Set the hostProcess property value- Parameters:
hostProcess
- property value to set
-
hostProcess
Set hostProcess in a chainable fashion.- Returns:
- The same instance of V1WindowsSecurityContextOptions for chaining.
-
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:
- the runAsUserName property value
-
setRunAsUserName
Set the runAsUserName property value- Parameters:
runAsUserName
- property value to set
-
runAsUserName
Set runAsUserName in a chainable fashion.- Returns:
- The same instance of V1WindowsSecurityContextOptions for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-