kubricate / types / ProjectMetadataOptions
Interface: ProjectMetadataOptions
Metadata configuration for project-wide resource generation behavior.
Properties
inject?
optional inject: boolean;
Whether to automatically inject standard Kubricate metadata (such as labels and annotations) into every generated resource. If true
, Kubricate will inject fields like stack-id
, stack-name
, version
, and managed-at
. Defaults to true
if omitted.
Default
true
injectManagedAt?
optional injectManagedAt: boolean;
Whether to inject the 'managed-at' annotation into each generated resource. If false, Kubricate will omit the 'kubricate.thaitype.dev/managed-at' field.
Defaults to true
.
Default
true
injectResourceHash?
optional injectResourceHash: boolean;
Whether to inject the 'resource-hash' annotation into each generated resource.
When enabled, Kubricate will calculate a stable hash of the resource content (excluding dynamic fields like 'managed-at') and inject it into the annotation 'kubricate.thaitype.dev/resource-hash'.
Useful for GitOps and drift detection tools to track changes in resource specifications.
Defaults to true
if omitted.
Default
true
injectVersion?
optional injectVersion: boolean;
Whether to inject the 'version' annotation into each generated resource.
When enabled, Kubricate will inject the CLI framework version (e.g., 0.17.0
) into the annotation 'kubricate.thaitype.dev/version'.
Useful for tracking which Kubricate version was used to generate the manifest, which can assist in debugging, auditing, or reproducing environments.
Defaults to true
if omitted.
Default
true