forked from hyperledger-labs/fabric-operator
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
n1 := ¤t.NetworkList{}
_ = c.List(context.TODO(), n1)
for i, u := range n1.Items {
log.Info(fmt.Sprintf("full %d, name:%s, label:%s", i, u.Name, u.Labels))
}
selector := labels.SelectorFromSet(map[string]string{"bestchains.network.federation": "federation-sample"})
n2 := ¤t.NetworkList{}
_ = c.List(context.TODO(), n2, &client.ListOptions{LabelSelector: selector})The phenomenon is that n1 does query a network, and the label contains bestchains.network.federation: federation-sample, but n2 does not query the result.