Skip to content

Maintenance: drift

maintenance-drift.mp4 (0:56, 720p, with sound): code is the source of truth, and a scheduled plan is how you find out it is not. It shows the intended flow.

TimeStepWhat happens
0:00Every night, plan every cellA scheduled plan per cell in phaleron-infrastructure-config.
0:061 · Four clean, one driftedcell-03 has changes nobody made through an MR.
0:162 · Read the planNote: Objects have changed outside of OpenTofu; ~ enabled_cluster_log_types. Someone turned control-plane logging off in the console.
0:283 · Keep it, or undo itKeep: an MR writes it into code. Undo: apply what the code says. Audit logs belong on, so undo.
0:384 · Applycell-03 matches the code again.
0:48ResolvedNo MR, one apply. Next: find out who changed it, and why.

Why logging and not a node count: the upstream EKS module ignores changes to a node group’s desired size, and an extra security-group rule added in the console is not in state, so neither shows up in a plan.

Editing

Last updated on