Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for modcap (0.12 sec)

  1. pkg/controller/deployment/recreate_test.go

    	rs.UID = types.UID(uid)
    	return rs
    }
    
    func podMapWithUIDs(uids []string) map[types.UID][]*v1.Pod {
    	podMap := make(map[types.UID][]*v1.Pod)
    	for _, uid := range uids {
    		podMap[types.UID(uid)] = []*v1.Pod{
    			{ /* supposedly a pod */ },
    			{ /* supposedly another pod pod */ },
    		}
    	}
    	return podMap
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. cmd/dependencyverifier/dependencyverifier.go

    					mainModules[first] = true
    					mainModulesList = append(mainModulesList, first)
    				}
    			}
    			modMap[first] = append(modMap[first], second)
    		} else {
    			// skip invalid line
    			log.Printf("!!!invalid line in mod.graph: %s", line)
    			continue
    		}
    	}
    	return mainModulesList, modMap
    }
    
    // difference returns a-b and b-a as sorted lists
    func difference(a, b []string) ([]string, []string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 07 01:48:30 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  3. cni/pkg/repair/repair_test.go

    }
    
    func makePodLabelMap(pods []*corev1.Pod) (podmap map[string]string) {
    	podmap = map[string]string{}
    	for _, pod := range pods {
    		podmap[pod.Name] = ""
    		for key, value := range pod.Labels {
    			podmap[pod.Name] = strings.Join([]string{podmap[pod.Name], fmt.Sprintf("%s=%s", key, value)}, ",")
    		}
    		podmap[pod.Name] = strings.Trim(podmap[pod.Name], " ,")
    	}
    	return
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. src/runtime/slice.go

    	return slice{p, newLen, newcap}
    }
    
    // nextslicecap computes the next appropriate slice length.
    func nextslicecap(newLen, oldCap int) int {
    	newcap := oldCap
    	doublecap := newcap + newcap
    	if newLen > doublecap {
    		return newLen
    	}
    
    	const threshold = 256
    	if oldCap < threshold {
    		return doublecap
    	}
    	for {
    		// Transition from growing 2x for small slices
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. pkg/controller/deployment/deployment_controller_test.go

    	}
    	if got, want := len(podMap[rs1.UID]), 2; got != want {
    		t.Errorf("len(podMap[rs1]) = %v, want %v", got, want)
    	}
    	expect := map[string]struct{}{"rs1-pod": {}, "pod4": {}}
    	for _, pod := range podMap[rs1.UID] {
    		if _, ok := expect[pod.Name]; !ok {
    			t.Errorf("unexpected pod name for rs1: %s", pod.Name)
    		}
    	}
    	if got, want := len(podMap[rs2.UID]), 1; got != want {
    		t.Errorf("len(podMap[rs2]) = %v, want %v", got, want)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  6. pkg/controller/deployment/deployment_controller.go

    		controllerRef := metav1.GetControllerOf(pod)
    		if controllerRef == nil {
    			continue
    		}
    		// Only append if we care about this UID.
    		if _, ok := podMap[controllerRef.UID]; ok {
    			podMap[controllerRef.UID] = append(podMap[controllerRef.UID], pod)
    		}
    	}
    	return podMap, nil
    }
    
    // syncDeployment will sync the deployment with the given key.
    // This function is not meant to be invoked concurrently with the same key.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  7. src/cmd/go/internal/workcmd/vendor.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package workcmd
    
    import (
    	"cmd/go/internal/base"
    	"cmd/go/internal/cfg"
    	"cmd/go/internal/modcmd"
    	"cmd/go/internal/modload"
    	"context"
    )
    
    var cmdVendor = &base.Command{
    	UsageLine: "go work vendor [-e] [-v] [-o outdir]",
    	Short:     "make vendored copy of dependencies",
    	Long: `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 24 18:09:22 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/jpms/compile/CachingAndIncrementalJavaModuleCompileIntegrationTest.groovy

        def "detects change from library to module"() {
            when:
            publishJavaLibrary('moda')
            consumingModuleInfo('requires moda')
            consumingModuleClass('moda.ModaClass')
    
            then:
            fails ':compileJava'
            failure.assertHasErrorOutput 'error: module not found: moda'
    
            when:
            publishJavaModule('moda')
            succeeds ':compileJava'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/jpms/execution/JavaModuleExecutionIntegrationTest.groovy

                application {
                    mainClass.set('consumer.MainModule')
                    mainModule.set('consumer')
                }
            """
            publishJavaModule('moda')
            consumingModuleInfo('requires moda')
            consumingModuleClass('moda.ModaClass')
    
            when:
            succeeds ':run'
    
            then:
            outputContains("Module Name: consumer")
            outputContains("Module Version: 1.0-beta2")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modcmd/init.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // go mod init
    
    package modcmd
    
    import (
    	"cmd/go/internal/base"
    	"cmd/go/internal/modload"
    	"context"
    )
    
    var cmdInit = &base.Command{
    	UsageLine: "go mod init [module-path]",
    	Short:     "initialize new module in current directory",
    	Long: `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 15:51:46 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top