config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const FileName = "platformctl.yaml"

Variables

This section is empty.

Functions

func Validate

func Validate(cfg Config) error

Types

type Config

type Config struct {
	APIVersion string           `yaml:"apiVersion"`
	Kind       string           `yaml:"kind"`
	Layout     LayoutConfig     `yaml:"layout"`
	Validation ValidationConfig `yaml:"validation"`
	Naming     NamingConfig     `yaml:"naming"`
	Contexts   ContextsConfig   `yaml:"contexts"`
}

func Default

func Default() Config

func Load

func Load(repoRoot string) (*Config, error)

func LoadPath

func LoadPath(configPath string) (*Config, error)

type ContextsConfig

type ContextsConfig struct {
	Default string                    `yaml:"default"`
	Items   map[string]map[string]any `yaml:"items"`
}

type LayoutConfig

type LayoutConfig struct {
	ChartRoots           []string `yaml:"chartRoots"`
	ValuesRoots          []string `yaml:"valuesRoots"`
	OutputRoot           string   `yaml:"outputRoot"`
	RequireMirroredPaths bool     `yaml:"requireMirroredPaths"`
}

type NamingConfig

type NamingConfig struct {
	WrapperPrefix string `yaml:"wrapperPrefix"`
}

type ValidationConfig

type ValidationConfig struct {
	RequiredCommonValues string   `yaml:"requiredCommonValues"`
	OverlayPattern       string   `yaml:"overlayPattern"`
	TestOverlayName      string   `yaml:"testOverlayName"`
	TestOverlayWarnings  []string `yaml:"testOverlayWarnings"`
}

Jump to

Keyboard shortcuts

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