app

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPathType

func GetPathType(basePath string, path string) (string, error)

GetPathType checks if manifest path is a url, file, or directory

func GetRepoType

func GetRepoType(basePath string, repo string) string

GetRepoType checks if Helm Repo is helm, oci, or a local directory

func ResolveLocalChartDir

func ResolveLocalChartDir(basePath string, repo string) string

Types

type AppConfig

type AppConfig struct {
	Helm HelmConfig `json:"helm"`
}

type Config

type Config struct {
	Config           AppConfig                 `json:"cuemix"`
	HelmCharts       map[string]helm.HelmChart `json:"helm"`
	Manifests        []string                  `json:"manifests"`
	StrategicPatches map[string]StrategicPatch `json:"strategicpatch"`
	JsonPatches      map[string]k8s.JsonPatch  `json:"jsonpatch"`
}

func ParseConfig

func ParseConfig(path string) (Config, error)

func (Config) LoadObjects

func (c Config) LoadObjects(basePath string) (k8s.ObjectStore, error)

Load all objects found in config from helm, manifests, etc

type HelmConfig

type HelmConfig struct {
	DestDir     string `json:"destDir"`
	Untar       bool   `json:"untar"`
	KubeVersion string
}

type StrategicPatch

type StrategicPatch struct {
	Object map[string]interface{} `json:"patch"`
	Target k8s.Target             `json:"target"`
}

Jump to

Keyboard shortcuts

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