kubernetes/pkg/api
James Sturtevant e8b369ff3c Windows: Adds RunAsUserName field in WindowsOptions
Adds the field RunAsUserName in the WindowsSecurityContextOptions type,
which is used in PodSecurityContext and SecurityContext.

This field needs to allow for a valid set of usernames allowed for
Windows containers. It must have the format "U

This commit also validates the runAsUserName field, making sure that it valid,
having the format DOMAIN\USER (case insensitive), where DOMAIN\ is optional and
has to be a valid NetBios or DNS domain name.

For more information about the restrictions on the DOMAIN and USER parts, look here: [1] [2]

Adds the WindowsRunAsUserName alpha feature gate. By default, it is disabled.
If the feature gate is not enabled, the WindowsOptions.RunAsUserName field
will be dropped from both the PodSecurityContext and container
SecurityContext.

Co-Authored-By: Claudiu Belu <cbelu@cloudbasesolutions.com>

[1] https://support.microsoft.com/en-us/help/909264/naming-conventions-in-active-directory-for-computers-domains-sites-and
[2] https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.localaccounts/new-localuser?view=powershell-5.1
2019-07-17 15:03:04 +00:00
..
endpoints Merge pull request #72525 from justinsb/owners_should_not_be_executable 2019-02-14 23:55:45 -08:00
legacyscheme Using var() block to define variables 2019-04-20 15:12:48 -04:00
persistentvolume Add a new field for storing volume expansion secrets 2019-05-09 13:53:47 -04:00
persistentvolumeclaim Fix nil pointer 2019-06-14 06:30:18 -06:00
pod Windows: Adds RunAsUserName field in WindowsOptions 2019-07-17 15:03:04 +00:00
podsecuritypolicy update import of generic featuregate code from k8s.io/apiserver/pkg/util/feature -> k8s.io/component-base/featuregate 2019-05-08 10:01:50 -04:00
ref pkg/api: Fix golint errors 2018-09-07 12:31:25 +05:30
resource remove deplicate code for PodRequestsAndLimits 2018-08-18 09:22:28 +08:00
resourcequota update import of generic featuregate code from k8s.io/apiserver/pkg/util/feature -> k8s.io/component-base/featuregate 2019-05-08 10:01:50 -04:00
service Clean up pkg/api. 2019-05-09 15:23:41 +00:00
testapi Migrate RuntimeClass to internal API 2019-03-07 11:07:54 -08:00
testing Install/register v1 admission registration types 2019-07-08 09:49:29 -04:00
v1 Merge pull request #78627 from tedyu/resource-req 2019-07-02 11:11:12 -07:00
OWNERS Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00