Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for sortBy (0.18 sec)

  1. 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)
  2. 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)
  3. istioctl/pkg/writer/envoy/configdump/ecds.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package configdump
    
    import (
    	"fmt"
    	"sort"
    	"strings"
    	"text/tabwriter"
    
    	core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. istioctl/pkg/writer/envoy/clusters/clusters.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package clusters
    
    import (
    	"encoding/json"
    	"fmt"
    	"io"
    	"sort"
    	"strconv"
    	"strings"
    	"text/tabwriter"
    
    	admin "github.com/envoyproxy/go-control-plane/envoy/admin/v3"
    	core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
    	"sigs.k8s.io/yaml"
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 5.8K bytes
    - Viewed (0)
  10. 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)
Back to top