defaulter

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package defaulter is an interface for setting default values for a resource.

Package defaulter sets default values for the fleet resources.

Index

Constants

View Source
const (
	// DefaultMaxUnavailableValue is the default value of MaxUnavailable in the rolling update config.
	DefaultMaxUnavailableValue = "25%"

	// DefaultMaxSurgeValue is the default value of MaxSurge in the rolling update config.
	DefaultMaxSurgeValue = "25%"

	// DefaultUnavailablePeriodSeconds is the default period of time we consider a newly applied workload as unavailable.
	DefaultUnavailablePeriodSeconds = 60

	// DefaultMaxSkewValue is the default degree to which resources may be unevenly distributed.
	DefaultMaxSkewValue = 1

	// DefaultRevisionHistoryLimitValue is the default value of RevisionHistoryLimit.
	DefaultRevisionHistoryLimitValue = 10
)

Variables

This section is empty.

Functions

func SetDefaultsClusterResourcePlacement added in v0.9.7

func SetDefaultsClusterResourcePlacement(obj *fleetv1beta1.ClusterResourcePlacement)

SetDefaultsClusterResourcePlacement sets the default values for ClusterResourcePlacement.

func SetDefaultsWork

func SetDefaultsWork(w *placementv1beta1.Work)

SetDefaultsWork sets the default values for the Work resource.

Types

This section is empty.

Jump to

Keyboard shortcuts

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