util

package
v3.9.0-alpha.4+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL