Documentation
¶
Index ¶
- Constants
- Variables
- func DeployHelmChart(chartPath, releaseName, namespace string, opts HelmChartOptions) error
- func FormatHelmCmdError(stdout, stderr string, err error) error
- func FormatHelmCmdOutput(stdout, stderr string) string
- func HelmCmd(args ...string) (stdout string, stderr string, err error)
- func HelmVersion() (*version.Version, error)
- func PurgeHelmRelease(releaseName string) error
- func ValidateHelmVersion() error
- 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 HelmChartOptions
- type HelmChartValuesOptions
- type ReleaseHistory
- type ReleaseHistoryRecord
- type ReleaseStatus
- type Template
- type TrackAnno
Constants ¶
Variables ¶
View Source
var (
ErrNoDeployedReleaseRevisionFound = errors.New("no DEPLOYED release revision found")
)
View Source
var (
KubeContext string
)
Functions ¶
func DeployHelmChart ¶
func DeployHelmChart(chartPath, releaseName, namespace string, opts HelmChartOptions) error
func FormatHelmCmdError ¶
func FormatHelmCmdOutput ¶
func HelmVersion ¶
func PurgeHelmRelease ¶
func ValidateHelmVersion ¶
func ValidateHelmVersion() error
Types ¶
type ChartTemplates ¶
type ChartTemplates []Template
func GetTemplatesFromChart ¶
func GetTemplatesFromChart(chartPath, releaseName string, set, setString, values []string) (ChartTemplates, error)
func GetTemplatesFromRevision ¶
func GetTemplatesFromRevision(releaseName string, revision int) (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 HelmChartOptions ¶
type HelmChartOptions struct {
Timeout time.Duration
DryRun bool
Debug bool
HelmChartValuesOptions
}
type HelmChartValuesOptions ¶
type ReleaseHistory ¶
type ReleaseHistory []ReleaseHistoryRecord
func GetReleaseHistory ¶
func GetReleaseHistory(releaseName string) (ReleaseHistory, error)
type ReleaseHistoryRecord ¶
type ReleaseStatus ¶
type Template ¶
type Template struct {
Version string `yaml:"apiVersion"`
Kind string `yaml:"kind,omitempty"`
Metadata struct {
Name string `yaml:"name"`
Namespace string `yaml:"namespace"`
Annotations map[string]string `yaml:"annotations"`
UID string `yaml:"uid"`
} `yaml:"metadata,omitempty"`
Status string `yaml:"status,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.