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 ¶
Warning describes lossy or incomplete reconstruction performed while building a config from replicated takod state.
func BuildConfig ¶
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.
Click to show internal directories.
Click to hide internal directories.