Documentation
¶
Index ¶
- Constants
- func CheckRequiredDeployArgs(dir string, varsCtx *jinja2.VarsCtx, deployArgs *uo.UnstructuredObject) error
- func ConvertArgsToVars(args map[string]string) *uo.UnstructuredObject
- func NewHelmChart(configFile string) (*helmChart, error)
- func ParseArgs(argsList []string) (map[string]string, error)
- type DeploymentCollection
- func (c *DeploymentCollection) FindRenderedImages() map[k8s2.ObjectRef][]string
- func (c *DeploymentCollection) LocalObjectRefs() []k8s2.ObjectRef
- func (c *DeploymentCollection) LocalObjectsByRef() map[k8s2.ObjectRef]bool
- func (c *DeploymentCollection) Prepare(k *k8s.K8sCluster) error
- func (c *DeploymentCollection) RenderDeployments(k *k8s.K8sCluster) error
- type DeploymentItem
- type DeploymentProject
- type Images
- func (images *Images) AddFixedImage(fi types.FixedImage)
- func (images *Images) GetFixedImage(image string, namespace string, deployment string, container string) *string
- func (images *Images) GetLatestImageFromRegistry(image string, latestVersion string) (*string, error)
- func (images *Images) ResolvePlaceholders(k *k8s.K8sCluster, o *uo.UnstructuredObject, deploymentDir string, ...) error
- func (images *Images) SeenImages(simple bool) []types.FixedImage
Constants ¶
View Source
const SealmeExt = ".sealme"
Variables ¶
This section is empty.
Functions ¶
func CheckRequiredDeployArgs ¶
func ConvertArgsToVars ¶
func ConvertArgsToVars(args map[string]string) *uo.UnstructuredObject
func NewHelmChart ¶
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 (*Images) AddFixedImage ¶
func (images *Images) AddFixedImage(fi types.FixedImage)
func (*Images) GetFixedImage ¶
func (*Images) GetLatestImageFromRegistry ¶
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.