auth

package
v1.109.9 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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