Documentation ¶
Overview ¶
serviceaccount is copied from k8s.io/kubernetes/pkg/serviceaccount to avoid an API dependency on k8s.io/kubernetes outside of the api types we rely upon. The contents of the package can't change without breaking lots of authentication and authorization. Using an internal package prevents leaks. Do not add more things here or modify values.
Index ¶
Constants ¶
const ( ServiceAccountUsernamePrefix = "system:serviceaccount:" ServiceAccountUsernameSeparator = ":" ServiceAccountGroupPrefix = "system:serviceaccounts:" AllServiceAccountsGroup = "system:serviceaccounts" )
Variables ¶
This section is empty.
Functions ¶
func MakeGroupNames ¶
MakeGroupNames generates service account group names for the given namespace and ServiceAccount name
func MakeNamespaceGroupName ¶
MakeNamespaceGroupName returns the name of the group all service accounts in the namespace are included in
func MakeUsername ¶
MakeUsername generates a username from the given namespace and ServiceAccount name. The resulting username can be passed to SplitUsername to extract the original namespace and ServiceAccount name.
Types ¶
This section is empty.