Documentation ¶
Index ¶
- Constants
- func GetAutoPromotionEnabledOrDefault(rollout *v1alpha1.Rollout) bool
- func GetCanaryIngressAnnotationPrefixOrDefault(rollout *v1alpha1.Rollout) string
- func GetConsecutiveErrorLimitOrDefault(metric *v1alpha1.Metric) int32
- func GetExperimentProgressDeadlineSecondsOrDefault(e *v1alpha1.Experiment) int32
- func GetMaxSurgeOrDefault(rollout *v1alpha1.Rollout) *intstr.IntOrString
- func GetMaxUnavailableOrDefault(rollout *v1alpha1.Rollout) *intstr.IntOrString
- func GetProgressDeadlineSecondsOrDefault(rollout *v1alpha1.Rollout) int32
- func GetReplicasOrDefault(replicas *int32) int32
- func GetRevisionHistoryLimitOrDefault(rollout *v1alpha1.Rollout) int32
- func GetScaleDownDelaySecondsOrDefault(rollout *v1alpha1.Rollout) int32
- func Namespace() string
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 = "25" // 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 // DefaultConsecutiveErrorLimit is the default number times a metric can error in sequence before // erroring the entire metric. DefaultConsecutiveErrorLimit int32 = 4 )
View Source
const ( DefaultAmbassadorVersion = "v2" DefaultIstioVersion = "v1alpha3" DefaultSMITrafficSplitVersion = "v1alpha1" )
Variables ¶
This section is empty.
Functions ¶
func GetAutoPromotionEnabledOrDefault ¶ added in v0.4.0
func GetCanaryIngressAnnotationPrefixOrDefault ¶ added in v0.8.0
func GetConsecutiveErrorLimitOrDefault ¶ added in v0.8.0
func GetExperimentProgressDeadlineSecondsOrDefault ¶ added in v0.5.0
func GetExperimentProgressDeadlineSecondsOrDefault(e *v1alpha1.Experiment) int32
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 GetReplicasOrDefault ¶ added in v0.6.0
GetReplicasOrDefault returns the deferenced number of replicas or the default number
func GetRevisionHistoryLimitOrDefault ¶
GetRevisionHistoryLimitOrDefault returns the specified number of replicas in a rollout or the default number
func GetScaleDownDelaySecondsOrDefault ¶ added in v0.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.