- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for sortBy (2.62 sec)
-
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/ztunnelconfig/ztunnelconfig.go
return types.NamespacedName{}, err } pods := slices.Reference(podsr.Items) if len(pods) > 0 { // 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) } sort.Sort(sortBy(pods)) return config.NamespacedName(pods[0]), nil } return types.NamespacedName{}, fmt.Errorf("no pods found") }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed May 01 13:11:40 GMT 2024 - 22.2K bytes - Viewed (0) -
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) -
istioctl/pkg/writer/ztunnel/configdump/workload.go
verifiedWorkloads := make([]*ZtunnelWorkload, 0, len(zDump.Workloads)) for _, wl := range zDump.Workloads { if filter.Verify(wl) { verifiedWorkloads = append(verifiedWorkloads, wl) } } // Sort by name, node sort.Slice(verifiedWorkloads, func(i, j int) bool { in := verifiedWorkloads[i].Namespace + "." + verifiedWorkloads[i].Name jn := verifiedWorkloads[j].Namespace + "." + verifiedWorkloads[j].Name if in != jn {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 23 21:30:30 GMT 2024 - 4K bytes - Viewed (0) -
istioctl/pkg/internaldebug/internal-debug.go
Namespace string InternalDebugAllIstiod bool } func (s *DebugWriter) PrintAll(drs map[string]*discovery.DiscoveryResponse) error { // Gather the statuses before printing so they may be sorted mappedResp := map[string]string{} for id, dr := range drs { for _, resource := range dr.Resources { if s.InternalDebugAllIstiod { mappedResp[id] = string(resource.Value) + "\n" } else {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 04:16:55 GMT 2024 - 6.9K bytes - Viewed (0) -
operator/cmd/mesh/profile-dump.go
// See the License for the specific language governing permissions and // limitations under the License. package mesh import ( "encoding/json" "fmt" "sort" "strings" "github.com/spf13/cobra" "sigs.k8s.io/yaml" "istio.io/istio/operator/pkg/manifest" "istio.io/istio/operator/pkg/tpath" "istio.io/istio/operator/pkg/util"
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 7.1K bytes - Viewed (0) -
manifests/addons/dashboards/istio-performance-dashboard.json
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "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 - 39.6K bytes - Viewed (0) -
istioctl/pkg/checkinject/checkinject.go
// See the License for the specific language governing permissions and // limitations under the License. package checkinject import ( "context" "fmt" "io" "reflect" "sort" "strings" "github.com/fatih/color" "github.com/spf13/cobra" admitv1 "k8s.io/api/admissionregistration/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels"
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 9.3K bytes - Viewed (0)