initgeneration

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitGenerator

type InitGenerator struct {
	// contains filtered or unexported fields
}

InitGenerator manages the init secret generation for the user namespaces.

func NewInitGenerator

func NewInitGenerator(client client.Client, apiReader client.Reader, namespace string) *InitGenerator

func (*InitGenerator) Cleanup added in v1.3.0

func (g *InitGenerator) Cleanup(ctx context.Context, namespaces []corev1.Namespace) error

func (*InitGenerator) GenerateForDynakube

func (g *InitGenerator) GenerateForDynakube(ctx context.Context, dk *dynakube.DynaKube) error

GenerateForDynakube creates/updates the init secret for EVERY namespace for the given dynakube. Used by the dynakube controller during reconcile.

func (*InitGenerator) GenerateForNamespace

func (g *InitGenerator) GenerateForNamespace(ctx context.Context, dk dynakube.DynaKube, targetNs string) error

GenerateForNamespace creates the init secret for namespace while only having the name of the corresponding dynakube Used by the podInjection webhook in case the namespace lacks the init secret.

Jump to

Keyboard shortcuts

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