Documentation ¶
Index ¶
Constants ¶
View Source
const KotsadmAuthstringSecretKey = "kotsadm-authstring"
View Source
const KotsadmAuthstringSecretName = "kotsadm-authstring"
Variables ¶
This section is empty.
Functions ¶
func GetOrCreateAuthSlug ¶
func GetOrCreateAuthSlug(clientset kubernetes.Interface, namespace string) (string, error)
GetOrCreateAuthSlug will check for an authslug secret in the provided namespace if one exists, it will return the value from that secret if none exists, it will create one and return that value
func SetAuthSlugCache ¶
func SetAuthSlugCache(newval string)
SetAuthSlugCache sets the auth slug to be used instead of querying kubernetes this improves run speed by reducing the number of queries, and also allows testing without a kubernetes cluster available
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.