kluctl_project

package
v1.28.2-0...-a3f5403 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadKluctlProject

func LoadKluctlProject(args LoadKluctlProjectArgs, cb func(ctx *KluctlProjectContext) error) error

Types

type KluctlProjectContext

type KluctlProjectContext struct {
	TmpDir string
	Config types.KluctlProject

	ProjectDir       string
	DeploymentDir    string
	ClustersDir      string
	SealedSecretsDir string

	DynamicTargets []*types.DynamicTarget

	J2 *jinja2.Jinja2
	// contains filtered or unexported fields
}

func NewKluctlProjectContext

func NewKluctlProjectContext(loadArgs LoadKluctlProjectArgs, tmpDir string) *KluctlProjectContext

func (*KluctlProjectContext) CheckDynamicArg

func (c *KluctlProjectContext) CheckDynamicArg(target *types.Target, argName string, argValue string) error

func (*KluctlProjectContext) CreateTGZArchive

func (c *KluctlProjectContext) CreateTGZArchive(archivePath string, metadataPath string) error

func (*KluctlProjectContext) FindBaseTarget

func (c *KluctlProjectContext) FindBaseTarget(name string) (*types.Target, error)

func (*KluctlProjectContext) FindDynamicTarget

func (c *KluctlProjectContext) FindDynamicTarget(name string) (*types.DynamicTarget, error)

func (*KluctlProjectContext) LoadClusterConfig

func (c *KluctlProjectContext) LoadClusterConfig(clusterName string) (*types.ClusterConfig, error)

type LoadKluctlProjectArgs

type LoadKluctlProjectArgs struct {
	ProjectUrl          *git_url.GitUrl
	ProjectRef          string
	ProjectConfig       string
	LocalClusters       string
	LocalDeployment     string
	LocalSealedSecrets  string
	FromArchive         string
	FromArchiveMetadata string

	J2 *jinja2.Jinja2
}

Jump to

Keyboard shortcuts

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