@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 injectionenvFrom- Bulk environment variable injectionvolume- Volume mount injectionannotation- Annotation injectionimagePullSecret- Image pull secret for private registriesplugin- Custom plugin-defined injection (experimental)