Documentation
¶
Overview ¶
Package contract implements the Environment CR contract adapter — the one-way projection from the resolved runtime spec (resolve.ResolvedEnvironmentSpec) to the protobuf contract type (environmentscontractv1alpha1.EnvironmentSpec).
Controllers and domain logic MUST NOT consume the returned contract value. The resolved runtime spec is the authoritative type for all reconciliation decisions. The contract is a serialisation artifact, not a source of truth.
Key generated type facts:
- SecretStoreProvider → top-level enum (commoncontractv1.SecretStoreProvider). No wrapper message. SecretStore.Provider field takes the enum directly.
- EnvironmentType → wrapped enum (*commoncontractv1.EnvironmentType). Field carries EnvironmentType_EnvironmentType enum value.
- All CR refs → *environmentscontractv1alpha1.ObjectRef{Name: "..."}.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToEnvironmentContract ¶
func ToEnvironmentContract(s *resolve.ResolvedEnvironmentSpec) *environmentscontractv1alpha1.EnvironmentSpec
ToEnvironmentContract projects the resolved runtime spec into a protobuf EnvironmentSpec for infrastructure consumers (hashing, comparison, audit).
⚠️ ONE-WAY adapter. MUST NOT be fed back into any controller or domain path.
Types ¶
This section is empty.