Documentation
¶
Index ¶
- Constants
- func Apply(template *PrTemplate) error
- type AutomationContract
- type CreateSpec
- type CreateTemplate
- type DeleteSpec
- type Helm
- type ListMerge
- type LuaSpec
- type PrContracts
- type PrContractsSpec
- type PrTemplate
- type PrTemplateSpec
- type RegexReplacement
- type TemplateCopy
- type UpdateSpec
- type VendorSpec
- type YamlOverlay
Constants ¶
View Source
const ( ListMergeAppend = "APPEND" ListMergeOverwrite = "OVERWRITE" )
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(template *PrTemplate) error
Types ¶
type AutomationContract ¶ added in v0.9.16
type CreateSpec ¶
type CreateSpec struct {
ExternalDir string
Templates []*CreateTemplate `json:"templates"`
}
type CreateTemplate ¶ added in v0.8.4
type DeleteSpec ¶ added in v0.9.11
type Helm ¶ added in v0.12.28
type Helm struct {
// The url of the helm repository to use
URL string `json:"url"`
// The name of the chart to use
Chart string `json:"chart"`
// The version of the chart to use
Version string `json:"version"`
// The directory destination to place the chart in
Destination string `json:"destination"`
}
type PrContracts ¶ added in v0.9.16
type PrContracts struct {
ApiVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Metadata map[string]interface{} `json:"metadata"`
Context map[string]interface{} `json:"context"`
Spec PrContractsSpec `json:"spec"`
}
func BuildContracts ¶ added in v0.9.16
func BuildContracts(path string) (*PrContracts, error)
type PrContractsSpec ¶ added in v0.9.16
type PrContractsSpec struct {
Templates *TemplateCopy `json:"templates"`
Workdir string `json:"workdir,omitempty"`
Automations []AutomationContract `json:"automations"`
}
type PrTemplate ¶
type PrTemplate struct {
ApiVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Metadata map[string]interface{} `json:"metadata"`
Context map[string]interface{} `json:"context"`
Spec PrTemplateSpec `json:"spec"`
}
func Build ¶
func Build(path string) (*PrTemplate, error)
func BuildCRD ¶ added in v0.9.16
func BuildCRD(path, contextFile string) (*PrTemplate, error)
type PrTemplateSpec ¶
type PrTemplateSpec struct {
Updates *UpdateSpec `json:"updates"`
Creates *CreateSpec `json:"creates"`
Deletes *DeleteSpec `json:"deletes"`
Lua *LuaSpec `json:"lua"`
Vendor *VendorSpec `json:"vendor"`
}
type RegexReplacement ¶ added in v0.8.6
type TemplateCopy ¶ added in v0.9.16
type UpdateSpec ¶
type UpdateSpec struct {
Regexes []string `json:"regexes"`
Files []string `json:"files"`
ReplaceTemplate string `json:"replaceTemplate"`
Yq string `json:"yq"`
MatchStrategy string `json:"matchStrategy"`
RegexReplacements []RegexReplacement `json:"regexReplacements"`
YamlOverlays []YamlOverlay `json:"yamlOverlays"`
}
type VendorSpec ¶ added in v0.12.28
type VendorSpec struct {
// Specification for vendoring a helm chart
Helm *Helm `json:"helm"`
}
Click to show internal directories.
Click to hide internal directories.