Skip to content

@kubricate/core / types / EnvFromInjectionStrategy

Interface: EnvFromInjectionStrategy

Bulk environment variable injection strategy using envFrom. Injects all keys from a secret as environment variables at once.

Example

typescript
const strategy: EnvFromInjectionStrategy = {
  kind: 'envFrom',
  containerIndex: 0,
  prefix: 'DB_'
};

Extends

Properties

containerIndex?

ts
optional containerIndex: number;

Zero-based index of the container to inject into (default: 0)


kind

ts
kind: "envFrom";

Injection strategy type: bulk environment variable injection using envFrom


prefix?

ts
optional prefix: string;

Prefix to add to all environment variable names (e.g., 'DB_' results in 'DB_username', 'DB_password')


targetPath?

ts
optional targetPath: string;

Override the default target path for the secret injection.

Moreover, each provider has a default target path for the secret injection. By using BaseProvider.getTargetPath()

Inherited from

BaseSecretInjectionStrategy.targetPath