Class V1WindowsSecurityContextOptions

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1WindowsSecurityContextOptions

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1WindowsSecurityContextOptions extends Object
WindowsSecurityContextOptions contain Windows-specific options and credentials.
  • Field Details

  • Constructor Details

    • V1WindowsSecurityContextOptions

      public V1WindowsSecurityContextOptions()
  • Method Details

    • 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.
      Returns:
      the gmsaCredentialSpec property value
    • setGmsaCredentialSpec

      public void setGmsaCredentialSpec(String gmsaCredentialSpec)
      Set the gmsaCredentialSpec property value
      Parameters:
      gmsaCredentialSpec - property value to set
    • gmsaCredentialSpec

      public V1WindowsSecurityContextOptions gmsaCredentialSpec(String gmsaCredentialSpec)
      Set gmsaCredentialSpec in a chainable fashion.
      Returns:
      The same instance of V1WindowsSecurityContextOptions for chaining.
    • getGmsaCredentialSpecName

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

      public void setGmsaCredentialSpecName(String gmsaCredentialSpecName)
      Set the gmsaCredentialSpecName property value
      Parameters:
      gmsaCredentialSpecName - property value to set
    • gmsaCredentialSpecName

      public V1WindowsSecurityContextOptions gmsaCredentialSpecName(String gmsaCredentialSpecName)
      Set gmsaCredentialSpecName in a chainable fashion.
      Returns:
      The same instance of V1WindowsSecurityContextOptions for chaining.
    • getHostProcess

      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:
      the hostProcess property value
    • setHostProcess

      public void setHostProcess(Boolean hostProcess)
      Set the hostProcess property value
      Parameters:
      hostProcess - property value to set
    • hostProcess

      public V1WindowsSecurityContextOptions hostProcess(Boolean hostProcess)
      Set hostProcess in a chainable fashion.
      Returns:
      The same instance of V1WindowsSecurityContextOptions for chaining.
    • 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.
      Returns:
      the runAsUserName property value
    • setRunAsUserName

      public void setRunAsUserName(String runAsUserName)
      Set the runAsUserName property value
      Parameters:
      runAsUserName - property value to set
    • runAsUserName

      public V1WindowsSecurityContextOptions runAsUserName(String runAsUserName)
      Set runAsUserName in a chainable fashion.
      Returns:
      The same instance of V1WindowsSecurityContextOptions for chaining.
    • 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