Skip to content

Commit

Permalink
remove leftovers debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEnigmaa committed May 22, 2024
1 parent 877f8d4 commit 12ce053
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/monitoring/mimir/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package mimir

import (
"context"
"fmt"

"github.com/go-logr/logr"
"github.com/pkg/errors"
Expand Down Expand Up @@ -140,13 +139,11 @@ func (ms *MimirService) DeleteIngressSecret(ctx context.Context) error {
}
current := &corev1.Secret{}
// Get the current secret if it exists.
fmt.Println("GETTING SECRET")
err := ms.Client.Get(ctx, objectKey, current)
if apierrors.IsNotFound(err) {
// Ignore cases where the secret is not found (if it was manually deleted, for instance).
return nil
} else if err != nil {
fmt.Println("ERROR FINDING SECRET")
return errors.WithStack(err)
}

Expand All @@ -160,7 +157,6 @@ func (ms *MimirService) DeleteIngressSecret(ctx context.Context) error {

err = ms.Client.Delete(ctx, desired)
if err != nil {
fmt.Println("ERROR DELETING SECRET")
return errors.WithStack(err)
}

Expand Down

0 comments on commit 12ce053

Please sign in to comment.