Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for PROVIDED (0.2 sec)

  1. cni/pkg/nodeagent/pod_cache.go

    import (
    	"errors"
    	"fmt"
    	"path/filepath"
    	"runtime"
    	"sync"
    
    	corev1 "k8s.io/api/core/v1"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/zdsapi"
    )
    
    var ErrPodNotFound = errors.New("netns not provided, but is needed as pod is not in cache")
    
    type PodNetnsCache interface {
    	ReadCurrentPodSnapshot() map[string]WorkloadInfo
    }
    
    // Hold a cache of node local pods with their netns
    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)
  2. cni/pkg/plugin/sidecar_iptables_linux.go

    )
    
    // getNs is a unit test override variable for interface create.
    var getNs = ns.GetNS
    
    // Program defines a method which programs iptables based on the parameters
    // provided in Redirect.
    func (ipt *iptables) Program(podName, netns string, rdrct *Redirect) error {
    	cfg := config.DefaultConfig()
    	cfg.CNIMode = true
    	cfg.NetworkNamespace = netns
    	cfg.ProxyPort = rdrct.targetPort
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 17:36:41 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/compare/sds/writer.go

    // NewSDSWriter generates a new instance which conforms to SDSWriter interface
    func NewSDSWriter(w io.Writer, format Format) SDSWriter {
    	return &sdsWriter{
    		w:      w,
    		output: format,
    	}
    }
    
    // sdsWriter is provided concrete implementation of SDSWriter
    type sdsWriter struct {
    	w      io.Writer
    	output Format
    }
    
    // PrintSecretItems uses the user supplied output format to determine how to display the diffed secrets
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 21 14:17:23 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  4. manifests/manifest.go

    package manifests
    
    import (
    	"embed"
    	"io/fs"
    	"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 May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 15 02:30:16 GMT 2023
    - 935 bytes
    - Viewed (0)
  5. istioctl/pkg/dashboard/dashboard.go

    				c.Println(c.UsageString())
    				return fmt.Errorf("specify a pod or --selector")
    			}
    
    			if labelSelector != "" && len(args) > 0 {
    				c.Println(c.UsageString())
    				return fmt.Errorf("name cannot be provided when a selector is specified")
    			}
    
    			if err != nil {
    				return fmt.Errorf("failed to create k8s client: %v", err)
    			}
    
    			var podName, ns string
    			if labelSelector != "" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  6. operator/cmd/mesh/operator-init.go

    		l.LogAndFatal(err)
    	}
    
    	// create watched namespaces
    	namespaces := strings.Split(oiArgs.common.watchedNamespaces, ",")
    	// if the namespace in the CR is provided, consider creating it too.
    	if istioNamespace != "" {
    		namespaces = append(namespaces, istioNamespace)
    	}
    	for _, ns := range namespaces {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. cni/pkg/repair/repair.go

    		repairLog.Fatalf("Fatal error constructing repair controller: %+v", err)
    	}
    	go rc.Run(ctx.Done())
    	client.RunAndWait(ctx.Done())
    }
    
    // Set up Kubernetes client using kubeconfig (or in-cluster config if no file provided)
    func clientSetup() (kube.Client, error) {
    	config, err := kube.DefaultRestConfig("", "")
    	if err != nil {
    		return nil, err
    	}
    	return kube.NewClient(kube.NewClientConfigForRestConfig(config), "")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 23 17:08:31 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  8. istioctl/pkg/dashboard/dashboard_test.go

    			WantException:  true,
    		},
    		{ // case 12
    			Args:           strings.Split("envoy --browser=false --selector app=example pod-123456-7890", " "),
    			ExpectedRegexp: regexp.MustCompile(".*Error: name cannot be provided when a selector is specified"),
    			WantException:  true,
    		},
    		{ // case 13
    			Args:           strings.Split("--browser=false controlz --selector app=example", " "),
    			ExpectedRegexp: regexp.MustCompile(".*no pods found"),
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Nov 21 01:17:24 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  9. cni/pkg/plugin/sidecar_iptables_unspecified.go

    // ErrNotImplemented is returned when a requested feature is not implemented.
    var ErrNotImplemented = errors.New("not implemented")
    
    // Program defines a method which programs iptables based on the parameters
    // provided in Redirect.
    func (ipt *iptables) Program(podName, netns string, rdrct *Redirect) error {
    	return ErrNotImplemented
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  10. istioctl/pkg/waypoint/waypoint.go

    		if waypointName == "" {
    			waypointName = constants.DefaultNamespaceWaypoint
    		} else if waypointName == "none" {
    			return nil, fmt.Errorf("invalid name provided for waypoint, 'none' is a reserved value")
    		}
    		gw := gateway.Gateway{
    			TypeMeta: metav1.TypeMeta{
    				Kind:       gvk.KubernetesGateway_v1.Kind,
    				APIVersion: gvk.KubernetesGateway_v1.GroupVersion(),
    			},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 19:45:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
Back to top