deckhouse_release

package
v1.77.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 60 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDeploymentContainerIsNotFound = errors.New("deployment container is not found")
View Source
var ErrImageIsNil = errors.New("image is nil")
View Source
var ErrImageNotChanged = errors.New("image not changed")
View Source
var ErrPreApplyCheckIsFailed = errors.New("pre apply check is failed")

Functions

func NewDeckhouseReleaseController

func NewDeckhouseReleaseController(ctx context.Context, mgr manager.Manager, dc dependency.Container, exts extenders.IExtendersStack,
	moduleManager moduleManager, updateSettings *helpers.DeckhouseSettingsContainer, metricStorage metricsstorage.Storage,
	preflightCountDown *sync.WaitGroup, deckhouseVersion string, logger *log.Logger,
) error

Types

type DeckhouseReleaseFetcher added in v1.68.2

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

func NewDeckhouseReleaseFetcher added in v1.68.2

func NewDeckhouseReleaseFetcher(cfg *DeckhouseReleaseFetcherConfig) *DeckhouseReleaseFetcher

func (*DeckhouseReleaseFetcher) GetReleaseChannel added in v1.68.2

func (f *DeckhouseReleaseFetcher) GetReleaseChannel() string

func (*DeckhouseReleaseFetcher) GetReleaseImageInfo added in v1.71.0

func (f *DeckhouseReleaseFetcher) GetReleaseImageInfo(ctx context.Context, previousImageHash string) (*ReleaseImageInfo, error)

GetReleaseImageInfo get Image, Digest and release metadata using imageTag with existing registry client return error if version.json not found in metadata return ErrImageNotChanged with ReleaseImageInfo if image hash matches with previousImageHash

type DeckhouseReleaseFetcherConfig added in v1.68.2

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

type MetricsUpdater added in v1.68.0

type MetricsUpdater interface {
	UpdateReleaseMetric(string, releaseUpdater.MetricLabels)
	PurgeReleaseMetric(string)
}

type ReleaseImageInfo added in v1.71.0

type ReleaseImageInfo struct {
	Metadata *ReleaseMetadata
	Image    registryv1.Image
	Digest   registryv1.Hash
}

type ReleaseMetadata added in v1.65.0

type ReleaseMetadata struct {
	Version          string                  `json:"version"`
	Changelog        map[string]interface{}  `json:"-"`
	ModuleDefinition *moduletypes.Definition `json:"module,omitempty"`

	Canary       map[string]canarySettings `json:"canary"`
	Requirements map[string]string         `json:"requirements"`
	Disruptions  map[string][]string       `json:"disruptions"`
	Suspend      bool                      `json:"suspend"`
}

func (*ReleaseMetadata) CalculateReleaseDelay added in v1.68.2

func (m *ReleaseMetadata) CalculateReleaseDelay(channel string, ts metav1.Time, clusterUUID string) *metav1.Time

https://github.com/deckhouse/deckhouse/issues/332

func (*ReleaseMetadata) IsCanaryRelease added in v1.68.2

func (m *ReleaseMetadata) IsCanaryRelease(channel string) bool

type ReleaseUpdateInfo added in v1.73.0

type ReleaseUpdateInfo struct {
	TaskCalculation struct {
		TaskType string `json:"taskType,omitempty"`
		IsPatch  bool   `json:"isPatch"`
		IsMajor  bool   `json:"isMajor"`
		IsFromTo bool   `json:"isFromTo"`
		IsSingle bool   `json:"isSingle"`
		IsLatest bool   `json:"isLatest"`
	} `json:"taskCalculation"`

	UpdatePolicy struct {
		Mode string `json:"mode,omitempty"`
	} `json:"updatePolicy"`

	ForceRelease struct {
		IsForced bool `json:"isForced"`
	} `json:"forceRelease"`

	PodReadiness struct {
		IsReady bool `json:"isReady"`
	} `json:"podReadiness"`

	RequirementsCheck struct {
		RequirementsMet bool `json:"requirementsMet"`
	} `json:"requirementsCheck"`
}

type TimeResult added in v1.68.0

type TimeResult struct {
	*releaseUpdater.ProcessedDeployTimeResult
	Notified bool
}

Jump to

Keyboard shortcuts

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