projectconfig

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 8 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 projectconfig loads .kubrix-values.yaml, a hand-written list of the values files of each application per target type, for repositories that do not follow the kubriX target-chart layout.

Index

Constants

View Source
const DefaultPath = ".kubrix-values.yaml"

DefaultPath is where the project config is looked for when --values-config is not given.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Chart string    `yaml:"chart" json:"chart"`
	Files []FileRef `yaml:"files" json:"files"`
}

type Config

type Config struct {
	Version string            `yaml:"version" json:"version"`
	Targets map[string]Target `yaml:"targets" json:"targets"`
	// contains filtered or unexported fields
}

func Load

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

func (*Config) Overlay

func (c *Config) Overlay(targetType string) (*overlay.Overlay, error)

Overlay resolves every application of a target type. Missing optional files are skipped; a missing required file, an empty file list or an application without any existing file is an error.

type FileRef

type FileRef struct {
	Path     string `json:"path"`
	Optional bool   `json:"optional,omitempty"`
}

func (*FileRef) UnmarshalYAML

func (f *FileRef) UnmarshalYAML(n *yaml.Node) error

type Target

type Target struct {
	Applications map[string]Application `yaml:"applications" json:"applications"`
}

Jump to

Keyboard shortcuts

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