deployment

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: 30 Imported by: 0

Documentation

Index

Constants

View Source
const SealmeExt = ".sealme"

Variables

This section is empty.

Functions

func CheckRequiredDeployArgs

func CheckRequiredDeployArgs(dir string, varsCtx *jinja2.VarsCtx, deployArgs *uo.UnstructuredObject) error

func ConvertArgsToVars

func ConvertArgsToVars(args map[string]string) *uo.UnstructuredObject

func NewHelmChart

func NewHelmChart(configFile string) (*helmChart, error)

func ParseArgs

func ParseArgs(argsList []string) (map[string]string, error)

Types

type DeploymentCollection

type DeploymentCollection struct {
	Project   *DeploymentProject
	Images    *Images
	Inclusion *utils.Inclusion
	RenderDir string

	Deployments []*DeploymentItem
	// contains filtered or unexported fields
}

func NewDeploymentCollection

func NewDeploymentCollection(project *DeploymentProject, images *Images, inclusion *utils.Inclusion, renderDir string, forSeal bool) (*DeploymentCollection, error)

func (*DeploymentCollection) FindRenderedImages

func (c *DeploymentCollection) FindRenderedImages() map[k8s2.ObjectRef][]string

func (*DeploymentCollection) LocalObjectRefs

func (c *DeploymentCollection) LocalObjectRefs() []k8s2.ObjectRef

func (*DeploymentCollection) LocalObjectsByRef

func (c *DeploymentCollection) LocalObjectsByRef() map[k8s2.ObjectRef]bool

func (*DeploymentCollection) Prepare

func (c *DeploymentCollection) Prepare(k *k8s.K8sCluster) error

func (*DeploymentCollection) RenderDeployments

func (c *DeploymentCollection) RenderDeployments(k *k8s.K8sCluster) error

type DeploymentItem

type DeploymentItem struct {
	Project   *DeploymentProject
	Inclusion *utils.Inclusion
	Config    *types.DeploymentItemConfig

	// These values come from the metadata of the kustomization.yml
	Barrier       bool
	WaitReadiness bool

	Objects []*uo.UnstructuredObject

	RelToProjectItemDir string
	// contains filtered or unexported fields
}

func NewDeploymentItem

func NewDeploymentItem(project *DeploymentProject, collection *DeploymentCollection, config *types.DeploymentItemConfig, dir *string, index int) (*DeploymentItem, error)

func (*DeploymentItem) CheckInclusionForDeploy

func (di *DeploymentItem) CheckInclusionForDeploy() bool

type DeploymentProject

type DeploymentProject struct {
	VarsCtx *jinja2.VarsCtx

	SealedSecretsDir string

	Config types.DeploymentProjectConfig
	// contains filtered or unexported fields
}

func NewDeploymentProject

func NewDeploymentProject(k *k8s.K8sCluster, varsCtx *jinja2.VarsCtx, dir string, sealedSecretsDir string, parentProject *DeploymentProject) (*DeploymentProject, error)

func (*DeploymentProject) GetCommonLabels

func (p *DeploymentProject) GetCommonLabels() map[string]string

func (*DeploymentProject) GetIgnoreForDiffs

func (p *DeploymentProject) GetIgnoreForDiffs(ignoreTags, ignoreLabels, ignoreAnnotations bool) []*types.IgnoreForDiffItemConfig

func (*DeploymentProject) MergeSecretsIntoAllChildren

func (p *DeploymentProject) MergeSecretsIntoAllChildren(vars *uo.UnstructuredObject)

type Images

type Images struct {
	// contains filtered or unexported fields
}

func NewImages

func NewImages(updateImages bool) (*Images, error)

func (*Images) AddFixedImage

func (images *Images) AddFixedImage(fi types.FixedImage)

func (*Images) GetFixedImage

func (images *Images) GetFixedImage(image string, namespace string, deployment string, container string) *string

func (*Images) GetLatestImageFromRegistry

func (images *Images) GetLatestImageFromRegistry(image string, latestVersion string) (*string, error)

func (*Images) ResolvePlaceholders

func (images *Images) ResolvePlaceholders(k *k8s.K8sCluster, o *uo.UnstructuredObject, deploymentDir string, tags []string) error

func (*Images) SeenImages

func (images *Images) SeenImages(simple bool) []types.FixedImage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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