Skip to content

Commit

Permalink
issues are fixed, remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
navid.shariaty committed Oct 28, 2023
1 parent 38f14ed commit e0925d8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions k8sutils/agesecret.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"context"
"filippo.io/age"
"filippo.io/age/armor"
"fmt"
"github.com/snapp-incubator/age-operator/api/v1alpha1"
"github.com/snapp-incubator/age-operator/lang"
"io"
Expand Down Expand Up @@ -48,9 +47,7 @@ func finalizeAgeSecret(ageSecret *v1alpha1.AgeSecret, k8sclient client.Client) e
}

func CreateChildFromAgeSecret(ageSecret *v1alpha1.AgeSecret, k8sclient client.Client, rawStringData map[string]string) error {
fmt.Println("---- before ----", ageSecret.GetLabels())
childSecretLabels := cloneLabels(ageSecret.GetLabels())
fmt.Println("---- after ----", childSecretLabels)
childSecretAnnotations := cloneAnnotations(ageSecret.GetAnnotations())
childSecretMetaObj := metav1.ObjectMeta{
Name: ageSecret.GetName(),
Expand Down Expand Up @@ -90,7 +87,6 @@ func CreateOrUpdateSecretObj(ageSecret *v1alpha1.AgeSecret, secret *corev1.Secre
return err
}

fmt.Println("before secret", secret)
if !apiequality.Semantic.DeepEqual(secretToLoad, secret) {
logger.Info("child secret exists but needs to get refreshed")
err = k8sclient.Update(context.Background(), secret)
Expand All @@ -102,8 +98,6 @@ func CreateOrUpdateSecretObj(ageSecret *v1alpha1.AgeSecret, secret *corev1.Secre
return err
}
}
fmt.Println("after secret to load", secretToLoad)
fmt.Println("after secret", secret)
if ageSecret.Status.Health != lang.AgeSecretStatusHealthy {
ageSecret.Status.Health = lang.AgeSecretStatusHealthy
errUpdateHealth := k8sclient.Status().Update(context.Background(), ageSecret)
Expand Down

0 comments on commit e0925d8

Please sign in to comment.