Skip to content

Commit

Permalink
remove old function definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
limhawjia committed Jul 14, 2023
1 parent a055a59 commit 7ce0e2e
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions pkg/controllers/util/federatedinformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,28 +289,6 @@ func NewFederatedInformer(
return federatedInformer, err
}

func IsClusterReady(clusterStatus *fedcorev1a1.FederatedClusterStatus) bool {
for _, condition := range clusterStatus.Conditions {
if condition.Type == fedcorev1a1.ClusterReady {
if condition.Status == corev1.ConditionTrue {
return true
}
}
}
return false
}

func IsClusterJoined(clusterStatus *fedcorev1a1.FederatedClusterStatus) bool {
for _, condition := range clusterStatus.Conditions {
if condition.Type == fedcorev1a1.ClusterJoined {
if condition.Status == corev1.ConditionTrue {
return true
}
}
}
return false
}

type informer struct {
controller cache.Controller
store cache.Store
Expand Down

0 comments on commit 7ce0e2e

Please sign in to comment.