Documentation ¶
Index ¶
- Constants
- func GetAbortScaleDownDelaySecondsOrDefault(rollout *v1alpha1.Rollout) (*time.Duration, bool)
- func GetAmbassadorAPIVersion() string
- func GetAnalysisRunSuccessfulHistoryLimitOrDefault(rollout *v1alpha1.Rollout) int32
- func GetAnalysisRunUnsuccessfulHistoryLimitOrDefault(rollout *v1alpha1.Rollout) int32
- func GetAppMeshCRDVersion() string
- func GetAutoPromotionEnabledOrDefault(rollout *v1alpha1.Rollout) bool
- func GetCanaryIngressAnnotationPrefixOrDefault(rollout *v1alpha1.Rollout) string
- func GetConsecutiveErrorLimitOrDefault(metric *v1alpha1.Metric) int32
- func GetDescribeTagsLimit() int
- func GetExperimentProgressDeadlineSecondsOrDefault(e *v1alpha1.Experiment) int32
- func GetExperimentScaleDownDelaySecondsOrDefault(e *v1alpha1.Experiment) int32
- func GetIstioAPIVersion() string
- func GetMaxSurgeOrDefault(rollout *v1alpha1.Rollout) *intstr.IntOrString
- func GetMaxUnavailableOrDefault(rollout *v1alpha1.Rollout) *intstr.IntOrString
- func GetMetricCleanupDelaySeconds() time.Duration
- func GetProgressDeadlineSecondsOrDefault(rollout *v1alpha1.Rollout) int32
- func GetReplicasOrDefault(replicas *int32) int32
- func GetRevisionHistoryLimitOrDefault(rollout *v1alpha1.Rollout) int32
- func GetRolloutVerifyRetryInterval() time.Duration
- func GetSMIAPIVersion() string
- func GetScaleDownDelaySecondsOrDefault(rollout *v1alpha1.Rollout) time.Duration
- func GetStringOrDefault(value, defaultValue string) string
- func GetTargetGroupBindingAPIVersion() string
- func GetTraefikAPIGroup() string
- func GetTraefikVersion() string
- func Namespace() string
- func SetAmbassadorAPIVersion(apiVersion string)
- func SetAppMeshCRDVersion(apiVersion string)
- func SetDescribeTagsLimit(limit int)
- func SetIstioAPIVersion(apiVersion string)
- func SetMetricCleanupDelaySeconds(seconds int32)
- func SetSMIAPIVersion(apiVersion string)
- func SetTargetGroupBindingAPIVersion(apiVersion string)
- func SetTraefikAPIGroup(apiGroup string)
- func SetTraefikVersion(apiVersion string)
- func SetVerifyTargetGroup(b bool)
- func VerifyTargetGroup() bool
Constants ¶
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 = "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 )
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" )
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 ¶
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 ¶
GetAnalysisRunSuccessfulHistoryLimitOrDefault returns the specified number of succeed AnalysisRuns to keep or the default number
func GetAnalysisRunUnsuccessfulHistoryLimitOrDefault ¶
GetAnalysisRunUnsuccessfulHistoryLimitOrDefault returns the specified number of failed AnalysisRuns to keep or the default number
func GetAppMeshCRDVersion ¶
func GetAppMeshCRDVersion() string
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 ¶
GetMetricCleanupDelaySeconds returns the duration to delay the cleanup of metrics
func GetReplicasOrDefault ¶
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 GetSMIAPIVersion ¶
func GetSMIAPIVersion() string
func GetStringOrDefault ¶
func GetTargetGroupBindingAPIVersion ¶
func GetTargetGroupBindingAPIVersion() string
func GetTraefikAPIGroup ¶
func GetTraefikAPIGroup() string
func GetTraefikVersion ¶
func GetTraefikVersion() 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.