kluctl_project

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 LoadKluctlProject

func LoadKluctlProject(args LoadKluctlProjectArgs, tmpDir string, j2 *jinja2.Jinja2) (*KluctlProjectContext, error)

func NewKluctlProjectContext

func NewKluctlProjectContext(loadArgs LoadKluctlProjectArgs, tmpDir string, j2 *jinja2.Jinja2) *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)

func (*KluctlProjectContext) NewTargetContext

func (p *KluctlProjectContext) NewTargetContext(targetName string, clusterName string, dryRun bool, args map[string]string, forSeal bool, images *deployment.Images, inclusion *utils.Inclusion, renderOutputDir string) (*TargetContext, error)

type LoadKluctlProjectArgs

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

type TargetContext

type TargetContext struct {
	KluctlProject        *KluctlProjectContext
	Target               *types.Target
	ClusterConfig        *types.ClusterConfig
	K                    *k8s.K8sCluster
	DeploymentProject    *deployment.DeploymentProject
	DeploymentCollection *deployment.DeploymentCollection
}

Jump to

Keyboard shortcuts

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