defaults

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultReplicas default number of replicas for a rollout if the .Spec.Replicas is nil
	DefaultReplicas = int32(1)
	// DefaultRevisionHistoryLimit default number of revisions to keep if .Spec.RevisionHistoryLimit is nil
	DefaultRevisionHistoryLimit = int32(10)
	// DefaultMaxSurge default number for the max number of additional pods that can be brought up during a rollout
	DefaultMaxSurge = "25"
	// DefaultMaxUnavailable default number for the max number of unavailable pods during a rollout
	DefaultMaxUnavailable = 0
	// DefaultProgressDeadlineSeconds default number of seconds for the rollout to be making progress
	DefaultProgressDeadlineSeconds = int32(600)
	// DefaultScaleDownDelaySeconds default seconds before scaling down old replicaset after switching services
	DefaultScaleDownDelaySeconds = int32(30)
	// DefaultAutoPromotionEnabled default value for auto promoting a blueGreen strategy
	DefaultAutoPromotionEnabled = true
)

Variables

This section is empty.

Functions

func GetAutoPromotionEnabledOrDefault added in v0.4.0

func GetAutoPromotionEnabledOrDefault(rollout *v1alpha1.Rollout) bool

func GetMaxSurgeOrDefault added in v0.2.0

func GetMaxSurgeOrDefault(rollout *v1alpha1.Rollout) *intstr.IntOrString

func GetMaxUnavailableOrDefault added in v0.2.0

func GetMaxUnavailableOrDefault(rollout *v1alpha1.Rollout) *intstr.IntOrString

func GetProgressDeadlineSecondsOrDefault added in v0.3.0

func GetProgressDeadlineSecondsOrDefault(rollout *v1alpha1.Rollout) int32

func GetRevisionHistoryLimitOrDefault

func GetRevisionHistoryLimitOrDefault(rollout *v1alpha1.Rollout) int32

GetRevisionHistoryLimitOrDefault returns the specified number of replicas in a rollout or the default number

func GetRolloutReplicasOrDefault

func GetRolloutReplicasOrDefault(rollout *v1alpha1.Rollout) int32

GetRolloutReplicasOrDefault returns the specified number of replicas in a rollout or the default number

func GetScaleDownDelaySecondsOrDefault added in v0.3.0

func GetScaleDownDelaySecondsOrDefault(rollout *v1alpha1.Rollout) int32

func GetStrategyType added in v0.3.0

func GetStrategyType(rollout *v1alpha1.Rollout) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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