- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 48 for sortBy (0.2 sec)
-
istioctl/pkg/util/handlers/handlers.go
} // We need to pass in a sorter, and the one used by `kubectl logs` is good enough. sortBy := func(pods []*corev1.Pod) sort.Interface { return podutils.ByLogging(pods) } timeout := 2 * time.Second if getFirstPodFunc == nil { getFirstPodFunc = polymorphichelpers.GetFirstPod } pod, _, err := getFirstPodFunc(client, namespace, selector, timeout, sortBy) if err != nil {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Feb 06 15:01:41 GMT 2024 - 6.2K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject.go
func GetFirstPod(client v1.CoreV1Interface, namespace string, selector string) (*corev1.Pod, error) { options := metav1.ListOptions{LabelSelector: selector} sortBy := func(pods []*corev1.Pod) sort.Interface { return sort.Reverse(podutils.ActivePods(pods)) } podList, err := client.Pods(namespace).List(context.TODO(), options) if err != nil { return nil, err }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 29 02:29:02 GMT 2024 - 21.6K bytes - Viewed (0) -
istioctl/pkg/util/handlers/handlers_test.go
return nil, fmt.Errorf("unexpected request") } }), } getFirstPodFunc = func(client corev1client.PodsGetter, namespace string, selector string, timeout time.Duration, sortBy func([]*corev1.Pod) sort.Interface) ( *corev1.Pod, int, error, ) { return attachPod(namespace), 1, nil } for _, tt := range tests { t.Run(strings.Split(tt.name, ".")[0], func(t *testing.T) {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jun 09 18:17:49 GMT 2023 - 6.6K bytes - Viewed (0) -
cni/pkg/repair/repair_test.go
go c.Run(stop) kube.WaitForCacheSync("test", stop, c.queue.HasSynced) assert.EventuallyEqual(t, func() map[string]string { havePods := c.pods.List(metav1.NamespaceAll, klabels.Everything()) slices.SortBy(havePods, func(a *corev1.Pod) string { return a.Name }) return makePodLabelMap(havePods) }, tt.wantLabels) if tt.wantCount > 0 {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Oct 24 03:31:28 GMT 2023 - 10.6K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/ecds.go
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Jan 14 02:41:27 GMT 2023 - 2.6K bytes - Viewed (0) -
istioctl/pkg/util/configdump/listener.go
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package configdump import ( "sort" admin "github.com/envoyproxy/go-control-plane/envoy/admin/v3" listener "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3" v3 "istio.io/istio/pilot/pkg/xds/v3" )
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Nov 03 08:41:32 GMT 2022 - 2.5K bytes - Viewed (1) -
manifests/addons/dashboards/istio-service-dashboard.json
"legend": { "calcs": [], "displayMode": "list", "placement": "right", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "pluginVersion": "10.1.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "${datasource}" },
Json - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Mar 27 03:47:04 GMT 2024 - 111.8K bytes - Viewed (0) -
common/Makefile.common.mk
# help works by looking over all Makefile includes matching `target: ## comment` regex and outputting them help: ## Show this help @egrep -h '^[a-zA-Z_\.-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
Plain Text - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Mar 02 20:07:36 GMT 2024 - 5.9K bytes - Viewed (0) -
manifests/charts/istiod-remote/templates/crd-all.gen.yaml
type: array failoverPriority: description: failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing. items: type: string type: array
Others - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Apr 22 20:20:47 GMT 2024 - 606.1K bytes - Viewed (0) -
bin/diff_yaml.py
changed = 0 for k in sorted(common): if q0[k] != q1[k]: changed += 1 print("## +++ ", args.new) print("## --- ", args.orig) print("## Added:", len(added)) print("## Removed:", len(removed)) print("## Updated:", changed) print("## Unchanged:", len(common) - changed) for k in sorted(added): print("+", k)
Python - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Mar 03 16:14:57 GMT 2021 - 4.5K bytes - Viewed (0)