Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for bindScope (0.11 sec)

  1. pkg/log/options_test.go

    			o.outputLevels = c.flagLevels
    			o.stackTraceLevels = c.flagLevels
    
    			o.SetDefaultOutputLevel(c.scope, c.defaultLevel)
    			if err := Configure(o); err != nil {
    				t.Fatal(err)
    			}
    			if got := FindScope(c.scope).GetOutputLevel(); got != c.expectedLevel {
    				t.Fatalf("got %v want %v", got, c.expectedLevel)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. pkg/kube/krt/bench_test.go

    	nextIP = net.IPv4(v0, v1, v2, v3)
    	return ret
    }
    
    func drainN(c chan string, n int) {
    	for n > 0 {
    		n--
    		<-c
    	}
    }
    
    func BenchmarkControllers(b *testing.B) {
    	log.FindScope("krt").SetOutputLevel(log.InfoLevel)
    	watch.DefaultChanSize = 100_000
    	initialPods := []*v1.Pod{}
    	for i := 0; i < 1000; i++ {
    		initialPods = append(initialPods, &v1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. security/pkg/nodeagent/sds/sdsservice_test.go

    		CertChain:    fakeCertificateChain,
    		Key:          fakePrivateKey,
    	}
    	expectRoot := Expectation{
    		ResourceName: rootResourceName,
    		RootCert:     fakeRootCert,
    	}
    	log.FindScope("ads").SetOutputLevel(log.DebugLevel)
    	t.Run("multiplexed", func(t *testing.T) {
    		// In reality Envoy doesn't do this, but it *could* per XDS spec
    		s := setupSDS(t)
    		c := s.Connect()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 17 20:12:58 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. pkg/log/config.go

    		sink = rotaterSink
    	} else {
    		sink = outputSink
    	}
    
    	alwaysOn := zapcore.NewCore(enc, sink, zap.NewAtomicLevelAt(zapcore.DebugLevel))
    	conditionallyOn := func(scopeName string) zapcore.Core {
    		scope := FindScope(scopeName)
    		enabler := func(lvl zapcore.Level) bool {
    			switch lvl {
    			case zapcore.ErrorLevel:
    				return scope.ErrorEnabled()
    			case zapcore.WarnLevel:
    				return scope.WarnEnabled()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. cni/pkg/cmd/root.go

    		// what level to use for itself.
    		// This masks the fact we are doing this weird log-over-UDS to users, and allows them to configure it the same way.
    		PluginLogLevel:        istiolog.LevelToString(istiolog.FindScope(constants.CNIPluginLogScope).GetOutputLevel()),
    		KubeconfigFilename:    viper.GetString(constants.KubeconfigFilename),
    		KubeconfigMode:        viper.GetInt(constants.KubeconfigMode),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. pkg/kube/krt/collection_test.go

    			return SimpleEndpoint{
    				Pod:       pod.Name,
    				Service:   svc.Name,
    				Namespace: svc.Namespace,
    				IP:        pod.IP,
    			}
    		})
    	})
    }
    
    func init() {
    	log.FindScope("krt").SetOutputLevel(log.DebugLevel)
    }
    
    func TestCollectionSimple(t *testing.T) {
    	c := kube.NewFakeClient()
    	kpc := kclient.New[*corev1.Pod](c)
    	pc := clienttest.Wrap(t, kpc)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. pkg/kube/inject/inject_test.go

    // test files and running through the two different code paths.
    func BenchmarkInjection(b *testing.B) {
    	istiolog.FindScope("default").SetOutputLevel(istiolog.ErrorLevel)
    	cases := []struct {
    		name string
    		in   *corev1.Pod
    	}{
    		{
    			name: "many env vars",
    			in:   podWithEnv(2000),
    		},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 34.1K bytes
    - Viewed (0)
Back to top