ingestendpoint

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MetricsUrlSecretField   = "DT_METRICS_INGEST_URL"
	MetricsTokenSecretField = "DT_METRICS_INGEST_API_TOKEN"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretGenerator added in v1.1.0

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

SecretGenerator manages the mint endpoint secret generation for the user namespaces.

func NewSecretGenerator added in v1.1.0

func NewSecretGenerator(client client.Client, apiReader client.Reader, ns string) *SecretGenerator

func (*SecretGenerator) GenerateForDynakube added in v1.1.0

func (g *SecretGenerator) GenerateForDynakube(ctx context.Context, dk *dynatracev1beta2.DynaKube) error

GenerateForDynakube creates/updates the metadata-enrichment-endpoint secret for EVERY namespace for the given dynakube. Used by the dynakube controller during reconcile.

func (*SecretGenerator) GenerateForNamespace added in v1.1.0

func (g *SecretGenerator) GenerateForNamespace(ctx context.Context, dkName, targetNs string) error

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

func (*SecretGenerator) PrepareFields added in v1.1.0

func (g *SecretGenerator) PrepareFields(ctx context.Context, dk *dynatracev1beta2.DynaKube) (map[string]string, error)

func (*SecretGenerator) RemoveEndpointSecrets added in v1.1.0

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

Jump to

Keyboard shortcuts

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