WindowsSecurityContextOptionsPatchArgs

data class WindowsSecurityContextOptionsPatchArgs(val gmsaCredentialSpec: Output<String>? = null, val gmsaCredentialSpecName: Output<String>? = null, val hostProcess: Output<Boolean>? = null, val runAsUserName: Output<String>? = null) : ConvertibleToJava<WindowsSecurityContextOptionsPatchArgs>

WindowsSecurityContextOptions contain Windows-specific options and credentials.

Constructors

Link copied to clipboard
constructor(gmsaCredentialSpec: Output<String>? = null, gmsaCredentialSpecName: Output<String>? = null, hostProcess: Output<Boolean>? = null, runAsUserName: Output<String>? = null)

Properties

Link copied to clipboard
val gmsaCredentialSpec: Output<String>? = null

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.

Link copied to clipboard
val gmsaCredentialSpecName: Output<String>? = null

GMSACredentialSpecName is the name of the GMSA credential spec to use.

Link copied to clipboard
val hostProcess: Output<Boolean>? = null

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.

Link copied to clipboard
val runAsUserName: Output<String>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): WindowsSecurityContextOptionsPatchArgs