config

package module
v1.32.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() error

Types

type Configuration

type Configuration struct {
	ApiVersion string            `yaml:"apiVersion"`
	Kind       string            `yaml:"kind"`
	Metadata   ConfigurationMeta `yaml:"metadata"`
	Spec       ConfigurationSpec `yaml:"spec"`
}

func Get

func Get() []Configuration

type ConfigurationField

type ConfigurationField struct {
	DisplayName      string                 `yaml:"displayName"`
	ComponentType    string                 `yaml:"componentType"`
	IsHelmOnly       bool                   `yaml:"isHelmOnly"`
	IsEnterpriseOnly bool                   `yaml:"isEnterpriseOnly"`
	Description      string                 `yaml:"description"`
	HelmValuePath    string                 `yaml:"helmValuePath"`
	DocsLink         string                 `yaml:"docsLink,omitempty"`
	ComponentProps   map[string]interface{} `yaml:"componentProps,omitempty"`
	// RenderCondition gates whether the UI shows this field based on the value of
	// another field in the same config. Mirrors the destination-form renderCondition
	// shape: either ["true"|"false"] or [helmValuePath, comparison, value], where
	// comparison is one of "==", "!=", "===", "!==", ">", "<", ">=", "<=".
	RenderCondition []string `yaml:"renderCondition,omitempty"`
}

type ConfigurationMeta

type ConfigurationMeta struct {
	Name        string `yaml:"name"`
	DisplayName string `yaml:"displayName"`
}

type ConfigurationSpec

type ConfigurationSpec struct {
	Fields []ConfigurationField `yaml:"fields"`
}

Jump to

Keyboard shortcuts

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