Skip to content

Commit

Permalink
azurepathfix: don't requeue when azure storage isn't configured
Browse files Browse the repository at this point in the history
  • Loading branch information
flavianmissi committed Oct 18, 2024
1 parent 58a78e9 commit 163815b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/operator/azurepathfixcontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ func (c *AzurePathFixController) sync() error {
}

azureStorage := imageRegistryConfig.Status.Storage.Azure
if azureStorage == nil || len(azureStorage.AccountName) == 0 {
return fmt.Errorf("storage account not yet provisioned")
}
if azureStorage == nil || len(azureStorage.Container) == 0 {
return fmt.Errorf("storage container not yet provisioned")
if azureStorage == nil || len(azureStorage.AccountName) == 0 || len(azureStorage.Container) == 0 {
// no need to reque when azure storage isn't configured.
// this allows customers to use pvc or even emptyDir in azure
// without getting error messages in loop in the operator logs.
return nil
}

// the move-blobs cmd does not work on Azure Stack Hub. Users on ASH
Expand Down

0 comments on commit 163815b

Please sign in to comment.