Skip to content

Commit

Permalink
Increase retry timeout in Inject BTP Operator Credentials step (kyma-…
Browse files Browse the repository at this point in the history
…project#1188)

Increase timeout and fix logger error call
  • Loading branch information
szwedm authored Sep 26, 2024
1 parent 9c77dab commit f52471b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import (

const (
updateSecretBackoff = 10 * time.Second
retryInterval = 5 * time.Second
retryTimeout = 2 * time.Minute
)

type K8sClientProvider interface {
Expand Down Expand Up @@ -47,8 +49,8 @@ func (s *InjectBTPOperatorCredentialsStep) Run(operation internal.Operation, log
k8sClient, err := s.k8sClientProvider.K8sClientForRuntimeID(operation.RuntimeID)

if err != nil {
log.Error("kubernetes client not set: %w", err)
return s.operationManager.RetryOperation(operation, "unable to get K8S client", err, 5*time.Second, 30*time.Second, log)
log.Errorf("kubernetes client not set: %w", err)
return s.operationManager.RetryOperation(operation, "unable to get K8S client", err, retryInterval, retryTimeout, log)
}

clusterID := operation.InstanceDetails.ServiceManagerClusterID
Expand Down

0 comments on commit f52471b

Please sign in to comment.