Class V1WindowsSecurityContextOptions

java.lang.Object
io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1WindowsSecurityContextOptions extends Object
WindowsSecurityContextOptions contain Windows-specific options and credentials.
  • Field Details

  • Constructor Details

    • V1WindowsSecurityContextOptions

      public V1WindowsSecurityContextOptions()
  • Method Details

    • gmsaCredentialSpec

      public V1WindowsSecurityContextOptions gmsaCredentialSpec(String gmsaCredentialSpec)
    • getGmsaCredentialSpec

      @Nullable 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.
      Returns:
      gmsaCredentialSpec
    • setGmsaCredentialSpec

      public void setGmsaCredentialSpec(String gmsaCredentialSpec)
    • gmsaCredentialSpecName

      public V1WindowsSecurityContextOptions gmsaCredentialSpecName(String gmsaCredentialSpecName)
    • getGmsaCredentialSpecName

      @Nullable public String getGmsaCredentialSpecName()
      GMSACredentialSpecName is the name of the GMSA credential spec to use.
      Returns:
      gmsaCredentialSpecName
    • setGmsaCredentialSpecName

      public void setGmsaCredentialSpecName(String gmsaCredentialSpecName)
    • hostProcess

      public V1WindowsSecurityContextOptions hostProcess(Boolean hostProcess)
    • getHostProcess

      @Nullable public Boolean 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:
      hostProcess
    • setHostProcess

      public void setHostProcess(Boolean hostProcess)
    • runAsUserName

      public V1WindowsSecurityContextOptions runAsUserName(String runAsUserName)
    • getRunAsUserName

      @Nullable 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.
      Returns:
      runAsUserName
    • setRunAsUserName

      public void setRunAsUserName(String runAsUserName)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object