Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Pointer (0.18 sec)

  1. operator/cmd/mesh/test-util_test.go

    type ObjectSet struct {
    	objSlice object.K8sObjects
    	objMap   map[string]*object.K8sObject
    	keySlice []string
    }
    
    // NewObjectSet creates a new ObjectSet from objs and returns a pointer to it.
    func NewObjectSet(objs object.K8sObjects) *ObjectSet {
    	ret := &ObjectSet{}
    	for _, o := range objs {
    		ret.append(o)
    	}
    	return ret
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  2. operator/cmd/mesh/install.go

    func InstallCmd(ctx cli.Context) *cobra.Command {
    	return InstallCmdWithArgs(ctx, &RootArgs{}, &InstallArgs{})
    }
    
    func Install(kubeClient kube.CLIClient, rootArgs *RootArgs, iArgs *InstallArgs, stdOut io.Writer, l clog.Logger, p Printer,
    ) error {
    	kubeClient, client, err := KubernetesClients(kubeClient, l)
    	if err != nil {
    		return err
    	}
    
    	tag, err := GetTagVersion(operatorVer.OperatorVersionString)
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 14:30:43 GMT 2024
    - 15.5K bytes
    - Viewed (1)
  3. istioctl/pkg/tag/tag.go

    injection labels.`,
    		Example: `  # Create a revision tag from the "1-8-0" revision
      istioctl tag set prod --revision 1-8-0
    
      # Point namespace "test-ns" at the revision pointed to by the "prod" revision tag
      kubectl label ns test-ns istio.io/rev=prod
    
      # Change the revision tag to reference the "1-8-1" revision
      istioctl tag set prod --revision 1-8-1 --overwrite
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  4. istioctl/pkg/tag/util.go

    		LabelSelector: fmt.Sprintf("%s=%s,!%s", label.IoIstioRev.Name, rev, IstioTagLabel),
    	})
    	if err != nil {
    		return nil, err
    	}
    	return webhooks.Items, nil
    }
    
    // GetNamespacesWithTag retrieves all namespaces pointed at the given tag.
    func GetNamespacesWithTag(ctx context.Context, client kubernetes.Interface, tag string) ([]string, error) {
    	namespaces, err := client.CoreV1().Namespaces().List(ctx, metav1.ListOptions{
    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)
  5. cni/pkg/nodeagent/pod_cache_test.go

    	if !reflect.DeepEqual(netns1, netns2) {
    		t.Fatalf("Expected the same Netns for the same uid, got %v and %v", netns1, netns2)
    	}
    
    	if counter.Load() != 2 {
    		t.Fatalf("Expected openNetns to be called twice, got %d", counter.Load())
    	}
    }
    
    func TestUpsertPodCacheWithNewInode(t *testing.T) {
    	counter.Store(0)
    
    	p := newPodNetnsCache(openNsTestOverrideWithInodes(1, 2))
    
    	pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{UID: "testUID"}}
    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)
  6. operator/cmd/mesh/shared.go

    	scope := log.RegisterScope("controlleruntime", "scope for controller runtime")
    	controllruntimelog.SetLogger(log.NewLogrAdapter(scope))
    }
    
    type Printer interface {
    	Printf(format string, a ...any)
    	Println(string)
    }
    
    func NewPrinterForWriter(w io.Writer) Printer {
    	return &writerPrinter{writer: w}
    }
    
    type writerPrinter struct {
    	writer io.Writer
    }
    
    func (w *writerPrinter) Printf(format string, a ...any) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  7. istioctl/pkg/multicluster/options.go

    	Namespace  string
    }
    
    // Inherit the common kubernetes flags defined in the root package. This is a bit of a hack,
    // but it allows us to directly get the final values for each of these flags without needing
    // to pass pointers-to-flags through all of the (sub)commands.
    func (o *KubeOptions) prepare(ctx cli.Context) {
    	o.Namespace = ctx.Namespace()
    	if o.Namespace == "" {
    		o.Namespace = ctx.IstioNamespace()
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Aug 01 23:59:49 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  8. istioctl/pkg/tag/generate.go

    	// UserManaged indicates whether the revision tag is user managed.
    	// If true, the revision tag will not be affected by the installer.
    	UserManaged bool
    }
    
    // Generate generates the manifests for a revision tag pointed the given revision.
    func Generate(ctx context.Context, client kube.Client, opts *GenerateOptions, istioNS string) (string, error) {
    	// abort if there exists a revision with the target tag name
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top