Documentation ¶
Index ¶
- Constants
- type DeploymentCollection
- func (c *DeploymentCollection) CalcObjectsHash() (string, error)
- func (c *DeploymentCollection) FindRenderedImages() map[k8s2.ObjectRef][]string
- func (c *DeploymentCollection) LocalObjectRefs() []k8s2.ObjectRef
- func (c *DeploymentCollection) LocalObjects() []*uo.UnstructuredObject
- func (c *DeploymentCollection) LocalObjectsByRef() map[k8s2.ObjectRef]*uo.UnstructuredObject
- func (c *DeploymentCollection) Prepare() error
- func (c *DeploymentCollection) RenderDeployments() error
- type DeploymentItem
- type DeploymentProject
- func (p *DeploymentProject) CheckWhenTrue() (bool, error)
- func (p *DeploymentProject) GetCommonAnnotations() map[string]string
- func (p *DeploymentProject) GetCommonLabels() map[string]string
- func (p *DeploymentProject) GetConflictResolutionConfigs() []types.ConflictResolutionConfig
- func (p *DeploymentProject) GetIgnoreForDiffs(ignoreTags, ignoreLabels, ignoreAnnotations, ignoreKluctlMetadata bool) []types.IgnoreForDiffItemConfig
- type Images
- func (images *Images) AddFixedImage(fi types.FixedImage)
- func (images *Images) FindPlaceholders(o *uo.UnstructuredObject) ([]placeHolder, error)
- func (images *Images) FixedImages() []types.FixedImage
- func (images *Images) PrependFixedImages(fis []types.FixedImage)
- func (images *Images) ResolvePlaceholders(ctx context.Context, k *k8s.K8sCluster, o *uo.UnstructuredObject, ...) error
- func (images *Images) SeenImages(simple bool) []types.FixedImage
- type SharedContext
- type Source
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 (*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 {}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.