defaults

package
v0.0.0-...-de69368 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: Apache-2.0 Imports: 6 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)
	// DefaultAnalysisRunSuccessfulHistoryLimit default number of successful AnalysisRuns to keep if .Spec.Analysis.SuccessfulRunHistoryLimit is nil
	DefaultAnalysisRunSuccessfulHistoryLimit = int32(5)
	// DefaultAnalysisRunUnsuccessfulHistoryLimit default number of unsuccessful AnalysisRuns to keep if .Spec.Analysis.UnsuccessfulRunHistoryLimit is nil
	DefaultAnalysisRunUnsuccessfulHistoryLimit = int32(5)
	// 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 = "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)
	// DefaultAbortScaleDownDelaySeconds default seconds before scaling down old replicaset after switching services
	DefaultAbortScaleDownDelaySeconds = 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
	// DefaultQPS is the default Queries Per Second (QPS) for client side throttling to the K8s API server
	DefaultQPS float32 = 40.0
	// DefaultBurst is the default value for Burst for client side throttling to the K8s API server
	DefaultBurst int = 80
	// DefaultAwsLoadBalancerPageSize is the default page size used when calling aws to get load balancers by DNS name
	DefaultAwsLoadBalancerPageSize = int32(300)
	// DefaultMetricCleanupDelay is the default time to delay metrics removal upon object removal, gives time for metrics
	// to be collected
	DefaultMetricCleanupDelay = int32(65)
	// DefaultRolloutsConfigMapName is the default name of the ConfigMap that contains the Rollouts controller configuration
	DefaultRolloutsConfigMapName = "argo-rollouts-config"
	// DefaultRolloutPluginFolder is the default location where plugins will be downloaded and/or moved to.
	DefaultRolloutPluginFolder = "plugin-bin"
	// DefaultDescribeTagsLimit is the default number resources (ARNs) in a single call
	DefaultDescribeTagsLimit int = 20
)
View Source
const (
	DefaultAmbassadorAPIGroup           = "getambassador.io"
	DefaultAmbassadorVersion            = "getambassador.io/v2"
	DefaultIstioVersion                 = "v1alpha3"
	DefaultSMITrafficSplitVersion       = "v1alpha1"
	DefaultTargetGroupBindingAPIVersion = "elbv2.k8s.aws/v1beta1"
	DefaultAppMeshCRDVersion            = "v1beta2"
	DefaultTraefikAPIGroup              = "traefik.containo.us"
	DefaultTraefikVersion               = "traefik.containo.us/v1alpha1"
	DefaultApisixAPIGroup               = "apisix.apache.org"
	DefaultApisixVersion                = "apisix.apache.org/v2"
)
View Source
const (
	// EnvVarRolloutVerifyRetryInterval is the interval duration in seconds to requeue a rollout upon errors
	EnvVarRolloutVerifyRetryInterval = "ROLLOUT_VERIFY_RETRY_INTERVAL"
)

Variables

This section is empty.

Functions

func GetAbortScaleDownDelaySecondsOrDefault

func GetAbortScaleDownDelaySecondsOrDefault(rollout *v1alpha1.Rollout) (*time.Duration, bool)

GetAbortScaleDownDelaySecondsOrDefault returns the duration to delay the scale down of the canary/preview ReplicaSet in an abort situation. A nil value indicates it should not scale down at all (abortScaleDownDelaySeconds: 0). A value of 0 indicates it should scale down immediately. Also returns a boolean to indicate if the value was explicitly set.

func GetAmbassadorAPIVersion

func GetAmbassadorAPIVersion() string

func GetAnalysisRunSuccessfulHistoryLimitOrDefault

func GetAnalysisRunSuccessfulHistoryLimitOrDefault(rollout *v1alpha1.Rollout) int32

GetAnalysisRunSuccessfulHistoryLimitOrDefault returns the specified number of succeed AnalysisRuns to keep or the default number

func GetAnalysisRunUnsuccessfulHistoryLimitOrDefault

func GetAnalysisRunUnsuccessfulHistoryLimitOrDefault(rollout *v1alpha1.Rollout) int32

GetAnalysisRunUnsuccessfulHistoryLimitOrDefault returns the specified number of failed AnalysisRuns to keep or the default number

func GetAppMeshCRDVersion

func GetAppMeshCRDVersion() string

func GetAutoPromotionEnabledOrDefault

func GetAutoPromotionEnabledOrDefault(rollout *v1alpha1.Rollout) bool

func GetCanaryIngressAnnotationPrefixOrDefault

func GetCanaryIngressAnnotationPrefixOrDefault(rollout *v1alpha1.Rollout) string

func GetConsecutiveErrorLimitOrDefault

func GetConsecutiveErrorLimitOrDefault(metric *v1alpha1.Metric) int32

func GetDescribeTagsLimit

func GetDescribeTagsLimit() int

GetDescribeTagsLimit returns limit of resources can be requested in a single call

func GetExperimentProgressDeadlineSecondsOrDefault

func GetExperimentProgressDeadlineSecondsOrDefault(e *v1alpha1.Experiment) int32

func GetExperimentScaleDownDelaySecondsOrDefault

func GetExperimentScaleDownDelaySecondsOrDefault(e *v1alpha1.Experiment) int32

func GetIstioAPIVersion

func GetIstioAPIVersion() string

func GetMaxSurgeOrDefault

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

func GetMaxUnavailableOrDefault

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

func GetMetricCleanupDelaySeconds

func GetMetricCleanupDelaySeconds() time.Duration

GetMetricCleanupDelaySeconds returns the duration to delay the cleanup of metrics

func GetProgressDeadlineSecondsOrDefault

func GetProgressDeadlineSecondsOrDefault(rollout *v1alpha1.Rollout) int32

func GetReplicasOrDefault

func GetReplicasOrDefault(replicas *int32) int32

GetReplicasOrDefault returns the deferenced number of replicas or the default number

func GetRevisionHistoryLimitOrDefault

func GetRevisionHistoryLimitOrDefault(rollout *v1alpha1.Rollout) int32

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

func GetRolloutVerifyRetryInterval

func GetRolloutVerifyRetryInterval() time.Duration

func GetSMIAPIVersion

func GetSMIAPIVersion() string

func GetScaleDownDelaySecondsOrDefault

func GetScaleDownDelaySecondsOrDefault(rollout *v1alpha1.Rollout) time.Duration

func GetStringOrDefault

func GetStringOrDefault(value, defaultValue string) string

func GetTargetGroupBindingAPIVersion

func GetTargetGroupBindingAPIVersion() string

func GetTraefikAPIGroup

func GetTraefikAPIGroup() string

func GetTraefikVersion

func GetTraefikVersion() string

func Namespace

func Namespace() string

func SetAmbassadorAPIVersion

func SetAmbassadorAPIVersion(apiVersion string)

func SetAppMeshCRDVersion

func SetAppMeshCRDVersion(apiVersion string)

func SetDescribeTagsLimit

func SetDescribeTagsLimit(limit int)

SetDescribeTagsLimit sets the limit of resources can be requested in a single call

func SetIstioAPIVersion

func SetIstioAPIVersion(apiVersion string)

func SetMetricCleanupDelaySeconds

func SetMetricCleanupDelaySeconds(seconds int32)

SetMetricCleanupDelaySeconds sets the metric cleanup delay in seconds

func SetSMIAPIVersion

func SetSMIAPIVersion(apiVersion string)

func SetTargetGroupBindingAPIVersion

func SetTargetGroupBindingAPIVersion(apiVersion string)

func SetTraefikAPIGroup

func SetTraefikAPIGroup(apiGroup string)

func SetTraefikVersion

func SetTraefikVersion(apiVersion string)

func SetVerifyTargetGroup

func SetVerifyTargetGroup(b bool)

SetDefaultVerifyTargetGroup sets the default setWeight verification when instantiating the reconciler

func VerifyTargetGroup

func VerifyTargetGroup() bool

VerifyTargetGroup returns whether or not we should verify target groups

Types

This section is empty.

Jump to

Keyboard shortcuts

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