WindowsSecurityContextOptionsPatch

data class WindowsSecurityContextOptionsPatch(val gmsaCredentialSpec: String? = null, val gmsaCredentialSpecName: String? = null, val hostProcess: Boolean? = null, val runAsUserName: String? = null)

WindowsSecurityContextOptions contain Windows-specific options and credentials.

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

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

Link copied to clipboard
val hostProcess: Boolean? = null

HostProcess determines if a container should be run as a 'Host Process' container. 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: 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.