Class WindowsSecurityContextOptions

    • Constructor Detail

      • WindowsSecurityContextOptions

        public WindowsSecurityContextOptions()
        No args constructor for use in serialization
      • WindowsSecurityContextOptions

        public WindowsSecurityContextOptions​(String gmsaCredentialSpec,
                                             String gmsaCredentialSpecName,
                                             Boolean hostProcess,
                                             String runAsUserName)
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)