Documentation ¶
Index ¶
- func GetDockercfgSecretNamePrefix(serviceAccount *kapi.ServiceAccount) string
- func GetDockercfgSecretNamePrefixV1(serviceAccount *v1.ServiceAccount) string
- func GetTokenSecretNamePrefix(serviceAccount *kapi.ServiceAccount) string
- func GetTokenSecretNamePrefixV1(serviceAccount *v1.ServiceAccount) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDockercfgSecretNamePrefix ¶
func GetDockercfgSecretNamePrefix(serviceAccount *kapi.ServiceAccount) string
func GetDockercfgSecretNamePrefixV1 ¶
func GetDockercfgSecretNamePrefixV1(serviceAccount *v1.ServiceAccount) string
func GetTokenSecretNamePrefix ¶
func GetTokenSecretNamePrefix(serviceAccount *kapi.ServiceAccount) string
GetTokenSecretNamePrefix creates the prefix used for the generated SA token secret. This is compatible with kube up until long names, at which point we hash the SA name and leave the "token-" intact. Upstream clips the value and generates a random string. TODO fix the upstream implementation to be more like this.
func GetTokenSecretNamePrefixV1 ¶
func GetTokenSecretNamePrefixV1(serviceAccount *v1.ServiceAccount) string
GetTokenSecretNamePrefix creates the prefix used for the generated SA token secret. This is compatible with kube up until long names, at which point we hash the SA name and leave the "token-" intact. Upstream clips the value and generates a random string. TODO fix the upstream implementation to be more like this.
Types ¶
This section is empty.