-
Notifications
You must be signed in to change notification settings - Fork 1
/
helm.go
45 lines (41 loc) · 1.36 KB
/
helm.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package helm
// Version defines the helm version
type Version int
const (
V2 Version = 2
V3 = 3
)
type ChartSummary struct {
Name string
ChartVersion string
AppVersion string
Description string
}
// Helmer defines common helm actions used within Jenkins X
type Helmer interface {
SetCWD(dir string)
HelmBinary() string
SetHelmBinary(binary string)
Init(clientOnly bool, serviceAccount string, tillerNamespace string, upgrade bool) error
AddRepo(repo string, URL string) error
RemoveRepo(repo string) error
ListRepos() (map[string]string, error)
UpdateRepo() error
IsRepoMissing(URL string) (bool, error)
RemoveRequirementsLock() error
BuildDependency() error
InstallChart(chart string, releaseName string, ns string, version *string, timeout *int,
values []string, valueFiles []string) error
UpgradeChart(chart string, releaseName string, ns string, version *string, install bool,
timeout *int, force bool, wait bool, values []string, valueFiles []string) error
DeleteRelease(releaseName string, purge bool) error
ListCharts() (string, error)
SearchChartVersions(chart string) ([]string, error)
FindChart() (string, error)
PackageChart() error
StatusRelease(releaseName string) error
StatusReleases() (map[string]string, error)
Lint() (string, error)
Version(tls bool) (string, error)
SearchCharts(filter string) ([]ChartSummary, error)
}