Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for SA (0.12 sec)

  1. istioctl/pkg/multicluster/remote_secret_test.go

    func makeServiceAccount(secrets ...string) *v1.ServiceAccount {
    	sa := &v1.ServiceAccount{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      testServiceAccountName,
    			Namespace: testNamespace,
    		},
    	}
    
    	for _, secret := range secrets {
    		sa.Secrets = append(sa.Secrets, v1.ObjectReference{
    			Name:      secret,
    			Namespace: testNamespace,
    		})
    	}
    
    	return sa
    }
    
    func makeSecret(name, caData, token string) *v1.Secret {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  2. istioctl/pkg/completion/completion.go

    	if err != nil {
    		return nil, err
    	}
    
    	var saNameList []string
    	for _, sa := range saList.Items {
    		if toComplete == "" || strings.HasPrefix(sa.Name, toComplete) {
    			saNameList = append(saNameList, sa.Name)
    		}
    	}
    
    	return saNameList, nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  3. istioctl/pkg/multicluster/remote_secret.go

    		}
    		if err := secretReferencesServiceAccount(serviceAccount, secret); err != nil {
    			return nil, err
    		}
    		return secret, nil
    	}
    
    	// first try to find an existing secret that references the SA
    	// TODO will the SA have any reference to secrets anymore, can we avoid this list?
    	allSecrets, err := client.Kube().CoreV1().Secrets(opt.Namespace).List(ctx, metav1.ListOptions{})
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  4. cmd/iam.go

    	sa, embeddedPolicy, err := sys.getServiceAccount(ctx, accessKey)
    	if err != nil {
    		return auth.Credentials{}, nil, err
    	}
    	// Hide secret & session keys
    	sa.Credentials.SecretKey = ""
    	sa.Credentials.SessionToken = ""
    	return sa.Credentials, embeddedPolicy, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  5. src/archive/tar/writer.go

    			// Format the sparse map.
    			formatSPD := func(sp sparseDatas, sa sparseArray) sparseDatas {
    				for i := 0; len(sp) > 0 && i < sa.MaxEntries(); i++ {
    					f.formatNumeric(sa.Entry(i).Offset(), sp[0].Offset)
    					f.formatNumeric(sa.Entry(i).Length(), sp[0].Length)
    					sp = sp[1:]
    				}
    				if len(sp) > 0 {
    					sa.IsExtended()[0] = 1
    				}
    				return sp
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  6. cmd/sftp-server.go

    			MACs:         allowMACs,
    		},
    		PublicKeyAuthAlgorithms: allowPubKeys,
    		PasswordCallback: func(c ssh.ConnMetadata, pass []byte) (*ssh.Permissions, error) {
    			if globalIAMSys.LDAPConfig.Enabled() {
    				sa, _, err := globalIAMSys.getServiceAccount(context.Background(), c.User())
    				if err != nil && !errors.Is(err, errNoSuchServiceAccount) {
    					return nil, err
    				}
    				if errors.Is(err, errNoSuchServiceAccount) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  7. istioctl/pkg/precheck/precheck.go

    	// TODO: add more checks
    
    	sa := local.NewSourceAnalyzer(
    		analysis.Combine("upgrade precheck", &maturity.AlphaAnalyzer{}),
    		resource.Namespace(ctx.Namespace()),
    		resource.Namespace(ctx.IstioNamespace()),
    		nil,
    	)
    	if err != nil {
    		return nil, err
    	}
    	sa.AddRunningKubeSource(cli)
    	cancel := make(chan struct{})
    	result, err := sa.Analyze(cancel)
    	if err != nil {
    		return nil, err
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/net_test.go

    	nlDeps := fixture.nlDeps
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "foo",
    			Namespace: "bar",
    			UID:       "123",
    		},
    		Spec: corev1.PodSpec{ServiceAccountName: "sa"},
    	}
    
    	// this is usually called after add. so manually add the pod uid for now
    	fakens := newFakeNs(123)
    	closed := fakens.closed
    	workload := WorkloadInfo{
    		Workload: podToWorkload(pod),
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  9. cmd/site-replication.go

    		if d == globalDeploymentID() {
    			ourName = p.Name
    			break
    		}
    	}
    	if ourName == "" {
    		return errSRSelfNotFound
    	}
    
    	sa, _, err := globalIAMSys.GetServiceAccount(ctx, arg.SvcAcctAccessKey)
    	if err == errNoSuchServiceAccount {
    		sa, _, err = globalIAMSys.NewServiceAccount(ctx, arg.SvcAcctParent, nil, newServiceAccountOpts{
    			accessKey:                  arg.SvcAcctAccessKey,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  10. internal/s3select/sql/value.go

    		bA, okAb := a.bytesToBool()
    		bB, okBb := b.bytesToBool()
    		if okAb && okBb {
    			a.setBool(bA)
    			b.setBool(bB)
    			return nil
    		}
    
    		// Fallback to string
    		sA := a.bytesToString()
    		sB := b.bytesToString()
    		a.setString(sA)
    		b.setString(sB)
    		return nil
    
    	case okA && !okB:
    		// Here a has `a` is untyped, but `b` has a fixed
    		// type.
    		switch b.value.(type) {
    		case string:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
Back to top