Skip to content

@kubricate/core / types / SecretInjectionStrategy

Type Alias: SecretInjectionStrategy<Key>

ts
type SecretInjectionStrategy<Key> = 
  | EnvInjectionStrategy<Key>
  | VolumeInjectionStrategy
  | AnnotationInjectionStrategy
  | ImagePullSecretInjectionStrategy
  | EnvFromInjectionStrategy
  | PluginInjectionStrategy;

SecretInjectionStrategy defines how secrets should be injected into Kubernetes resources.

This is a discriminated union type based on the kind field, where each variant represents a different injection method supported by Kubernetes and Kubricate providers.

Type Parameters

Key

Key extends string = string

The type of keys available for env injection (e.g., 'username' | 'password')

Available strategy kinds:

  • env - Individual environment variable injection
  • envFrom - Bulk environment variable injection
  • volume - Volume mount injection
  • annotation - Annotation injection
  • imagePullSecret - Image pull secret for private registries
  • plugin - Custom plugin-defined injection (experimental)