Documentation
¶
Index ¶
- Constants
- Variables
- func DeployHelmChart(chartPath, releaseName, namespace string, opts ChartOptions) error
- func Init(...) error
- func Lint(out io.Writer, chartPath, namespace string, values, set, setString []string, ...) error
- func LintChartfileRules(linter *support.Linter)
- func PurgeHelmRelease(releaseName, namespace string, withNamespace bool) error
- func ReleaseInstall(out io.Writer, chartPath, releaseName, namespace string, ...) error
- func ReleaseRollback(out io.Writer, releaseName string, revision int32, opts ReleaseRollbackOptions) error
- func ReleaseUpdate(out io.Writer, chartPath, releaseName string, values, set, setString []string, ...) error
- func Render(out io.Writer, chartPath, releaseName, namespace string, ...) error
- func WithExtra(extraAnnotations, extraLabels map[string]string, f func() error) error
- type ChartOptions
- type ChartTemplates
- func (templates ChartTemplates) ByKind(kind string) []Template
- func (templates ChartTemplates) DaemonSets() []Template
- func (templates ChartTemplates) Deployments() []Template
- func (templates ChartTemplates) Jobs() []Template
- func (templates ChartTemplates) Pods() []Template
- func (templates ChartTemplates) StatefulSets() []Template
- type ChartValuesOptions
- type LintOptions
- type ReleaseInstallOptions
- type ReleaseRollbackOptions
- type ReleaseState
- type ReleaseUpdateOptions
- type RenderOptions
- type ResourcesWaiter
- type Template
- type TrackAnno
- type WerfEngine
Constants ¶
View Source
const ( TrackAnnoName = "werf.io/track" HelmHookAnnoName = "helm.sh/hook" HelmHookWeightAnnoName = "helm.sh/hook-weight" TrackDisabled TrackAnno = "false" TrackTillDone TrackAnno = "till_done" TrackTillReady TrackAnno = "till_ready" )
Variables ¶
View Source
var ( WerfTemplateEngine = NewWerfEngine() WerfTemplateEngineName = "werfGoTpl" DefaultReleaseStorageNamespace = "kube-system" ConfigMapStorage = "configmap" SecretStorage = "secret" ErrNoDeployedReleaseRevisionFound = errors.New("no DEPLOYED release revision found") )
Functions ¶
func DeployHelmChart ¶
func DeployHelmChart(chartPath, releaseName, namespace string, opts ChartOptions) error
func LintChartfileRules ¶
func PurgeHelmRelease ¶
func ReleaseInstall ¶
func ReleaseRollback ¶
func ReleaseUpdate ¶
Types ¶
type ChartOptions ¶
type ChartOptions struct {
Timeout time.Duration
DryRun bool
Debug bool
ChartValuesOptions
}
type ChartTemplates ¶
type ChartTemplates []Template
func GetTemplatesFromChart ¶
func GetTemplatesFromChart(chartPath, releaseName, namespace string, values, set, setString []string) (ChartTemplates, error)
func GetTemplatesFromRevision ¶
func GetTemplatesFromRevision(releaseName string, revision int32) (ChartTemplates, error)
func (ChartTemplates) ByKind ¶
func (templates ChartTemplates) ByKind(kind string) []Template
func (ChartTemplates) DaemonSets ¶
func (templates ChartTemplates) DaemonSets() []Template
func (ChartTemplates) Deployments ¶
func (templates ChartTemplates) Deployments() []Template
func (ChartTemplates) Jobs ¶
func (templates ChartTemplates) Jobs() []Template
func (ChartTemplates) Pods ¶
func (templates ChartTemplates) Pods() []Template
func (ChartTemplates) StatefulSets ¶
func (templates ChartTemplates) StatefulSets() []Template
type ChartValuesOptions ¶
type LintOptions ¶
type LintOptions struct {
Strict bool
}
type ReleaseInstallOptions ¶
type ReleaseInstallOptions struct {
Debug bool
// contains filtered or unexported fields
}
type ReleaseRollbackOptions ¶
type ReleaseRollbackOptions struct {
// contains filtered or unexported fields
}
type ReleaseState ¶
type ReleaseUpdateOptions ¶
type ReleaseUpdateOptions struct {
Debug bool
// contains filtered or unexported fields
}
type RenderOptions ¶
type RenderOptions struct {
ShowNotes bool
}
type ResourcesWaiter ¶
func (*ResourcesWaiter) WaitForResources ¶
func (*ResourcesWaiter) WatchUntilReady ¶
type Template ¶
type Template struct {
Version string `yaml:"apiVersion,omitempty"`
Kind string `yaml:"kind,omitempty"`
Metadata struct {
Name string `yaml:"name,omitempty"`
Namespace string `yaml:"namespace,omitempty"`
Annotations map[string]string `yaml:"annotations,omitempty"`
Labels map[string]string `yaml:"labels,omitempty"`
UID string `yaml:"uid,omitempty"`
OtherFields map[string]interface{} `yaml:",inline"`
} `yaml:"metadata,omitempty"`
Status string `yaml:"status,omitempty"`
OtherFields map[string]interface{} `yaml:",inline"`
}
type WerfEngine ¶
type WerfEngine struct {
*engine.Engine
ExtraAnnotations map[string]string
ExtraLabels map[string]string
}
func NewWerfEngine ¶
func NewWerfEngine() *WerfEngine
Click to show internal directories.
Click to hide internal directories.