d8updater

package
v1.60.7 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeckhouseUpdater

func NewDeckhouseUpdater(input *go_hook.HookInput, mode string, data updater.DeckhouseReleaseData,
	podIsReady, isBootstrapping bool) (*updater.Updater[*DeckhouseRelease], error)

Types

type DeckhouseRelease

type DeckhouseRelease struct {
	Name    string
	Version *semver.Version

	ManuallyApproved bool
	AnnotationFlags  DeckhouseReleaseAnnotationsFlags

	Requirements  map[string]string
	ChangelogLink string
	Disruptions   []string
	ApplyAfter    *metav1.Time
	CooldownUntil *metav1.Time

	Status v1alpha1.DeckhouseReleaseStatus // don't set transition time here to avoid snapshot overload
}

func (*DeckhouseRelease) GetApplyAfter added in v1.60.0

func (d *DeckhouseRelease) GetApplyAfter() *time.Time

func (*DeckhouseRelease) GetApplyNow added in v1.60.0

func (d *DeckhouseRelease) GetApplyNow() bool

func (*DeckhouseRelease) GetApprovedStatus added in v1.60.0

func (d *DeckhouseRelease) GetApprovedStatus() bool
func (d *DeckhouseRelease) GetChangelogLink() string

func (*DeckhouseRelease) GetCooldownUntil added in v1.60.0

func (d *DeckhouseRelease) GetCooldownUntil() *time.Time

func (*DeckhouseRelease) GetDisruptionApproved added in v1.60.0

func (d *DeckhouseRelease) GetDisruptionApproved() bool

func (*DeckhouseRelease) GetDisruptions added in v1.60.0

func (d *DeckhouseRelease) GetDisruptions() []string

func (*DeckhouseRelease) GetForce added in v1.60.0

func (d *DeckhouseRelease) GetForce() bool

func (*DeckhouseRelease) GetManuallyApproved added in v1.60.0

func (d *DeckhouseRelease) GetManuallyApproved() bool

func (*DeckhouseRelease) GetMessage added in v1.60.0

func (d *DeckhouseRelease) GetMessage() string

func (*DeckhouseRelease) GetName added in v1.60.0

func (d *DeckhouseRelease) GetName() string

func (*DeckhouseRelease) GetPhase added in v1.60.0

func (d *DeckhouseRelease) GetPhase() string

func (*DeckhouseRelease) GetRequirements added in v1.60.0

func (d *DeckhouseRelease) GetRequirements() map[string]string

func (*DeckhouseRelease) GetSuspend added in v1.60.0

func (d *DeckhouseRelease) GetSuspend() bool

func (*DeckhouseRelease) GetVersion added in v1.60.0

func (d *DeckhouseRelease) GetVersion() *semver.Version

func (*DeckhouseRelease) SetApprovedStatus added in v1.60.0

func (d *DeckhouseRelease) SetApprovedStatus(val bool)

type DeckhouseReleaseAnnotationsFlags

type DeckhouseReleaseAnnotationsFlags struct {
	Suspend            bool
	Force              bool
	ApplyNow           bool
	DisruptionApproved bool
	NotificationShift  bool // time shift by the notification process
}

type StatusPatch

type StatusPatch v1alpha1.DeckhouseReleaseStatus

func (StatusPatch) MarshalJSON

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

type ValueSettings added in v1.60.0

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

func (*ValueSettings) GetDisruptionApprovalMode added in v1.60.0

func (v *ValueSettings) GetDisruptionApprovalMode() (string, bool)

Jump to

Keyboard shortcuts

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