Skip to main content

Module resolve

Module resolve 

Source
Expand description

Pure resolution of per-target defaults and overrides.

These helpers are the single place where the export: section is turned into concrete values, so the defaults (namespace from the project, replicas of one, enabled by default) are defined and tested once and shared by every emitter.

Constants§

SECRET_MARKERS
Environment key fragments that route a variable into a secret store rather than plain configuration. Matched case-insensitively against the full key name.

Functions§

chart_name_for
Helm chart name: the override if set, otherwise the project name.
chart_version_for
Helm chart version: the override if set, otherwise the project version, otherwise 0.1.0.
enabled_for
Whether resource is emitted for target. A resource is included unless its per-target override sets enabled: false.
image_pull_policy_for
Image pull policy for resource: a per-resource override wins over the per-target default, which falls back to IfNotPresent.
namespace_for
Kubernetes namespace: the override if set, otherwise the project name.
replicas_for
Replica count for resource on target: a per-resource override wins over the per-target default, which falls back to one. Compose has no replica concept and always resolves to one.