Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 236 for returns (0.18 sec)

  1. manifests/manifest.go

    	"os"
    )
    
    // FS embeds the manifests
    //
    //go:embed all:charts/* profiles/*
    var FS embed.FS
    
    // BuiltinOrDir returns a FS for the provided directory. If no directory is passed, the compiled in
    // FS will be used
    func BuiltinOrDir(dir string) fs.FS {
    	if dir == "" {
    		return FS
    	}
    	return os.DirFS(dir)
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Wed Mar 15 02:30:16 GMT 2023
    - 935 bytes
    - Viewed (0)
  2. istioctl/pkg/util/ambient/util.go

    	isZtunnel := strings.HasPrefix(podName, "ztunnel")
    	if client == nil {
    		return isZtunnel
    	}
    	pod, err := client.Kube().CoreV1().Pods(podNamespace).Get(context.Background(), podName, metav1.GetOptions{})
    	if err != nil {
    		return isZtunnel
    	}
    	if v, ok := pod.Labels["app"]; ok {
    		return v == "ztunnel"
    	}
    	return isZtunnel
    }
    
    // InAmbient returns true if a resource is in ambient data plane mode.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/ztunnel/configdump/policies.go

    			return r
    		}
    		return cmp.Compare(a.Name, b.Name)
    	})
    	out, err := json.MarshalIndent(policies, "", "    ")
    	if err != nil {
    		return fmt.Errorf("failed to marshal policies: %v", err)
    	}
    	if outputFormat == "yaml" {
    		if out, err = yaml.JSONToYAML(out); err != nil {
    			return err
    		}
    	}
    	fmt.Fprintln(c.Stdout, string(out))
    	return nil
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  4. common-protos/k8s.io/api/authentication/v1/generated.proto

      // token's audiences. A client of the TokenReview API that sets the
      // spec.audiences field should validate that a compatible audience identifier
      // is returned in the status.audiences field to ensure that the TokenReview
      // server is audience aware. If a TokenReview returns an empty
      // status.audience field where status.authenticated is "true", the token is
      // valid against the audience of the Kubernetes API server.
      // +optional
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  5. cni/pkg/plugin/plugin_test.go

    			Name:      testNSName,
    			Namespace: "",
    			Labels:    map[string]string{},
    		},
    	}
    
    	return fakePod, fakeNS
    }
    
    func (mrdir *mockInterceptRuleMgr) Program(podName, netns string, redirect *Redirect) error {
    	mrdir.lastRedirect = append(mrdir.lastRedirect, redirect)
    	return nil
    }
    
    // returns the test server URL and a dispose func for the test server
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  6. istioctl/pkg/cli/context.go

    	// InferPodsFromTypedResource returns the pod names and namespace for the given typed resource
    	InferPodsFromTypedResource(name, namespace string) ([]string, string, error)
    	// Namespace returns the namespace specified by the user
    	Namespace() string
    	// IstioNamespace returns the Istio namespace specified by the user
    	IstioNamespace() string
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  7. operator/cmd/mesh/test-util_test.go

    		if m {
    			ret.append(v)
    		}
    	}
    	return ret
    }
    
    // nameEquals returns the object in o whose name matches "name", or nil if no object name matches.
    func (o *ObjectSet) nameEquals(name string) *object.K8sObject {
    	for k, v := range o.objMap {
    		_, _, objName := object.FromHash(k)
    		if objName == name {
    			return v
    		}
    	}
    	return nil
    }
    
    // kind returns a subset of o where kind matches the given value.
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  8. istioctl/pkg/cli/option.go

    		"Istio system namespace")
    	return r
    }
    
    // Namespace returns the namespace flag value.
    func (r *RootFlags) Namespace() string {
    	return *r.namespace
    }
    
    // IstioNamespace returns the istioNamespace flag value.
    func (r *RootFlags) IstioNamespace() string {
    	return *r.istioNamespace
    }
    
    // DefaultNamespace returns the default namespace to use.
    func (r *RootFlags) DefaultNamespace() string {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 18:01:27 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  9. cni/pkg/util/pluginutil.go

    	Events  chan struct{}
    	Errors  chan error
    }
    
    // Waits until a file is modified (returns nil), the context is cancelled (returns context error), or returns error
    func (w *Watcher) Wait(ctx context.Context) error {
    	select {
    	case <-w.Events:
    		return nil
    	case err := <-w.Errors:
    		return err
    	case <-ctx.Done():
    		return ctx.Err()
    	}
    }
    
    func (w *Watcher) Close() {
    	_ = w.watcher.Close()
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/fakes_test.go

    	// the fake inode is the fd! magic.
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: uint64(fd)}
    }
    
    func newFakeNsInode(fd uintptr, inode uint64) *fakeNs {
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: inode}
    }
    
    // Fd returns the file descriptor
    func (f *fakeNs) Fd() uintptr {
    	return f.fd
    }
    
    func (f *fakeNs) Inode() uint64 {
    	return f.inode
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
Back to top