Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for OK (0.11 sec)

  1. istioctl/pkg/writer/ztunnel/configdump/workload.go

    		return "None"
    	}
    
    	if svc, ok := services[wl.Waypoint.Destination]; ok {
    		return svc.Name
    	}
    
    	return "NA" // Shouldn't normally reach here
    }
    
    func serviceWaypointName(svc *ZtunnelService, services map[string]*ZtunnelService) string {
    	if svc.Waypoint == nil {
    		return "None"
    	}
    
    	if svc, ok := services[svc.Waypoint.Destination]; ok {
    		return svc.Name
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 4K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/pod_cache.go

    		return info.Netns
    	}
    	return nil
    }
    
    // make sure uid is in the cache, even if we don't have a netns
    func (p *podNetnsCache) Ensure(uid string) {
    	p.mu.Lock()
    	defer p.mu.Unlock()
    	if _, ok := p.currentPodCache[uid]; !ok {
    		p.currentPodCache[uid] = WorkloadInfo{}
    	}
    }
    
    func (p *podNetnsCache) addToCacheUnderLock(uid string, workload WorkloadInfo) {
    	runtime.SetFinalizer(workload.Netns, closeNetns)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  3. istioctl/pkg/checkinject/checkinject.go

    				switch me.Operator {
    				case metav1.LabelSelectorOpDoesNotExist:
    					v, ok := podLabels[me.Key]
    					if ok {
    						return fmt.Sprintf("Pod has %s=%s label, preventing injection", me.Key, v), false
    					}
    				case metav1.LabelSelectorOpNotIn:
    					v, ok := podLabels[me.Key]
    					if !ok {
    						continue
    					}
    					for _, nv := range me.Values {
    						if nv == v {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  4. 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)
  5. istioctl/pkg/writer/envoy/configdump/configdump.go

    	if label, ok := md[buildLabelKey]; ok {
    		fmt.Fprintf(&sb, "-%s", label.GetStringValue())
    	}
    	if status, ok := md[statusKey]; ok {
    		fmt.Fprintf(&sb, "/%s", status.GetStringValue())
    	}
    	if typ, ok := md[buildTypeKey]; ok {
    		fmt.Fprintf(&sb, "/%s", typ.GetStringValue())
    	}
    	if sslVersion, ok := md[sslVersionKey]; ok {
    		fmt.Fprintf(&sb, "/%s", sslVersion.GetStringValue())
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 29 20:46:41 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  6. operator/cmd/mesh/profile-dump.go

    		decoded = make([]any, 0)
    	} else {
    		decoded = map[string]any{}
    	}
    	if err := json.Unmarshal(uglyJSON, &decoded); err != nil {
    		return []string{}, err
    	}
    	if d, ok := decoded.(map[string]any); ok {
    		if v, ok := d["spec"]; ok {
    			// Fall back to showing the entire spec.
    			// (When --config-path is used there will be no spec to remove)
    			decoded = v
    		}
    	}
    	setflags, err := walk("", "", decoded)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  7. 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)
  8. istioctl/pkg/tag/util.go

    }
    
    // GetWebhookRevision extracts tag target revision from webhook object.
    func GetWebhookRevision(wh admitv1.MutatingWebhookConfiguration) (string, error) {
    	if tagName, ok := wh.ObjectMeta.Labels[label.IoIstioRev.Name]; ok {
    		return tagName, nil
    	}
    	return "", fmt.Errorf("could not extract tag revision from webhook")
    }
    
    // DeleteTagWebhooks deletes the given webhooks.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:42 GMT 2024
    - 5.4K bytes
    - Viewed (1)
  9. cni/pkg/nodeagent/podcgroupns_linux.go

    // limitations under the License.
    
    package nodeagent
    
    import (
    	"fmt"
    	"io/fs"
    	"syscall"
    )
    
    func GetInode(fi fs.FileInfo) (uint64, error) {
    	if stat, ok := fi.Sys().(*syscall.Stat_t); ok {
    		return stat.Ino, nil
    	}
    	return 0, fmt.Errorf("unable to get inode")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 814 bytes
    - Viewed (0)
  10. 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)
Back to top