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 WindowsSecurityContextOptionsBuilder
edit()
Map<String,Object>
getAdditionalProperties()
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.String
getGmsaCredentialSpecName()
GMSACredentialSpecName is the name of the GMSA credential spec to use.Boolean
getHostProcess()
HostProcess determines if a container should be run as a 'Host Process' container.String
getRunAsUserName()
The UserName in Windows to run the entrypoint of the container process.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
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.void
setGmsaCredentialSpecName(String gmsaCredentialSpecName)
GMSACredentialSpecName is the name of the GMSA credential spec to use.void
setHostProcess(Boolean hostProcess)
HostProcess determines if a container should be run as a 'Host Process' container.void
setRunAsUserName(String runAsUserName)
The UserName in Windows to run the entrypoint of the container process.WindowsSecurityContextOptionsBuilder
toBuilder()
-
-
-
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:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<WindowsSecurityContextOptionsBuilder>
-
toBuilder
public WindowsSecurityContextOptionsBuilder toBuilder()
-
-