d8updater

package
v1.66.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IsUpdatingAnnotation = "release.deckhouse.io/isUpdating"
	NotifiedAnnotation   = "release.deckhouse.io/notified"
)

Variables

This section is empty.

Functions

func NewDeckhouseUpdater

func NewDeckhouseUpdater(logger *log.Logger, client client.Client, dc dependency.Container,
	updateSettings *updater.Settings, releaseData updater.DeckhouseReleaseData, metricStorage *metric_storage.MetricStorage,
	podIsReady, clusterBootstrapping bool, imagesRegistry string, enabledModules []string,
) (*updater.Updater[*v1alpha1.DeckhouseRelease], error)

Types

type KubeAPI added in v1.64.0

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

func NewKubeAPI added in v1.64.0

func NewKubeAPI(client client.Client, dc dependency.Container, imagesRegistry string) *KubeAPI

func (*KubeAPI) DeployRelease added in v1.64.0

func (api *KubeAPI) DeployRelease(ctx context.Context, release *v1alpha1.DeckhouseRelease) error

func (*KubeAPI) PatchReleaseAnnotations added in v1.64.0

func (api *KubeAPI) PatchReleaseAnnotations(ctx context.Context, release *v1alpha1.DeckhouseRelease, annotations map[string]any) error

func (*KubeAPI) PatchReleaseApplyAfter added in v1.64.0

func (api *KubeAPI) PatchReleaseApplyAfter(release *v1alpha1.DeckhouseRelease, applyTime time.Time) error

func (*KubeAPI) SaveReleaseData added in v1.64.0

func (api *KubeAPI) SaveReleaseData(ctx context.Context, release *v1alpha1.DeckhouseRelease, data updater.DeckhouseReleaseData) error

func (*KubeAPI) UpdateReleaseStatus added in v1.64.0

func (api *KubeAPI) UpdateReleaseStatus(release *v1alpha1.DeckhouseRelease, msg, phase string) error

type StatusPatch

type StatusPatch v1alpha1.DeckhouseReleaseStatus

func (StatusPatch) MarshalJSON

func (sp StatusPatch) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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