Documentation
¶
Index ¶
- func IsReleaseUpToDate(oldRel, newRel *helmrelease.Release) (bool, error)
- func NewRelease(name, namespace string, revision int, deployType common.DeployType, ...) (*helmrelease.Release, error)
- func NewReleaseStorage(ctx context.Context, namespace, storageDriver string, ...) (*helmstorage.Storage, error)
- func ReleaseToResourceSpecs(rel *helmrelease.Release, releaseNamespace string, noCleanNullFields bool) ([]*spec.ResourceSpec, error)
- type Historier
- type History
- func (h *History) CreateRelease(ctx context.Context, rel *helmrelease.Release) error
- func (h *History) DeleteRelease(ctx context.Context, name string, revision int) error
- func (h *History) FindAllDeployed() []*helmrelease.Release
- func (h *History) FindRevision(revision int) (rel *helmrelease.Release, found bool)
- func (h *History) Releases() []*helmrelease.Release
- func (h *History) UpdateRelease(ctx context.Context, rel *helmrelease.Release) error
- type HistoryOptions
- type ReleaseOptions
- type ReleaseStorageOptions
- type ReleaseStorager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReleaseUpToDate ¶ added in v1.13.0
func IsReleaseUpToDate(oldRel, newRel *helmrelease.Release) (bool, error)
func NewRelease ¶
func NewRelease(name, namespace string, revision int, deployType common.DeployType, resources []*spec.ResourceSpec, chart *helmchart.Chart, releaseConfig map[string]interface{}, opts ReleaseOptions) (*helmrelease.Release, error)
func NewReleaseStorage ¶ added in v1.2.0
func NewReleaseStorage(ctx context.Context, namespace, storageDriver string, clientFactory kube.ClientFactorier, opts ReleaseStorageOptions) (*helmstorage.Storage, error)
func ReleaseToResourceSpecs ¶ added in v1.13.0
func ReleaseToResourceSpecs(rel *helmrelease.Release, releaseNamespace string, noCleanNullFields bool) ([]*spec.ResourceSpec, error)
Types ¶
type Historier ¶
type Historier interface {
Releases() []*helmrelease.Release
FindAllDeployed() []*helmrelease.Release
FindRevision(revision int) (rel *helmrelease.Release, found bool)
CreateRelease(ctx context.Context, rel *helmrelease.Release) error
UpdateRelease(ctx context.Context, rel *helmrelease.Release) error
DeleteRelease(ctx context.Context, name string, revision int) error
}
type History ¶
type History struct {
// contains filtered or unexported fields
}
func BuildHistories ¶ added in v1.5.0
func BuildHistories(historyStorage ReleaseStorager, opts HistoryOptions) ([]*History, error)
func BuildHistory ¶ added in v1.13.0
func BuildHistory(releaseName string, historyStorage ReleaseStorager, opts HistoryOptions) (*History, error)
func NewHistory ¶
func NewHistory(rels []*helmrelease.Release, releaseName string, historyStorage ReleaseStorager, opts HistoryOptions) *History
func (*History) CreateRelease ¶
func (*History) DeleteRelease ¶ added in v1.5.0
func (*History) FindAllDeployed ¶ added in v1.13.0
func (h *History) FindAllDeployed() []*helmrelease.Release
func (*History) FindRevision ¶ added in v1.13.0
func (h *History) FindRevision(revision int) (rel *helmrelease.Release, found bool)
func (*History) Releases ¶ added in v1.5.0
func (h *History) Releases() []*helmrelease.Release
func (*History) UpdateRelease ¶
type HistoryOptions ¶
type HistoryOptions struct{}
type ReleaseOptions ¶
type ReleaseStorageOptions ¶ added in v1.2.0
type ReleaseStorager ¶ added in v1.13.0
type ReleaseStorager interface {
Create(rls *helmrelease.Release) error
Update(rls *helmrelease.Release) error
Delete(name string, version int) (*helmrelease.Release, error)
Query(labels map[string]string) ([]*helmrelease.Release, error)
}
Click to show internal directories.
Click to hide internal directories.