Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 155 for Desc (0.03 sec)

  1. pkg/kubelet/metrics/collectors/volume_stats.go

    	podStats, err := collector.statsProvider.ListPodStats(ctx)
    	if err != nil {
    		return
    	}
    	addGauge := func(desc *metrics.Desc, pvcRef *stats.PVCReference, v float64, lv ...string) {
    		lv = append([]string{pvcRef.Namespace, pvcRef.Name}, lv...)
    		ch <- metrics.NewLazyConstMetric(desc, metrics.GaugeValue, v, lv...)
    	}
    	allPVCs := sets.Set[string]{}
    	for _, podStat := range podStats {
    		if podStat.VolumeStats == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. src/cmd/fix/main.go

    	for _, f := range fixes {
    		if f.disabled {
    			fmt.Fprintf(os.Stderr, "\n%s (disabled)\n", f.name)
    		} else {
    			fmt.Fprintf(os.Stderr, "\n%s\n", f.name)
    		}
    		desc := strings.TrimSpace(f.desc)
    		desc = strings.ReplaceAll(desc, "\n", "\n\t")
    		fmt.Fprintf(os.Stderr, "\t%s\n", desc)
    	}
    	os.Exit(2)
    }
    
    func main() {
    	telemetry.Start()
    	flag.Usage = usage
    	flag.Parse()
    	telemetry.Inc("fix/invocations")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. src/crypto/x509/boring_test.go

    		pkey = parent.key
    	} else {
    		pcert = tmpl
    		pkey = key
    	}
    
    	var pub interface{}
    	var desc string
    	switch k := key.(type) {
    	case *rsa.PrivateKey:
    		pub = &k.PublicKey
    		desc = fmt.Sprintf("RSA-%d", k.N.BitLen())
    	case *ecdsa.PrivateKey:
    		pub = &k.PublicKey
    		desc = "ECDSA-" + k.Curve.Params().Name
    	default:
    		t.Fatalf("invalid key %T", key)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 17:38:47 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  4. pkg/kubelet/nodeshutdown/systemd/inhibit_linux_test.go

    func TestMonitorShutdown(t *testing.T) {
    	var tests = []struct {
    		desc           string
    		shutdownActive bool
    	}{
    		{
    			desc:           "shutdown is active",
    			shutdownActive: true,
    		},
    		{
    			desc:           "shutdown is not active",
    			shutdownActive: false,
    		},
    	}
    
    	for _, tc := range tests {
    		tc := tc
    		t.Run(tc.desc, func(t *testing.T) {
    			fakeSystemBus := &fakeSystemDBus{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 29 19:50:06 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. pkg/apis/storage/v1beta1/defaults_test.go

    	enabled := true
    	disabled := false
    	tests := []struct {
    		desc     string
    		field    string
    		wantSpec *storagev1beta1.CSIDriverSpec
    	}{
    		{
    			desc:     "AttachRequired default to true",
    			field:    "AttachRequired",
    			wantSpec: &storagev1beta1.CSIDriverSpec{AttachRequired: &enabled},
    		},
    		{
    			desc:     "PodInfoOnMount default to false",
    			field:    "PodInfoOnMount",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/gradle/DependencyConstraintSpec.groovy

            group = g
            module = m
            version = v
            this.preferredVersion = preferredVersion
            this.strictVersion = strictVersion
            rejects = r?:Collections.<String>emptyList()
            reason = desc
            attributes = attrs
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/IgnoredTestDescriptorProviderTest.groovy

            CustomRunner(Class<?> clazz) {}
    
            @Override
            Description getDescription() {
                Description desc = Description.createSuiteDescription("SUITE")
                desc.addChild(Description.createTestDescription("SUITE", "CHILD"))
                return desc
            }
    
            @Override
            void run(RunNotifier notifier) {}
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/authorization/cel/metrics_test.go

    	"k8s.io/component-base/metrics/testutil"
    )
    
    func TestRecordAuthorizationMatchConditionEvaluationFailure(t *testing.T) {
    	testCases := []struct {
    		desc      string
    		metrics   []string
    		name      string
    		authztype string
    		want      string
    	}{
    		{
    			desc: "evaluation failure total",
    			metrics: []string{
    				"apiserver_authorization_match_condition_evaluation_errors_total",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. src/cmd/fix/main_test.go

    			}
    		}
    	}
    	testCases = append(testCases, t...)
    }
    
    func fnop(*ast.File) bool { return false }
    
    func parseFixPrint(t *testing.T, fn func(*ast.File) bool, desc, in string, mustBeGofmt bool) (out string, fixed, ok bool) {
    	file, err := parser.ParseFile(fset, desc, in, parserMode)
    	if err != nil {
    		t.Errorf("parsing: %v", err)
    		return
    	}
    
    	outb, err := gofmtFile(file)
    	if err != nil {
    		t.Errorf("printing: %v", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/util/util_test.go

    			expectedSandboxID: "sandboxID1",
    		},
    	} {
    		t.Run(desc, func(t *testing.T) {
    			changed, attempt, id := PodSandboxChanged(test.pod, test.status)
    			require.Equal(t, test.expectedChanged, changed)
    			require.Equal(t, test.expectedAttempt, attempt)
    			require.Equal(t, test.expectedSandboxID, id)
    		})
    	}
    }
    
    func TestNamespacesForPod(t *testing.T) {
    	for desc, test := range map[string]struct {
    		input    *v1.Pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:14:48 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top