deployment

package
v2.24.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 35 Imported by: 1

Documentation

Index

Constants

View Source
const SealmeExt = ".sealme"

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentCollection

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

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

func NewDeploymentCollection

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

func (*DeploymentCollection) CalcObjectsHash added in v2.20.0

func (c *DeploymentCollection) CalcObjectsHash() (string, error)

func (*DeploymentCollection) FindRenderedImages

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

func (*DeploymentCollection) LocalObjectRefs

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

func (*DeploymentCollection) LocalObjects added in v2.20.0

func (c *DeploymentCollection) LocalObjects() []*uo.UnstructuredObject

func (*DeploymentCollection) LocalObjectsByRef

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

func (*DeploymentCollection) Prepare

func (c *DeploymentCollection) Prepare() error

func (*DeploymentCollection) RenderDeployments

func (c *DeploymentCollection) RenderDeployments() error

type DeploymentItem

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

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

	Objects []*uo.UnstructuredObject
	Tags    *utils.OrderedMap[string, bool]

	RenderedSourceRootDir string
	RelToSourceItemDir    string
	RelToProjectItemDir   string
	RelRenderedDir        string
	RenderedDir           string
	// contains filtered or unexported fields
}

func NewDeploymentItem

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

func (*DeploymentItem) BuildSealedSecretPath added in v2.11.2

func (di *DeploymentItem) BuildSealedSecretPath(relPath string) (string, error)

func (*DeploymentItem) CheckInclusionForDeploy

func (di *DeploymentItem) CheckInclusionForDeploy() bool

func (*DeploymentItem) ListSealedSecrets added in v2.11.2

func (di *DeploymentItem) ListSealedSecrets(subdir string) ([]string, error)

type DeploymentProject

type DeploymentProject struct {
	VarsCtx *vars.VarsCtx

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

func NewDeploymentProject

func NewDeploymentProject(ctx SharedContext, varsCtx *vars.VarsCtx, source Source, relDir string, parentProject *DeploymentProject) (*DeploymentProject, error)

func (*DeploymentProject) CheckWhenTrue added in v2.20.0

func (p *DeploymentProject) CheckWhenTrue() (bool, error)

func (*DeploymentProject) GetCommonAnnotations added in v2.20.0

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

func (*DeploymentProject) GetCommonLabels

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

func (*DeploymentProject) GetConflictResolutionConfigs added in v2.24.0

func (p *DeploymentProject) GetConflictResolutionConfigs() []types.ConflictResolutionConfig

func (*DeploymentProject) GetIgnoreForDiffs

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

type Images

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

func NewImages

func NewImages() (*Images, error)

func (*Images) AddFixedImage

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

func (*Images) FindPlaceholders added in v2.9.0

func (images *Images) FindPlaceholders(o *uo.UnstructuredObject) ([]placeHolder, error)

func (*Images) FixedImages added in v2.20.0

func (images *Images) FixedImages() []types.FixedImage

func (*Images) PrependFixedImages added in v2.14.0

func (images *Images) PrependFixedImages(fis []types.FixedImage)

func (*Images) ResolvePlaceholders

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

func (*Images) SeenImages

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

type SharedContext added in v2.11.2

type SharedContext struct {
	Ctx              context.Context
	K                *k8s.K8sCluster
	K8sVersion       string
	GitRP            *repocache.GitRepoCache
	OciRP            *repocache.OciRepoCache
	SopsDecrypter    *decryptor.Decryptor
	VarsLoader       *vars.VarsLoader
	HelmAuthProvider helm_auth.HelmAuthProvider
	OciAuthProvider  auth_provider.OciAuthProvider

	Discriminator                     string
	RenderDir                         string
	SealedSecretsDir                  string
	DefaultSealedSecretsOutputPattern string
}

type Source added in v2.11.2

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

func NewSource added in v2.11.2

func NewSource(dir string) Source

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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