Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CreateToken (0.06 sec)

  1. istioctl/pkg/workload/workload.go

    		},
    		Spec: authenticationv1.TokenRequestSpec{
    			Audiences:         []string{"istio-ca"},
    			ExpirationSeconds: &tokenDuration,
    		},
    	}
    	tokenReq, err := kubeClient.Kube().CoreV1().ServiceAccounts(wg.Namespace).CreateToken(context.Background(), serviceAccount, token, metav1.CreateOptions{})
    	// errors if the token could not be created with the given service account in the given namespace
    	if err != nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 25.3K bytes
    - Viewed (0)
Back to top