Skip to content

Commit

Permalink
Hardcode version of barman to reduce overhead - additional backoff ex…
Browse files Browse the repository at this point in the history
…ponential steps
  • Loading branch information
sjuls committed Dec 15, 2023
1 parent ba9fdef commit b9ba934
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions pkg/management/barman/capabilities/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,13 @@ var capabilities *Capabilities
// Detect barman-cloud executables presence and store the Capabilities
// of the barman-cloud version it finds
func Detect() (*Capabilities, error) {
version, err := getBarmanCloudVersion(BarmanCloudWalArchive)
version, err := semver.Parse("3.9.0")
if err != nil {
return nil, err
}

newCapabilities := new(Capabilities)

if version == nil {
log.Info("Missing Barman Cloud installation in the operand image")
return newCapabilities, nil
}

newCapabilities.Version = version
newCapabilities.Version = &version

switch {
case version.GE(semver.Version{Major: 3, Minor: 4}):
Expand Down
2 changes: 1 addition & 1 deletion pkg/management/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var (

// readinessCheckRetry is used to wait until the API server is reachable
readinessCheckRetry = wait.Backoff{
Steps: 5,
Steps: 10,
Duration: 10 * time.Millisecond,
Factor: 5.0,
Jitter: 0.1,
Expand Down

0 comments on commit b9ba934

Please sign in to comment.