deploy

package
v1.108.10 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 33 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KotsIdentityLabelKey = "kots.io/identity"
)

Functions

func AdditionalLabels

func AdditionalLabels(namePrefix string, additionalLabels map[string]string) map[string]string

func ClientSecretResource

func ClientSecretResource(namespace string, namePrefix string, existingClientSecret string, additionalLabels map[string]string) *corev1.Secret

func Configure

func Configure(ctx context.Context, clientset kubernetes.Interface, options Options) error

func Deploy

func Deploy(ctx context.Context, clientset kubernetes.Interface, options Options) error

func DexConnectorsToDexTypeConnectors

func DexConnectorsToDexTypeConnectors(conns []kotsv1beta1.DexConnector) ([]dextypes.Connector, error)

func GetClientSecret

func GetClientSecret(ctx context.Context, clientset kubernetes.Interface, namespace, namePrefix string) (string, error)

func IsEnabled

func IsEnabled(identitySpec *kotsv1beta1.Identity, identityConfig *kotsv1beta1.IdentityConfig) bool

func Render

func Render(ctx context.Context, options Options) (map[string][]byte, error)

func Undeploy

func Undeploy(ctx context.Context, clientset kubernetes.Interface, namespace, namePrefix string) error

Types

type Options

type Options struct {
	NamePrefix         string
	Namespace          string
	IdentitySpec       kotsv1beta1.IdentitySpec
	IdentityConfigSpec kotsv1beta1.IdentityConfigSpec
	IsOpenShift        bool
	ImageRewriteFn     kotsadmversion.ImageRewriteFunc
	ProxyEnv           map[string]string
	AdditionalLabels   map[string]string
	Builder            *template.Builder
}

Jump to

Keyboard shortcuts

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