d8updater

package
v1.67.4 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 16 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(
	ctx context.Context,
	logger *log.Logger,
	client client.Client,
	dc dependency.Container,
	updateSettings *updater.Settings,
	releaseData updater.DeckhouseReleaseData,
	metricStorage *metricstorage.MetricStorage,
	podIsReady,
	clusterBootstrapping bool,
	imagesRegistry string,
	enabledModules []string,
) *updater.Updater[*v1alpha1.DeckhouseRelease]

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) IsKubernetesVersionAutomatic added in v1.67.0

func (api *KubeAPI) IsKubernetesVersionAutomatic(ctx context.Context) (bool, 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(ctx context.Context, 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