release

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLegacyReleaseFromRelease

func NewLegacyReleaseFromRelease(rel *Release) (*helmrelease.Release, error)

func NewReleaseStorage added in v1.2.0

func NewReleaseStorage(ctx context.Context, namespace, storageDriver string, opts ReleaseStorageOptions) (*helmstorage.Storage, error)

func ReleaseUpToDate

func ReleaseUpToDate(oldRel, newRel *Release) (bool, error)

Types

type BuildHistoriesOptions added in v1.5.0

type BuildHistoriesOptions struct {
	DiscoveryClient discovery.CachedDiscoveryInterface
	Mapper          meta.ResettableRESTMapper
}

type Historier

type Historier interface {
	Release(revision int) (rel *Release, found bool, err error)
	Releases() ([]*Release, error)
	LastRelease() (rel *Release, found bool, err error)
	LastDeployedRelease() (rel *Release, found bool, err error)
	Empty() bool
	CreateRelease(ctx context.Context, rel *Release) error
	UpdateRelease(ctx context.Context, rel *Release) error
	DeleteRelease(ctx context.Context, rel *Release) error
}

type History

type History struct {
	// contains filtered or unexported fields
}

func BuildHistories added in v1.5.0

func BuildHistories(historyStorage LegacyStorage, opts BuildHistoriesOptions) ([]*History, error)

func NewHistory

func NewHistory(releaseName, releaseNamespace string, historyStorage LegacyStorage, opts HistoryOptions) (*History, error)

FIXME(ilya-lesikov): not completely thread-safe, h.legacyRelease can be read while modified

func (*History) CreateRelease

func (h *History) CreateRelease(ctx context.Context, rel *Release) error

func (*History) DeleteRelease added in v1.5.0

func (h *History) DeleteRelease(ctx context.Context, rel *Release) error

func (*History) Empty

func (h *History) Empty() bool

func (*History) LastDeployedRelease

func (h *History) LastDeployedRelease() (rel *Release, found bool, err error)

Get last successfully deployed release since last attempt to uninstall release or from the beginning of history.

func (*History) LastDeployedReleaseExceptLastRelease

func (h *History) LastDeployedReleaseExceptLastRelease() (rel *Release, found bool, err error)

Get last successfully deployed release since last attempt to uninstall release or from the beginning of history, except the very last release.

func (*History) LastRelease

func (h *History) LastRelease() (rel *Release, found bool, err error)

func (*History) Release

func (h *History) Release(revision int) (rel *Release, found bool, err error)

func (*History) Releases added in v1.5.0

func (h *History) Releases() ([]*Release, error)

func (*History) UpdateRelease

func (h *History) UpdateRelease(ctx context.Context, rel *Release) error

type HistoryOptions

type HistoryOptions struct {
	Mapper          meta.ResettableRESTMapper
	DiscoveryClient discovery.CachedDiscoveryInterface
}

type LegacyStorage

type LegacyStorage 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)
}

type Release

type Release struct {
	// contains filtered or unexported fields
}

func NewRelease

func NewRelease(name, namespace string, revision int, overrideValues map[string]interface{}, legacyChart *chart.Chart, hookResources []*resource.HookResource, generalResources []*resource.GeneralResource, notes string, opts ReleaseOptions) (*Release, error)

func NewReleaseFromLegacyRelease

func NewReleaseFromLegacyRelease(legacyRelease *helmrelease.Release, opts ReleaseFromLegacyReleaseOptions) (*Release, error)

func (*Release) AppVersion

func (r *Release) AppVersion() string

func (*Release) ChartName

func (r *Release) ChartName() string

func (*Release) ChartVersion

func (r *Release) ChartVersion() string

func (*Release) Fail

func (r *Release) Fail()

func (*Release) Failed

func (r *Release) Failed() bool

func (*Release) FirstDeployed

func (r *Release) FirstDeployed() time.Time

func (*Release) GeneralResources

func (r *Release) GeneralResources() []*resource.GeneralResource

func (*Release) HookResources

func (r *Release) HookResources() []*resource.HookResource

func (*Release) HumanID

func (r *Release) HumanID() string

func (*Release) ID

func (r *Release) ID() string

func (*Release) InfoAnnotations

func (r *Release) InfoAnnotations() map[string]string

func (*Release) Labels added in v1.4.0

func (r *Release) Labels() map[string]string

func (*Release) LastDeployed

func (r *Release) LastDeployed() time.Time

func (*Release) LegacyChart

func (r *Release) LegacyChart() *chart.Chart

func (*Release) Name

func (r *Release) Name() string

func (*Release) Namespace

func (r *Release) Namespace() string

func (*Release) Notes

func (r *Release) Notes() string

func (*Release) OverrideValues added in v1.4.1

func (r *Release) OverrideValues() map[string]interface{}

func (*Release) Pend

func (r *Release) Pend(deployType common.DeployType)

func (*Release) Revision

func (r *Release) Revision() int

func (*Release) Skip

func (r *Release) Skip()

func (*Release) Status

func (r *Release) Status() helmrelease.Status

func (*Release) Succeed

func (r *Release) Succeed()

func (*Release) Succeeded

func (r *Release) Succeeded() bool

func (*Release) Supersede

func (r *Release) Supersede()

func (*Release) Uninstall added in v1.5.0

func (r *Release) Uninstall()

type ReleaseFromLegacyReleaseOptions

type ReleaseFromLegacyReleaseOptions struct {
	Mapper          meta.ResettableRESTMapper
	DiscoveryClient discovery.CachedDiscoveryInterface
}

type ReleaseOptions

type ReleaseOptions struct {
	FirstDeployed   time.Time
	InfoAnnotations map[string]string
	Labels          map[string]string
	LastDeployed    time.Time
	Mapper          meta.ResettableRESTMapper
	Status          helmrelease.Status
}

type ReleaseStorageOptions added in v1.2.0

type ReleaseStorageOptions struct {
	HistoryLimit        int
	StaticClient        *kubernetes.Clientset
	SQLConnectionString string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL