Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,476 for Sort (0.04 sec)

  1. pkg/kubelet/volumemanager/volume_manager.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package volumemanager
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"sort"
    	"strconv"
    	"strings"
    	"time"
    
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	"k8s.io/klog/v2"
    	"k8s.io/mount-utils"
    
    	v1 "k8s.io/api/core/v1"
    	k8stypes "k8s.io/apimachinery/pkg/types"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/controlplane/manifests_test.go

    			},
    		},
    	}
    
    	for _, rt := range tests {
    		t.Run(rt.name, func(t *testing.T) {
    			actual := getAPIServerCommand(rt.cfg, rt.endpoint)
    			sort.Strings(actual)
    			sort.Strings(rt.expected)
    			if !reflect.DeepEqual(actual, rt.expected) {
    				errorDiffArguments(t, rt.name, actual, rt.expected)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 03 14:43:47 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery_controller.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 apiserver
    
    import (
    	"fmt"
    	"sort"
    	"time"
    
    	"k8s.io/klog/v2"
    
    	apidiscoveryv2 "k8s.io/api/apidiscovery/v2"
    	autoscaling "k8s.io/api/autoscaling/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/labels"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 21 11:40:03 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/staticpod/utils.go

    		if len(hostname) == 0 {
    			hostname = localhost
    		}
    		// Parse port
    		port := kubeadmconstants.EtcdMetricsPort
    		portStr := parsedURL.Port()
    		if len(portStr) != 0 {
    			p, err := kubeadmutil.ParsePort(portStr)
    			if err == nil {
    				port = p
    			}
    		}
    		return hostname, int32(port), scheme
    	}
    	return localhost, kubeadmconstants.EtcdMetricsPort, v1.URISchemeHTTP
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    		// nop
    	}
    
    	// TODO(adonovan): opt: merge the logic of ast.Inspect() into
    	// the switch above so we can make interleaved callbacks for
    	// both Nodes and Tokens in the right order and avoid the need
    	// to sort.
    	sort.Sort(byPos(children))
    
    	return children
    }
    
    type byPos []ast.Node
    
    func (sl byPos) Len() int {
    	return len(sl)
    }
    func (sl byPos) Less(i, j int) bool {
    	return sl[i].Pos() < sl[j].Pos()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  6. pkg/kubelet/logs/container_log_manager.go

    	return true
    }
    
    // removeExcessLogs removes old logs to make sure there are only at most MaxFiles log files.
    func (c *containerLogManager) removeExcessLogs(logs []string) ([]string, error) {
    	// Sort log files in oldest to newest order.
    	sort.Strings(logs)
    	// Container will create a new log file, and we'll rotate the latest log file.
    	// Other than those 2 files, we can have at most MaxFiles-2 rotated log files.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 15K bytes
    - Viewed (0)
  7. pkg/util/iptree/iptree_test.go

    			in = append(in, k)
    		}
    		out := []netip.Prefix{}
    		for _, s := range test.out {
    			out = append(out, netip.MustParsePrefix(s))
    		}
    
    		// sort by prefix bits to avoid flakes
    		sort.Slice(in, func(i, j int) bool { return in[i].Bits() < in[j].Bits() })
    		sort.Slice(out, func(i, j int) bool { return out[i].Bits() < out[j].Bits() })
    		if !reflect.DeepEqual(in, out) {
    			t.Fatalf("mis-match: %v %v", in, out)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/Quantiles.java

     * Double#NaN NaN}. (This is the one occasion when the behaviour is not the same as you'd get from
     * sorting with {@link java.util.Arrays#sort(double[]) Arrays.sort(double[])} or {@link
     * java.util.Collections#sort(java.util.List) Collections.sort(List&lt;Double&gt;)} and selecting
     * the required value(s). Those methods would sort {@link Double#NaN NaN} as if it is greater than
     * any other value and place them at the end of the dataset, even after {@link
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 29.9K bytes
    - Viewed (0)
  9. src/go/types/typeset.go

    	}
    	assert(!comp || terms.isAll()) // comparable invariant
    	return terms, comp
    }
    
    func sortMethods(list []*Func) {
    	sort.Sort(byUniqueMethodName(list))
    }
    
    func assertSortedMethods(list []*Func) {
    	if !debug {
    		panic("assertSortedMethods called outside debug mode")
    	}
    	if !sort.IsSorted(byUniqueMethodName(list)) {
    		panic("methods not sorted")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  10. cmd/object-api-interface.go

    // WalkVersionsSortOrder represents the sort order in which versions of an
    // object should be returned by ObjectLayer.Walk method
    type WalkVersionsSortOrder uint8
    
    const (
    	// WalkVersionsSortAsc - Sort in ascending order of ModTime
    	WalkVersionsSortAsc WalkVersionsSortOrder = iota
    	// WalkVersionsSortDesc - Sort in descending order of ModTime
    	WalkVersionsSortDesc
    )
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 20:27:52 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top