Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Account (0.16 sec)

  1. cni/pkg/install/kubeconfig_test.go

    	"istio.io/istio/cni/pkg/constants"
    	testutils "istio.io/istio/pilot/test/util"
    )
    
    const (
    	k8sServiceHost = "10.96.0.1"
    	k8sServicePort = "443"
    	kubeCAFilepath = "testdata/kube-ca.crt"
    	saToken        = "service_account_token_string"
    )
    
    func TestCreateValidKubeconfigFile(t *testing.T) {
    	tmp := t.TempDir()
    	os.WriteFile(filepath.Join(tmp, "token"), []byte(saToken), 0o644)
    	constants.ServiceAccountPath = tmp
    	cases := []struct {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 03:52:24 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  2. istioctl/pkg/multicluster/remote_secret.go

    	flagset.StringVar(&o.ServiceAccountName, "service-account", "",
    		"Create a secret with this service account's credentials. Default value is \""+
    			constants.DefaultServiceAccountName+"\" if --type is \"remote\", \""+
    			constants.DefaultConfigServiceAccountName+"\" if --type is \"config\".")
    	flagset.BoolVar(&o.CreateServiceAccount, "create-service-account", true,
    		"If true, the service account needed for creating the remote secret will be created "+
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  3. istioctl/pkg/multicluster/remote_secret_test.go

    	yaml, err := generateServiceAccountYAML(opts)
    	if err != nil {
    		t.Fatalf("failed to generate service account YAML: %v", err)
    	}
    	objs, err := object.ParseK8sObjectsFromYAMLManifest(yaml)
    	if err != nil {
    		t.Fatalf("could not parse k8s objects from generated YAML: %v", err)
    	}
    
    	mustFindObject(t, objs, "istio-reader-service-account", "ServiceAccount")
    	mustFindObject(t, objs, "istio-reader-clusterrole-istio-system", "ClusterRole")
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  4. istioctl/pkg/workload/workload.go

    	// default attributes and service name, namespace, ports, service account, service CIDR
    	overrides := map[string]string{
    		"ISTIO_INBOUND_PORTS":       portBehavior,
    		"ISTIO_NAMESPACE":           wg.Namespace,
    		"ISTIO_SERVICE":             fmt.Sprintf("%s.%s", wg.Name, wg.Namespace),
    		"ISTIO_SERVICE_CIDR":        "*",
    		"ISTIO_LOCAL_EXCLUDE_PORTS": excludePorts,
    		"SERVICE_ACCOUNT":           we.ServiceAccount,
    	}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  5. operator/cmd/mesh/manifest-generate_test.go

    		g.Expect(objs.kind(name.ServiceStr).nameEquals("istiod")).Should(Not(BeNil()))
    		g.Expect(objs.kind(name.SAStr).nameEquals("istio-reader-service-account")).Should(Not(BeNil()))
    
    		mwc := mustGetMutatingWebhookConfiguration(g, objs, "istio-sidecar-injector").Unstructured()
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
  6. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    								defaultLoggerName: level,
    							}
    						} else {
    							return fmt.Errorf("unrecognized logging level: %v", ol)
    						}
    					} else {
    						logParts := strings.Split(ol, "::") // account for any specified namespace
    						loggerAndLevelOnly := logParts[len(logParts)-1]
    						loggerLevel := regexp.MustCompile(`[:=]`).Split(loggerAndLevelOnly, 2)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  7. istioctl/pkg/internaldebug/internal-debug.go

    		Use:   "internal-debug [<type>/]<name>[.<namespace>]",
    		Short: "Retrieves the debug information of istio",
    		Long: `
    Retrieves the debug information from Istiod or Pods in the mesh using the service account from the pod if --cert-dir is empty.
    By default it will use the default serviceAccount from (istio-system) namespace if the pod is not specified.
    `,
    		Example: `  # Retrieve sync status for all Envoys in a mesh
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 15 04:16:55 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  8. istioctl/pkg/multixds/gather.go

    	"istio.io/istio/istioctl/pkg/clioptions"
    	"istio.io/istio/istioctl/pkg/xds"
    	pilotxds "istio.io/istio/pilot/pkg/xds"
    	"istio.io/istio/pkg/kube"
    	istioversion "istio.io/istio/pkg/version"
    )
    
    const (
    	// Service account to create tokens in
    	tokenServiceAccount = "default"
    	// Get the pods with limit = 500.
    	kubeClientGetPodLimit = 500
    )
    
    type ControlPlaneNotFoundError struct {
    	Namespace string
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  9. istioctl/pkg/injector/injector-list.go

    			if revision != "" {
    				podCount[revision] = revisionCount{}
    			}
    		}
    		for injectedRevision, count := range podCount {
    			if outputCount == 0 {
    				fmt.Fprintln(w, "NAMESPACE\tISTIO-REVISION\tPOD-REVISIONS")
    			}
    			outputCount++
    
    			fmt.Fprintf(w, "%s\t%s\t%s\n", namespace.Name, revision, renderCounts(injectedRevision, count))
    		}
    	}
    	if outputCount == 0 {
    		fmt.Fprintf(writer, "No Istio injected namespaces present.\n")
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  10. istioctl/pkg/proxyconfig/proxyconfig.go

    								defaultLoggerName: level,
    							}
    						} else {
    							return fmt.Errorf("unrecognized logging level: %v", ol)
    						}
    					} else {
    						logParts := strings.Split(ol, "::") // account for any specified namespace
    						loggerAndLevelOnly := logParts[len(logParts)-1]
    						loggerLevel := regexp.MustCompile(`[:=]`).Split(loggerAndLevelOnly, 2)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
Back to top