Documentation
¶
Index ¶
Constants ¶
const CurrentSchemaVersion = 4
CurrentSchemaVersion is the schema_version this build reads and writes. Bump in lockstep with any change to the kcp-state.json shape, and add the matching upcaster to steps (see internal/state/migrate/steps.go).
v2 added the additive, omitempty connector_metrics field to each MSK cluster's aws_client_information — no upcaster needed, since an older file is already a structurally-valid v2 file. v3 is NOT additive: it restructures self-managed Connect's kafka_admin_client_information.self_managed_connectors into connect_clusters, so every file below v3 runs the real "nest self_managed_connectors under connect_clusters" upcaster (self-gating: a no-op for files without it). v4 added the additive, omitempty consumer_groups field to kafka_admin_client_information (consumer-group discovery) — again no real transform needed, since an existing v3 file is already a structurally-valid v4 file; see the "-> v4" no-op step in steps.go.
Variables ¶
var ErrNewerSchema = errors.New("state file schema is newer than this KCP build supports")
ErrNewerSchema means the file was written by a newer (released) KCP than this build can model.
var ErrNewerSchemaDev = errors.New("state file schema is newer than this KCP build supports and was written by a development build")
ErrNewerSchemaDev is ErrNewerSchema's variant for a file STAMPED by a dev build (its declared schema_version may correspond to an unreleased/local shape — see spec §6.9).
var ErrUnsupportedLegacy = errors.New("state file is from an unsupported legacy format")
ErrUnsupportedLegacy means the file is an old shape for which no upcaster exists yet.
Functions ¶
Types ¶
This section is empty.