configmaterialize

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Desired *takoapi.DesiredStateDocument
	Actual  *takoapi.ActualStateDocument
	History *takoapi.DeploymentHistoryDocument

	// Servers supplies connection details that takod desired state does not store.
	// Any desired target node missing here is synthesized as a placeholder and
	// returned with a warning.
	Servers map[string]config.ServerConfig

	// Validate runs config.ValidateConfig on the materialized result.
	Validate bool
}

Options contains the remote takod documents and caller-supplied connection details used to reconstruct a config.Config.

type Warning

type Warning struct {
	Code    string
	Message string
	Service string
	Server  string
}

Warning describes lossy or incomplete reconstruction performed while building a config from replicated takod state.

func BuildConfig

func BuildConfig(opts Options) (*config.Config, []Warning, error)

BuildConfig materializes a config.Config from takod desired, actual, and deployment history documents. Desired state is authoritative; actual state is used only to fill services that are absent from desired with image/replicas.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL