Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for ok (0.24 sec)

  1. cni/pkg/repair/repaircontroller.go

    	m := podsRepaired.With(typeLabel.Value(labelType))
    	repairLog.Infof("Pod detected as broken, adding label: %s/%s", pod.Namespace, pod.Name)
    
    	labels := pod.GetLabels()
    	if _, ok := labels[c.cfg.LabelKey]; ok {
    		m.With(resultLabel.Value(resultSkip)).Increment()
    		repairLog.Infof("Pod %s/%s already has label with key %s, skipping", pod.Namespace, pod.Name, c.cfg.LabelKey)
    		return nil
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  2. istioctl/pkg/validate/validate.go

    }
    
    // GetTemplateLabels returns spec.template.metadata.labels from Deployment
    func GetTemplateLabels(u *unstructured.Unstructured) (map[string]string, error) {
    	if spec, ok := u.Object["spec"].(map[string]any); ok {
    		if template, ok := spec["template"].(map[string]any); ok {
    			m, _, err := unstructured.NestedStringMap(template, "metadata", "labels")
    			if err != nil {
    				return nil, err
    			}
    			return m, nil
    		}
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload_test.go

    	outputFiles, err := os.ReadDir(testdir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, f := range outputFiles {
    		checkGolden, ok := checkFiles[f.Name()]
    		if !ok {
    			if checkGolden, ok := checkFiles[f.Name()[:len(f.Name())-len(goldenSuffix)]]; !(checkGolden && ok) {
    				t.Errorf("unexpected file in output dir: %s", f.Name())
    			}
    			continue
    		}
    		if checkGolden {
    			t.Run(f.Name(), func(t *testing.T) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/envoy/configdump/listener.go

    	if len(vh.GetRoutes()) != 1 {
    		return ""
    	}
    	r := vh.GetRoutes()[0]
    	if r.GetMatch().GetPrefix() != "/" {
    		return ""
    	}
    	a, ok := r.GetAction().(*route.Route_Route)
    	if !ok {
    		return ""
    	}
    	cl, ok := a.Route.ClusterSpecifier.(*route.RouteAction_Cluster)
    	if !ok {
    		return ""
    	}
    	if strings.Contains(cl.Cluster, "Cluster") {
    		return cl.Cluster
    	}
    	return fmt.Sprintf("Cluster: %s", cl.Cluster)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  5. istioctl/pkg/tag/generate_test.go

    			}
    			wh := vwhObject.(*admitv1.ValidatingWebhookConfiguration)
    
    			if tc.userManaged {
    				// User created webhooks should not have operator labels, otherwise will be pruned.
    				_, ok := wh.GetLabels()[operatorManaged]
    				assert.Equal(t, ok, false)
    			}
    
    			for _, webhook := range wh.Webhooks {
    				validationWhConf := webhook.ClientConfig
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  6. cni/pkg/plugin/sidecar_redirect.go

    			return fmt.Errorf("IPRanges invalid: %v", e)
    		}
    	}
    	return nil
    }
    
    func getAnnotationOrDefault(name string, annotations map[string]string) (isFound bool, val string, err error) {
    	if _, ok := annotationRegistry[name]; !ok {
    		return false, "", fmt.Errorf("no registered annotation with name=%s", name)
    	}
    	// use annotation value if present
    	if val, found := annotations[annotationRegistry[name].key]; found {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  7. istioctl/pkg/proxyconfig/proxyconfig.go

    			destLoggerLevels := map[string]Level{}
    			if reset {
    				// reset logging level to `defaultOutputLevel`, and ignore the `level` option
    				levelString, _ := getLogLevelFromConfigMap(ctx)
    				level, ok := stringToLevel[levelString]
    				if ok {
    					destLoggerLevels[defaultLoggerName] = level
    				} else {
    					log.Warnf("unable to get logLevel from ConfigMap istio-sidecar-injector, using default value %q for envoy proxies",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
  8. operator/cmd/mesh/manifest_shared_test.go

    	// if an apply patch occurs for an object that doesn't yet exist, create it.
    	if patch.Type() != types.ApplyPatchType {
    		return clnt.Patch(ctx, obj, patch, opts...)
    	}
    	check, ok := obj.DeepCopyObject().(client.Object)
    	if !ok {
    		return errors.New("could not check for object in fake client")
    	}
    	if err := clnt.Get(ctx, client.ObjectKeyFromObject(obj), check); kerrors.IsNotFound(err) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  9. istioctl/pkg/multixds/gather.go

    		responses, err = queryEachShard(all, dr, istioNamespace, kubeClient, centralOpts)
    	}
    	if err != nil {
    		if _, ok := err.(ControlPlaneNotFoundError); ok {
    			// Attempt to get the XDS address from the webhook and try again
    			addr, err := getXdsAddressFromWebhooks(kubeClient)
    			if err == nil {
    				centralOpts.Xds = addr.host
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  10. cni/pkg/install/cniconfig.go

    	if err != nil {
    		return nil, fmt.Errorf("error loading existing CNI config (JSON error): %v", err)
    	}
    
    	delete(istioMap, "cniVersion")
    
    	var newMap map[string]any
    
    	if _, ok := existingMap["type"]; ok {
    		// Assume it is a regular network conf file
    		delete(existingMap, "cniVersion")
    
    		plugins := make([]map[string]any, 2)
    		plugins[0] = existingMap
    		plugins[1] = istioMap
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.4K bytes
    - Viewed (0)
Back to top