Skip to content

@kubricate/core / types / VolumeInjectionStrategy

Interface: VolumeInjectionStrategy

Volume mount injection strategy. Mounts secrets as files in a volume at a specified path.

Example

typescript
const strategy: VolumeInjectionStrategy = {
  kind: 'volume',
  mountPath: '/etc/secrets',
  containerIndex: 0
};

Extends

Properties

containerIndex?

ts
optional containerIndex: number;

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


kind

ts
kind: "volume";

Injection strategy type: volume mount injection


mountPath

ts
mountPath: string;

Path where the secret volume should be mounted in the container (required)


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