Skip to content

@kubricate/core / BaseProvider / ProviderInjection

Interface: ProviderInjection<ResourceId, Path>

Represents a single secret injection from a provider into a Kubernetes resource. Used during manifest generation to apply secrets at the correct paths.

Type Parameters

ResourceId

ResourceId extends string = string

Type of the resource identifier

Path

Path extends string = string

Type of the target path string

Properties

meta?

ts
optional meta: object;

Extra metadata passed during injection.

secretName

ts
secretName: string;

strategy?

ts
optional strategy: SecretInjectionStrategy;

targetName

ts
targetName: string;

path

ts
path: Path;

Target path in the resource where the secret will be injected. This is used to deep-merge the value into the resource. Refer to lodash get (Gets the value at path of object.) for more details. https://lodash.com/docs/4.17.15#get

This is a dot-separated path to the property in the resource where the value should be applied.


provider

ts
provider: BaseProvider;

Provider instance used to get injection payload. Must implement getInjectionPayload() method.


providerId

ts
providerId: string;

A stable identifier for the provider instance.


resourceId

ts
resourceId: ResourceId;

Target resource ID in the composer which the secret will be injected.