cluster

package
v1.0.0-rc07 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 52 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cluster provides domain services for cluster lifecycle management.

This package contains business logic for cluster operations, separated from the CLI layer to enable testability and reusability. Each service handles a specific aspect of cluster management:

  • InitService: Cluster initialization and configuration creation
  • ValidateService: Configuration and connectivity validation
  • SetupService: GitOps repository generation and manifest creation
  • BootstrapService: Infrastructure provisioning and cluster deployment

Services use dependency injection to receive their dependencies (PathResolver, ConfigManager, ValidationEngine) and have no direct dependencies on the CLI framework (Cobra), making them easy to test and reuse in other contexts.

Example usage:

// Create service with dependencies
initService := cluster.NewInitService(pathResolver, configManager, validationEngine)

// Initialize a cluster
result, err := initService.Initialize(ctx, cluster.InitOptions{
	ClusterName:  "my-cluster",
	Organization: "my-org",
	Provider:     "openstack",
})
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Config created at: %s\n", result.ConfigPath)

Design Principles:

  • Single Responsibility: Each service handles one aspect of cluster lifecycle
  • Dependency Injection: Services receive dependencies via constructor
  • Context-Aware: All operations accept context.Context for cancellation
  • Error Wrapping: Errors are wrapped with context using fmt.Errorf
  • Testability: No CLI dependencies, easy to mock dependencies

Index

Constants

View Source
const (
	ValidationModeOffline = "offline"
	ValidationModeOnline  = "online"
)

Variables

This section is empty.

Functions

func BootstrapStateClusterDir

func BootstrapStateClusterDir(clusterName, organization string) string

BootstrapStateClusterDir returns the runtime state directory holding a cluster's deploy resume state: <state-dir>/bootstrap/<org>/<cluster>. It contains one subdirectory per cluster generation (plus the unscoped state.json of configurations that predate generation identifiers), so removing it retires every resume artifact of every past attempt.

Destroy uses it for local-file cleanup; deploy's --restart clears only the current generation's file. Returns "" when the cluster name is unusable.

func NormalizeValidationMode

func NormalizeValidationMode(mode, field string) (string, error)

func OpenActionLogFile

func OpenActionLogFile(path string) (*os.File, error)

OpenActionLogFile creates the directory if needed and opens a log file for writing.

func ResolveDestroyLogPath

func ResolveDestroyLogPath(cfg *v2.Config, logPath string, startedAt time.Time) (string, error)

ResolveDestroyLogPath resolves the log path for cluster destroy operations.

func ValidateOpenStackLive

func ValidateOpenStackLive(ctx context.Context, creds *credentials.OpenStackCredentials) error

ValidateOpenStackLive authenticates the cluster's OpenStack credentials and asserts that the configured region is served by the configured auth_url. It is exported so validate and deploy share one implementation.

Types

type BaseDomainDrift

type BaseDomainDrift struct {
	Class              BaseDomainDriftClass
	ClusterName        string
	ClusterBaseDomain  string
	SettingsBaseDomain string
	ClusterFQDN        string
	SyncedFQDN         string
	// RenderedBaseDomain is the base_domain this generation run actually
	// renders with (post-hydration, post-sync), for the success stamp.
	RenderedBaseDomain string
}

func DetectBaseDomainDrift

func DetectBaseDomainDrift(cfg *v2.Config, settingsBaseDomain string) BaseDomainDrift

DetectBaseDomainDrift compares the settings-file cluster_defaults.base_domain with the (already load-hydrated) cluster config. For a managed field, hydration already moved cfg.BaseDomain to the settings value, so the last-generation stamp distinguishes "propagated, re-generation pending" from "aligned". For a pinned field, the stamp distinguishes "settings changed, cluster never opted in" from "the user edited the cluster domain on purpose" (stamp absent or older than the cluster value).

func (BaseDomainDrift) Warning

func (d BaseDomainDrift) Warning() string

Warning renders the drift as a generate warning line, or "" for classes that stay silent (aligned, pinned-different).

type BaseDomainDriftClass

type BaseDomainDriftClass int

BaseDomainDriftClass classifies the relationship between the settings-file cluster_defaults.base_domain and the value a cluster config renders with.

const (
	// BaseDomainAligned: the cluster renders with the settings domain; nothing
	// to report.
	BaseDomainAligned BaseDomainDriftClass = iota
	// BaseDomainFollowsSettings: base_domain is provenance-managed, so the
	// loader already propagated the settings value at load; the last
	// successful generation used the old value, so re-generation is pending.
	BaseDomainFollowsSettings
	// BaseDomainSettingsChanged: the settings domain changed and the cluster
	// still renders the value it was generated with (or the init placeholder).
	// The user never opted out; offer the sync remediation.
	BaseDomainSettingsChanged
	// BaseDomainPinnedDifferent: the cluster deliberately owns a different
	// domain (pinned provenance, or a cluster-side edit that pinned itself).
	// Silent by design.
	BaseDomainPinnedDifferent
)

type BootstrapOptions

type BootstrapOptions struct {
	ClusterName      string
	Organization     string
	SkipValidation   bool
	Timeout          time.Duration
	DryRun           bool
	ContainerRuntime string
	Restart          bool
	Debug            bool
	OnlyStep         string
	FromStep         string
	KubeconfigPath   string
	LogPath          string
}

BootstrapOptions contains options for cluster bootstrap

type BootstrapPlan

type BootstrapPlan struct {
	Cluster         string
	Organization    string
	Provider        string
	ConfigPath      string
	GitOpsDir       string
	ClusterDir      string
	KubeconfigPath  string
	LogPath         string
	ResumeStatePath string
	Filter          string
	Steps           []BootstrapPlanStep
	Notes           []string
}

BootstrapPlan describes what a dry-run cluster deploy would do.

type BootstrapPlanCommand

type BootstrapPlanCommand struct {
	Name string
	Args []string
}

BootstrapPlanCommand describes one command a real deploy may run.

type BootstrapPlanEnv

type BootstrapPlanEnv struct {
	Name     string
	Value    string
	Redacted bool
}

BootstrapPlanEnv describes an environment variable used by a planned step.

type BootstrapPlanStep

type BootstrapPlanStep struct {
	ID          string
	Action      string
	WorkingDir  string
	Commands    []BootstrapPlanCommand
	Reads       []string
	Writes      []string
	Environment []BootstrapPlanEnv
	Notes       []string
}

BootstrapPlanStep describes a provider bootstrap step without executing it.

type BootstrapResult

type BootstrapResult struct {
	InfrastructureProvisioned bool
	ClusterDeployed           bool
	ClusterReady              bool
	Duration                  time.Duration
	Endpoint                  string
	LogPath                   string
	ResumeStatePath           string
	StepsCompleted            []string
	StepsFailed               []string
	Plan                      *BootstrapPlan
}

BootstrapResult contains the result of cluster bootstrap

type BootstrapService

type BootstrapService struct {
	// contains filtered or unexported fields
}

BootstrapService handles cluster bootstrap business logic

func NewBootstrapService

func NewBootstrapService(
	pathResolver *paths.PathResolver,
	validationEngine *validation.ValidationEngine,
) *BootstrapService

NewBootstrapService creates a new BootstrapService

func NewBootstrapServiceWithConfigMgr

func NewBootstrapServiceWithConfigMgr(
	pathResolver *paths.PathResolver,
	validationEngine *validation.ValidationEngine,
	configurationMgr *config.ConfigurationManager,
	fileSystem fs.FileSystem,
) *BootstrapService

NewBootstrapServiceWithConfigMgr creates a new BootstrapService with optional ConfigurationManager

func (*BootstrapService) Bootstrap

Bootstrap performs cluster bootstrap

func (*BootstrapService) SetOutput

func (s *BootstrapService) SetOutput(w io.Writer)

SetOutput sets the writer used for user-facing progress messages. When nil, progress messages are suppressed.

type CheckStatus

type CheckStatus string
const (
	CheckStatusPass CheckStatus = "pass"
	CheckStatusFail CheckStatus = "fail"
	CheckStatusWarn CheckStatus = "warn"
	CheckStatusSkip CheckStatus = "skip"
)

type ConfigureOptions

type ConfigureOptions struct {
	Identifier   string
	Organization string
	Provider     string
}

type ConfigureResult

type ConfigureResult struct {
	Created      bool
	ConfigPath   string
	ClusterPaths *paths.ClusterPaths
	Config       *v2.Config
}

type ConfigureService

type ConfigureService struct {
	// contains filtered or unexported fields
}

func NewConfigureService

func NewConfigureService(
	pathResolver *paths.PathResolver,
	validationEngine *validation.ValidationEngine,
	configManager *config.ConfigManager,
) *ConfigureService

func NewConfigureServiceWithDeps

func NewConfigureServiceWithDeps(
	pathResolver *paths.PathResolver,
	validationEngine *validation.ValidationEngine,
	configManager *config.ConfigManager,
	configurationMgr *config.ConfigurationManager,
	fileSystem fs.FileSystem,
	providers *orchestration.ProviderRegistry,
	capabilities *orchestration.CapabilityRegistry,
) *ConfigureService

func (*ConfigureService) Configure

type DestroyInfraOptions

type DestroyInfraOptions struct {
	// AutoApprove skips the tofu destroy confirmation prompt.
	AutoApprove bool
	// DeleteVolumes deletes CSI-provisioned Cinder volumes after infrastructure
	// destruction. When false, orphaned volumes are only reported.
	DeleteVolumes bool
	// RequireClusterAccess turns a CSI volume-capture failure (missing or
	// unreachable cluster kubeconfig) into a fatal error instead of a
	// warning, so destroy aborts before any infrastructure is torn down.
	RequireClusterAccess bool
	// SkipClusterAccess omits every destroy step that talks to the live
	// cluster API (the CSI volume-capture kubectl step). Used when the
	// kube endpoint is unreachable and the operator has accepted that CSI
	// volume handles cannot be captured. It is incompatible with
	// RequireClusterAccess.
	SkipClusterAccess bool
	// AllowCleanupFailures downgrades pre-destroy cleanup steps (e.g. the
	// Octavia load-balancer sweep) from fatal to warning, preserving the
	// historical lenient behavior when the operator explicitly accepts the
	// risk of leaked resources.
	AllowCleanupFailures bool
	// DestroyRetries is the number of additional attempts for the
	// opentofu-destroy step after a transient failure (default 1).
	DestroyRetries int
	// DestroyParallelism sets the tofu -parallelism flag when > 0.
	DestroyParallelism int
}

DestroyInfraOptions contains options for infrastructure destruction.

type DestroyOptions

type DestroyOptions struct {
	// AutoApprove skips the tofu destroy confirmation prompt.
	AutoApprove bool
	// DeleteVolumes deletes CSI-provisioned Cinder volumes after infrastructure
	// destruction. When false, orphaned volumes are only reported.
	DeleteVolumes bool
	// RequireClusterAccess aborts destroy when the cluster kubeconfig is
	// missing or unreachable instead of skipping CSI volume capture.
	RequireClusterAccess bool
	// SkipClusterAccess omits every destroy step that requires access to the
	// live cluster API (the CSI volume-capture kubectl step), so destroy
	// proceeds against an unreachable endpoint without a capture warning.
	SkipClusterAccess bool
	// AllowCleanupFailures downgrades pre-destroy cleanup steps from fatal
	// to warning (historical lenient behavior, explicit opt-in).
	AllowCleanupFailures bool
	// DestroyRetries is the number of additional attempts for the
	// opentofu-destroy step after a transient failure (default 1).
	DestroyRetries int
	// DestroyParallelism sets the tofu -parallelism flag when > 0.
	DestroyParallelism int
}

DestroyOptions contains options for the destroy operation.

type DestroyResult

type DestroyResult struct {
	// InfraDestroyed indicates whether infrastructure was successfully destroyed.
	InfraDestroyed bool
	// StepsCompleted lists the IDs of completed destroy steps.
	StepsCompleted []string
	// Error contains any error that occurred during destruction.
	Error error
	// CleanupWarnings collects non-fatal step failures (e.g. CSI volume
	// deletion errors, downgraded cleanup steps). The destroy still
	// succeeds, but callers must surface these so leaked resources are
	// never silently swallowed.
	CleanupWarnings []error
}

DestroyResult contains the result of a destroy operation.

func (*DestroyResult) AddCleanupWarning

func (r *DestroyResult) AddCleanupWarning(err error)

AddCleanupWarning records a non-fatal warning for the caller. Providers use this when a step degrades instead of failing (e.g. an unreachable Cinder API after the infrastructure is already gone).

func (*DestroyResult) CleanupWarning

func (r *DestroyResult) CleanupWarning() error

CleanupWarning returns the combined cleanup warnings as a single error, or nil when there are none.

type DestroyService

type DestroyService struct {
	// contains filtered or unexported fields
}

DestroyService orchestrates infrastructure destruction for clusters.

func NewDestroyService

func NewDestroyService(output io.Writer) *DestroyService

NewDestroyService creates a new DestroyService with the default command runner.

func NewDestroyServiceWithRunner

func NewDestroyServiceWithRunner(runner lifecycleCommandRunner, output io.Writer) *DestroyService

NewDestroyServiceWithRunner creates a new DestroyService with a custom command runner. This is primarily used for testing.

func (*DestroyService) DestroyInfrastructure

func (s *DestroyService) DestroyInfrastructure(ctx context.Context, cfg *v2.Config, opts *DestroyOptions) (*DestroyResult, error)

DestroyInfrastructure destroys the infrastructure for a cluster. It returns an error if the provider doesn't support infrastructure destruction or if the destruction fails.

func (*DestroyService) SupportsInfraDestroy

func (s *DestroyService) SupportsInfraDestroy(cfg *v2.Config) bool

SupportsInfraDestroy returns true if the provider supports infrastructure destruction.

type InitOptions

type InitOptions struct {
	ClusterName  string
	Organization string
	// OrganizationExplicit is true when the caller explicitly provided an
	// organization (via --org, an embedded "org/cluster" name, or the
	// deprecated org flag), as opposed to Organization merely holding a
	// resolved default. Only an explicit organization may override a value
	// already present in a loaded --config-file.
	OrganizationExplicit bool
	Region               string
	RegionExplicit       bool
	Provider             string
	DeploymentMethod     string
	ConfigFile           string
	ConfigMap            map[string]any
	Force                bool
	Strict               bool
	NoKeyGen             bool
	NoSOPSKeyGen         bool
	RegenerateKeys       bool
	NoGitInit            bool
	FullSchema           bool
	SchemaVersion        string
	ServerPools          []string
	FlagOverrides        []string
	// BaseDomain is the normalized --base-domain value. When set, the
	// base_domain override (which parseInitOptions injects into
	// FlagOverrides) is tagged managed.base_domain: default so the cluster
	// keeps following cluster_defaults.base_domain from the settings file.
	BaseDomain            string
	KindDisableDefaultCNI *bool
	// DryRun performs every read, validation and path-resolution step and
	// reports what would be created, but writes nothing: no directories, no
	// config file, no SOPS/SSH keys, no git repository, and no remote
	// application credential. The global --dry-run flag maps here.
	DryRun bool
}

InitOptions contains options for cluster initialization

type InitResult

type InitResult struct {
	ConfigPath     string
	ClusterPaths   *paths.ClusterPaths
	Config         *v2.Config
	ConfigMap      map[string]any
	KeysGenerated  bool
	GitInitialized bool
	Message        string
}

InitResult contains the result of cluster initialization

type InitService

type InitService struct {
	// contains filtered or unexported fields
}

InitService handles cluster initialization business logic

func NewInitService

func NewInitService(
	pathResolver *paths.PathResolver,
	validationEngine *validation.ValidationEngine,
	configManager *config.ConfigManager,
) *InitService

NewInitService creates a new InitService

func NewInitServiceWithConfigMgr

func NewInitServiceWithConfigMgr(
	pathResolver *paths.PathResolver,
	validationEngine *validation.ValidationEngine,
	configManager *config.ConfigManager,
	configurationMgr *config.ConfigurationManager,
	fileSystem fs.FileSystem,
) *InitService

NewInitServiceWithConfigMgr creates a new InitService with optional ConfigurationManager

func (*InitService) Initialize

func (s *InitService) Initialize(ctx context.Context, opts InitOptions) (*InitResult, error)

Initialize performs cluster initialization

type SetupOptions

type SetupOptions struct {
	ClusterName      string
	Organization     string
	DryRun           bool
	SkipValidation   bool
	Force            bool
	Prune            *bool
	AdoptGenerated   bool
	GitopsAuthMethod string // "ssh" or "token"; when set, overrides BaseRepo URL scheme
	// SyncBaseDomain adopts the settings-file cluster_defaults.base_domain
	// into the cluster config (rewriting the derived cluster_fqdn) before
	// generating. It is the explicit remediation for a pinned cluster whose
	// settings domain changed; without it, a pinned domain is never touched.
	SyncBaseDomain bool
}

SetupOptions contains options for cluster setup

type SetupResult

type SetupResult struct {
	GitOpsPath       string
	ManifestsCreated int
	ValidationPassed bool
	Promotion        *gitops.PromoteResult
	Warnings         []string
	// BaseDomainDrift is the settings-vs-cluster base_domain divergence
	// report for this generation run (zero value = aligned).
	BaseDomainDrift BaseDomainDrift
	// BaseDomainSynced is true when --sync-base-domain rewrote the cluster
	// config on disk during this run.
	BaseDomainSynced bool
	// BaseDomainSyncedFrom/To describe the applied rewrite.
	BaseDomainSyncedFrom string
	BaseDomainSyncedTo   string

	// RepairedHostnameFields lists the service hostname fields loader stage 4c
	// healed while loading the config for this generation run. Surfaced because
	// the sweep changes TLS DNS names on a read path: without a line in the
	// generate output an operator would see hostnames move in the GitOps tree
	// with nothing explaining why.
	RepairedHostnameFields []string
}

SetupResult contains the result of cluster setup

type SetupService

type SetupService struct {
	// contains filtered or unexported fields
}

SetupService handles cluster setup business logic

func NewSetupService

func NewSetupService(
	pathResolver *paths.PathResolver,
	validationEngine *validation.ValidationEngine,
) *SetupService

NewSetupService creates a new SetupService

func NewSetupServiceWithConfigMgr

func NewSetupServiceWithConfigMgr(
	pathResolver *paths.PathResolver,
	validationEngine *validation.ValidationEngine,
	configurationMgr *config.ConfigurationManager,
) *SetupService

NewSetupServiceWithConfigMgr creates a new SetupService with optional ConfigurationManager

func (*SetupService) Setup

func (s *SetupService) Setup(ctx context.Context, opts SetupOptions) (*SetupResult, error)

Setup performs cluster setup

type ValidateOptions

type ValidateOptions struct {
	ClusterName         string
	Organization        string
	ConfigPath          string // Optional: direct path to config file
	ValidationMode      string
	GenerateDebugConfig bool
	OutputDir           string
	Verbose             bool
	OutputFormat        string // "text" (default) or "json"
	Provider            string // Active provider for filtering irrelevant errors
}

ValidateOptions contains options for cluster validation

type ValidateService

type ValidateService struct {
	// contains filtered or unexported fields
}

ValidateService handles cluster validation business logic

func NewValidateService

func NewValidateService(
	pathResolver *paths.PathResolver,
	validationEngine *validation.ValidationEngine,
	configManager *config.ConfigManager,
) *ValidateService

NewValidateService creates a new ValidateService

func NewValidateServiceWithConfigMgr

func NewValidateServiceWithConfigMgr(
	pathResolver *paths.PathResolver,
	validationEngine *validation.ValidationEngine,
	configManager *config.ConfigManager,
	configurationMgr *config.ConfigurationManager,
	fileSystem fs.FileSystem,
) *ValidateService

NewValidateServiceWithConfigMgr creates a new ValidateService with optional ConfigurationManager

func (*ValidateService) FormatResult

func (s *ValidateService) FormatResult(result *ValidationResult) string

FormatResult formats the validation result for display

func (*ValidateService) FormatResultGrouped

func (s *ValidateService) FormatResultGrouped(result *ValidationResult, provider string) string

FormatResultGrouped formats the validation result with grouped, human-readable output.

func (*ValidateService) FormatResultJSON

func (s *ValidateService) FormatResultJSON(result *ValidationResult, provider string) (string, error)

FormatResultJSON returns the validation result as structured JSON.

func (*ValidateService) Validate

Validate performs cluster validation

func (*ValidateService) ValidateConfig

func (s *ValidateService) ValidateConfig(ctx context.Context, cfg *v2.Config) (*ValidationResult, error)

ValidateConfig validates an in-memory v2 configuration using the same pipeline as Validate (schema round-trip + ValidateReadiness). It always runs in offline mode and skips debug-config generation.

type ValidationCheck

type ValidationCheck struct {
	Name    string      `json:"name"`
	Status  CheckStatus `json:"status"`
	Message string      `json:"message,omitempty"`
	Detail  string      `json:"detail,omitempty"`
}

type ValidationCheckSummary

type ValidationCheckSummary struct {
	Passed   int `json:"passed"`
	Failed   int `json:"failed"`
	Warnings int `json:"warnings"`
	Skipped  int `json:"skipped"`
}

func (ValidationCheckSummary) Total

func (s ValidationCheckSummary) Total() int

type ValidationDetails

type ValidationDetails struct {
	Configuration bool `json:"configuration"`
	Connectivity  bool `json:"connectivity"`
	Provider      bool `json:"provider"`
}

ValidationDetails shows pass/fail per validation category.

type ValidationError

type ValidationError struct {
	Section    string `json:"section"`
	Field      string `json:"field"`
	YAMLPath   string `json:"yaml_path"`
	Tag        string `json:"tag"`
	Message    string `json:"message"`
	Category   string `json:"category"` // "configuration", "connectivity", "credentials", "provider"
	Severity   string `json:"severity,omitempty"`
	Suggestion string `json:"suggestion,omitempty"`
	Provider   string `json:"provider,omitempty"`
}

ValidationError represents a single parsed validation error with structured fields.

type ValidationGitOpsReport

type ValidationGitOpsReport struct {
	RepositoryURL string            `json:"repository_url,omitempty"`
	LocalPath     string            `json:"local_path,omitempty"`
	Branch        string            `json:"branch,omitempty"`
	Checks        []ValidationCheck `json:"checks"`
}

type ValidationMissing

type ValidationMissing struct {
	Path    string `json:"path"`
	Message string `json:"message,omitempty"`
}

type ValidationOutput

type ValidationOutput struct {
	Valid           bool                         `json:"valid"`
	Target          ValidationTarget             `json:"target"`
	Mode            string                       `json:"mode"`
	Summary         ValidationSummary            `json:"summary"`
	Checks          ValidationCheckSummary       `json:"checks"`
	Details         ValidationDetails            `json:"details"`
	Services        []ValidationServiceReport    `json:"services"`
	GitOps          ValidationGitOpsReport       `json:"gitops"`
	Missing         []ValidationMissing          `json:"missing"`
	ActionItems     []string                     `json:"action_items"`
	Errors          []ValidationError            `json:"errors,omitempty"`
	ErrorsBySection map[string][]ValidationError `json:"errors_by_section,omitempty"`
	Warnings        []string                     `json:"warnings,omitempty"`
	Suggestions     []string                     `json:"suggestions,omitempty"`
	Issues          []v2.ValidationIssue         `json:"issues,omitempty"`
	SchemaVersion   string                       `json:"schema_version,omitempty"`
	DebugConfigPath string                       `json:"debug_config_path,omitempty"`
}

ValidationOutput is the structured JSON output for CI/CD pipelines.

type ValidationResult

type ValidationResult struct {
	Valid             bool
	Errors            []string
	Warnings          []string
	Suggestions       []string
	Issues            []v2.ValidationIssue
	ConfigValid       bool
	ConnectivityValid bool
	ProviderValid     bool
	Provider          string
	SchemaVersion     string // normalized schema identifier
	DebugConfigPath   string // Path to generated debug config (if requested)
	Target            ValidationTarget
	ValidationMode    string
	CheckSummary      ValidationCheckSummary
	ServiceReports    []ValidationServiceReport
	GitOpsReport      ValidationGitOpsReport
	Missing           []ValidationMissing
	ActionItems       []string
}

ValidationResult contains the result of cluster validation

type ValidationServiceReport

type ValidationServiceReport struct {
	Name    string      `json:"name"`
	Status  CheckStatus `json:"status"`
	Message string      `json:"message,omitempty"`
	Missing []string    `json:"missing,omitempty"`
}

type ValidationSummary

type ValidationSummary struct {
	TotalErrors   int            `json:"total_errors"`
	TotalWarnings int            `json:"total_warnings"`
	BySection     map[string]int `json:"by_section,omitempty"`
}

ValidationSummary provides a quick count overview.

type ValidationTarget

type ValidationTarget struct {
	Cluster      string `json:"cluster,omitempty"`
	Organization string `json:"organization,omitempty"`
	Provider     string `json:"provider,omitempty"`
	ConfigPath   string `json:"config_path,omitempty"`
}

Directories

Path Synopsis
provider
storage

Jump to

Keyboard shortcuts

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