Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 148 for Franke (0.17 sec)

  1. cni/pkg/repair/repair_test.go

    			}),
    			false,
    		},
    	}
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    			c := &Controller{cfg: tt.config}
    			assert.Equal(t, c.matchesFilter(tt.pod), tt.want)
    		})
    	}
    }
    
    func fakeClient(pods ...*corev1.Pod) kube.Client {
    	var csPods []runtime.Object
    
    	for _, pod := range pods {
    		csPods = append(csPods, pod.DeepCopy())
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 24 03:31:28 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  2. istioctl/pkg/wait/wait.go

    	}
    }
    
    func validateType(kind string) error {
    	originalKind := kind
    
    	// Remove any dashes.
    	kind = strings.ReplaceAll(kind, "-", "")
    
    	for _, s := range collections.Pilot.All() {
    		if strings.EqualFold(kind, s.Kind()) {
    			targetSchema = s
    			return nil
    		}
    	}
    	return fmt.Errorf("type %s is not recognized", originalKind)
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 17 12:24:17 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  3. cni/pkg/install/install.go

    	// We may or may not be the only CNI plugin in play, and if we are not
    	// we shouldn't fire events for binaries that are not ours.
    	var binPaths []string
    	for _, bindir := range in.cfg.CNIBinTargetDirs {
    		for _, binary := range installedBinFiles.UnsortedList() {
    			binPaths = append(binPaths, filepath.Join(bindir, binary))
    		}
    	}
    	targets := append(
    		binPaths,
    		in.cfg.MountedCNINetDir,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  4. manifests/charts/istiod-remote/templates/istiod-injector-configmap.yaml

      config: |-
        # defaultTemplates defines the default template to use for pods that do not explicitly specify a template
        {{- if .Values.sidecarInjectorWebhook.defaultTemplates }}
        defaultTemplates:
    {{- range .Values.sidecarInjectorWebhook.defaultTemplates}}
        - {{ . }}
    {{- end }}
        {{- else }}
        defaultTemplates: [sidecar]
        {{- end }}
        policy: {{ .Values.global.proxy.autoInject }}
        alwaysInjectSelector:
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  5. cni/pkg/plugin/plugin_dryrun_test.go

    			},
    			customUID: &customUID,
    			customGID: &customGID,
    			golden:    filepath.Join(env.IstioSrc, "cni/pkg/plugin/testdata/custom-uid-tproxy.txt.golden"),
    		},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			// TODO(bianpengyuan): How do we test ipv6 rules?
    			getNs = generateMockGetNsFunc(testSandboxDirectory)
    			tmpDir := t.TempDir()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  6. manifests/charts/ztunnel/templates/rbac.yaml

    apiVersion: v1
    kind: ServiceAccount
      {{- with .Values.imagePullSecrets }}
    imagePullSecrets:
      {{- range . }}
      - name: {{ . }}
      {{- end }}
      {{- end }}
    metadata:
      name: ztunnel
      namespace: {{ .Release.Namespace }}
      labels:
        {{- .Values.labels | toYaml | nindent 4}}
      annotations:
        {{- .Values.annotations | toYaml | nindent 4 }}
    ---
    {{- if (eq .Values.platform "openshift") }}
    apiVersion: rbac.authorization.k8s.io/v1
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat May 04 01:17:57 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  7. istioctl/pkg/validate/validate_test.go

    			in:    validK8sRecommendedLabels,
    			valid: true,
    		},
    		{
    			name:  "metric labels istio canonical",
    			in:    validIstioCanonical,
    			valid: true,
    		},
    	}
    
    	for i, c := range cases {
    		t.Run(fmt.Sprintf("[%v] %v ", i, c.name), func(tt *testing.T) {
    			defer func() { recover() }()
    			v := &validator{}
    			var writer io.Writer
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 25 08:08:36 GMT 2023
    - 21.5K bytes
    - Viewed (0)
  8. cni/pkg/util/podutil.go

    // K8S may not have received the pod IPs yet, and may not report the pod as having any.
    func GetPodIPsIfPresent(pod *corev1.Pod) []netip.Addr {
    	var podIPs []netip.Addr
    	if len(pod.Status.PodIPs) != 0 {
    		for _, pip := range pod.Status.PodIPs {
    			ip := netip.MustParseAddr(pip.IP)
    			podIPs = append(podIPs, ip)
    		}
    	} else if len(pod.Status.PodIP) != 0 {
    		ip := netip.MustParseAddr(pod.Status.PodIP)
    		podIPs = append(podIPs, ip)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. istioctl/pkg/ztunnelconfig/ztunnelconfig_test.go

    			execClientConfig: loggingConfig,
    			args:             strings.Split("log ztunnel-9v7nw --level debug", " "),
    			expectedString:   "current log level is debug",
    			wantException:    false,
    		},
    	}
    
    	for i, c := range cases {
    		t.Run(fmt.Sprintf("case %d %s", i, strings.Join(c.args, " ")), func(t *testing.T) {
    			verifyExecTestOutput(t, ZtunnelConfig(cli.NewFakeContext(&cli.NewFakeContextOption{
    				Results:   c.execClientConfig,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/pod_cache_test.go

    	}
    }
    
    func TestPodsAppearsWithNilNetnsWhenEnsureIsUsed(t *testing.T) {
    	p := newPodNetnsCache(openNsTestOverride)
    
    	p.Ensure("123")
    
    	found := false
    	snap := p.ReadCurrentPodSnapshot()
    	for k, v := range snap {
    		if k == "123" && v == (WorkloadInfo{}) {
    			found = true
    		}
    	}
    	if !found {
    		t.Fatalf("expected pod 123 to be in the cache")
    	}
    }
    
    func TestUpsertPodCacheWithLiveNetns(t *testing.T) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.2K bytes
    - Viewed (0)
Back to top