Files
opentf/internal/engine/planning/doc.go
Martin Atkins fc6c54a4b3 engine/planning: Initial stub of a hypothetical "planning engine"
This doesn't actually work yet because the main implementation functions
are not written, but this is a sketch of the general layout of things that
the lang/eval package was designed to support: the planning phase first
lets lang/eval drive based on the desired state it discovers gradually in
the configuration, but afterwards it then does followup work for any
resource instances that didn't appear in the desired state but yet are
present in the previous round state.

This overall structure should allow the planning engine to discover all
of the changes that need to be made to resource instances without any
direct knowledge of how the OpenTofu language works and how the module
author chose to describe the desired state as code.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-10-27 10:15:41 -07:00

11 lines
456 B
Go

// Copyright (c) The OpenTofu Authors
// SPDX-License-Identifier: MPL-2.0
// Copyright (c) 2023 HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// Package planning implements a planning engine for OpenTofu, which takes a
// prior state and a configuration instance (which can be evaluated to produce
// a desired state) and proposes a set of changes to make to bring the
// remote system closer to convergence with the desired state.
package planning