@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?
optional meta: object;Extra metadata passed during injection.
secretName
secretName: string;strategy?
optional strategy: SecretInjectionStrategy;targetName
targetName: string;path
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
provider: BaseProvider;Provider instance used to get injection payload. Must implement getInjectionPayload() method.
providerId
providerId: string;A stable identifier for the provider instance.
resourceId
resourceId: ResourceId;Target resource ID in the composer which the secret will be injected.