Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
Signed-off-by: Min Min <[email protected]>
  • Loading branch information
jamsman94 committed Jan 24, 2025
1 parent e740541 commit ed55303
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/microservice/aslan/core/multicluster/service/clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package service

import (
"context"
"encoding/json"
"fmt"
"net/http"
"reflect"
Expand Down Expand Up @@ -1603,13 +1602,6 @@ func GetClusterIRSAInfo(clusterID string, logger *zap.SugaredLogger) (*GetCluste
}

func stsHasImmutableFieldChanged(existing, desired *appsv1.StatefulSet) bool {
a, _ := json.Marshal(existing)
log.Infof("existing: \n %s \n ========================", string(a))
b, _ := json.Marshal(desired)
log.Infof("existing: \n %s \n ========================", string(b))

fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>> identical:", volumeClaimTemplateChanged(existing.Spec.VolumeClaimTemplates, desired.Spec.VolumeClaimTemplates))

// Example check for `volumeClaimTemplates`
return volumeClaimTemplateChanged(existing.Spec.VolumeClaimTemplates, desired.Spec.VolumeClaimTemplates) || !reflect.DeepEqual(existing.Spec.ServiceName, desired.Spec.ServiceName) || !reflect.DeepEqual(existing.Spec.Selector, desired.Spec.Selector)
}
Expand Down

0 comments on commit ed55303

Please sign in to comment.