-
Notifications
You must be signed in to change notification settings - Fork 90
/
helm_app.go
42 lines (34 loc) · 1 KB
/
helm_app.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
package types
import (
"time"
appstatetypes "github.com/replicatedhq/kots/pkg/appstate/types"
kotsv1beta1 "github.com/replicatedhq/kotskinds/apis/kots/v1beta1"
helmrelease "helm.sh/helm/v3/pkg/release"
)
type HelmApp struct {
Release helmrelease.Release
Labels map[string]string
Version int64 // populated from labels
Namespace string
IsConfigurable bool
ChartPath string
CreationTimestamp time.Time
Status appstatetypes.AppStatus
// TODO: This is values the user is editing on the Config screen. This is a temporary solution while we figure out the UX.
TempConfigValues map[string]kotsv1beta1.ConfigValue
}
func (a *HelmApp) GetID() string {
return a.Release.Name
}
func (a *HelmApp) GetSlug() string {
return a.Release.Name
}
func (a *HelmApp) GetCurrentSequence() int64 {
return a.Version
}
func (a *HelmApp) GetIsAirgap() bool {
return false // no airgap support yet
}
func (a *HelmApp) GetNamespace() string {
return a.Namespace
}