Documentation ¶
Index ¶
- Constants
- type SecretGenerator
- func (g *SecretGenerator) GenerateForDynakube(ctx context.Context, dk *dynakube.DynaKube) error
- func (g *SecretGenerator) GenerateForNamespace(ctx context.Context, dkName, targetNs string) error
- func (g *SecretGenerator) PrepareFields(ctx context.Context, dk *dynakube.DynaKube) (map[string]string, error)
- func (g *SecretGenerator) RemoveEndpointSecrets(ctx context.Context, namespaces []corev1.Namespace) error
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 (*SecretGenerator) GenerateForDynakube ¶ added in v1.1.0
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 (*SecretGenerator) RemoveEndpointSecrets ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.