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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
func GetAmbassadorAPIVersion() string
func GetAnalysisRunSuccessfulHistoryLimitOrDefault ¶ added in v1.1.0
GetAnalysisRunSuccessfulHistoryLimitOrDefault returns the specified number of succeed AnalysisRuns to keep or the default number
func GetAnalysisRunUnsuccessfulHistoryLimitOrDefault ¶ added in v1.1.0
GetAnalysisRunUnsuccessfulHistoryLimitOrDefault returns the specified number of failed AnalysisRuns to keep or the default number
func GetAppMeshCRDVersion ¶ added in v1.2.0
func GetAppMeshCRDVersion() string
func GetAutoPromotionEnabledOrDefault ¶ added in v0.4.0
func GetCanaryIngressAnnotationPrefixOrDefault ¶ added in v0.8.0
func GetConsecutiveErrorLimitOrDefault ¶ added in v0.8.0
func GetDescribeTagsLimit ¶ added in v1.4.1
func GetDescribeTagsLimit() int
GetDescribeTagsLimit returns limit of resources can be requested in a single call
func GetExperimentProgressDeadlineSecondsOrDefault ¶ added in v0.5.0
func GetExperimentProgressDeadlineSecondsOrDefault(e *v1alpha1.Experiment) int32
func GetExperimentScaleDownDelaySecondsOrDefault ¶ added in v1.1.0
func GetExperimentScaleDownDelaySecondsOrDefault(e *v1alpha1.Experiment) int32
func GetIstioAPIVersion ¶ added in v1.1.0
func GetIstioAPIVersion() string
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 GetMetricCleanupDelaySeconds ¶ added in v1.3.0
GetMetricCleanupDelaySeconds returns the duration to delay the cleanup of metrics
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 GetRolloutVerifyRetryInterval ¶ added in v1.1.0
func GetSMIAPIVersion ¶ added in v1.1.0
func GetSMIAPIVersion() string
func GetScaleDownDelaySecondsOrDefault ¶ added in v0.3.0
func GetStringOrDefault ¶ added in v1.4.0
func GetTargetGroupBindingAPIVersion ¶ added in v1.1.0
func GetTargetGroupBindingAPIVersion() string
func GetTraefikAPIGroup ¶ added in v1.7.0
func GetTraefikAPIGroup() string
func GetTraefikVersion ¶ added in v1.7.0
func GetTraefikVersion() string
func SetAmbassadorAPIVersion ¶ added in v1.1.0
func SetAmbassadorAPIVersion(apiVersion string)
func SetAppMeshCRDVersion ¶ added in v1.2.0
func SetAppMeshCRDVersion(apiVersion string)
func SetDescribeTagsLimit ¶ added in v1.4.1
func SetDescribeTagsLimit(limit int)
SetDescribeTagsLimit sets the limit of resources can be requested in a single call
func SetIstioAPIVersion ¶ added in v1.1.0
func SetIstioAPIVersion(apiVersion string)
func SetMetricCleanupDelaySeconds ¶ added in v1.3.0
func SetMetricCleanupDelaySeconds(seconds int32)
SetMetricCleanupDelaySeconds sets the metric cleanup delay in seconds
func SetSMIAPIVersion ¶ added in v1.1.0
func SetSMIAPIVersion(apiVersion string)
func SetTargetGroupBindingAPIVersion ¶ added in v1.1.0
func SetTargetGroupBindingAPIVersion(apiVersion string)
func SetTraefikAPIGroup ¶ added in v1.7.0
func SetTraefikAPIGroup(apiGroup string)
func SetTraefikVersion ¶ added in v1.7.0
func SetTraefikVersion(apiVersion string)
func SetVerifyTargetGroup ¶ added in v1.1.0
func SetVerifyTargetGroup(b bool)
SetDefaultVerifyTargetGroup sets the default setWeight verification when instantiating the reconciler
func VerifyTargetGroup ¶ added in v1.1.0
func VerifyTargetGroup() bool
VerifyTargetGroup returns whether or not we should verify target groups
Types ¶
This section is empty.