Package io.fabric8.kubernetes.api.model
Class WindowsSecurityContextOptions
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.WindowsSecurityContextOptions
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<WindowsSecurityContextOptionsBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class WindowsSecurityContextOptions extends Object implements io.fabric8.kubernetes.api.builder.Editable<WindowsSecurityContextOptionsBuilder>, KubernetesResource
WindowsSecurityContextOptions contain Windows-specific options and credentials.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WindowsSecurityContextOptions()No args constructor for use in serializationWindowsSecurityContextOptions(String gmsaCredentialSpec, String gmsaCredentialSpecName, Boolean hostProcess, String runAsUserName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WindowsSecurityContextOptionsBuilderedit()Map<String,Object>getAdditionalProperties()StringgetGmsaCredentialSpec()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.StringgetGmsaCredentialSpecName()GMSACredentialSpecName is the name of the GMSA credential spec to use.BooleangetHostProcess()HostProcess determines if a container should be run as a 'Host Process' container.StringgetRunAsUserName()The UserName in Windows to run the entrypoint of the container process.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetGmsaCredentialSpec(String gmsaCredentialSpec)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.voidsetGmsaCredentialSpecName(String gmsaCredentialSpecName)GMSACredentialSpecName is the name of the GMSA credential spec to use.voidsetHostProcess(Boolean hostProcess)HostProcess determines if a container should be run as a 'Host Process' container.voidsetRunAsUserName(String runAsUserName)The UserName in Windows to run the entrypoint of the container process.WindowsSecurityContextOptionsBuildertoBuilder()
-
-
-
Method Detail
-
getGmsaCredentialSpec
public 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.
-
setGmsaCredentialSpec
public void setGmsaCredentialSpec(String gmsaCredentialSpec)
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.
-
getGmsaCredentialSpecName
public String getGmsaCredentialSpecName()
GMSACredentialSpecName is the name of the GMSA credential spec to use.
-
setGmsaCredentialSpecName
public void setGmsaCredentialSpecName(String gmsaCredentialSpecName)
GMSACredentialSpecName is the name of the GMSA credential spec to use.
-
getHostProcess
public Boolean getHostProcess()
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.
-
setHostProcess
public void setHostProcess(Boolean hostProcess)
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.
-
getRunAsUserName
public 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.
-
setRunAsUserName
public void setRunAsUserName(String runAsUserName)
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.
-
edit
public WindowsSecurityContextOptionsBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<WindowsSecurityContextOptionsBuilder>
-
toBuilder
public WindowsSecurityContextOptionsBuilder toBuilder()
-
-