Skip to content

Commit

Permalink
OCPBUGS-11008: update the cluster transfer interval to 12h (#765)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomáš Remeš <tremes@redhat.com>
  • Loading branch information
openshift-cherrypick-robot and tremes committed Apr 14, 2023
1 parent 4429a61 commit f343a70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ ocm:
scaEndpoint: https://api.openshift.com/api/accounts_mgmt/v1/certificates
scaInterval: "8h"
clusterTransferEndpoint: https://api.openshift.com/api/accounts_mgmt/v1/cluster_transfers/
clusterTransferInterval: "24h"
clusterTransferInterval: "12h"

2 changes: 1 addition & 1 deletion pkg/ocm/clustertransfer/cluster_transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (c *Controller) updatePullSecret(newData []byte) error {
// The exponential backoff is applied only for HTTP errors >= 500.
func (c *Controller) requestClusterTransferWithExponentialBackoff(endpoint string) ([]byte, error) {
bo := wait.Backoff{
Duration: c.configurator.Config().OCMConfig.ClusterTransferInterval / 48, // 30 min as the first waiting
Duration: c.configurator.Config().OCMConfig.ClusterTransferInterval / 24, // 30 min as the first waiting
Factor: 2,
Jitter: 0,
Steps: ocm.OCMAPIFailureCountThreshold,
Expand Down

0 comments on commit f343a70

Please sign in to comment.