initgeneration

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 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) GenerateForDynakube

func (g *InitGenerator) GenerateForDynakube(ctx context.Context, dk *dynatracev1beta2.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 dynatracev1beta2.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