- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for BootstrapTokenFromSecret (0.52 sec)
-
cmd/kubeadm/app/apis/bootstraptoken/v1/utils_test.go
t.Run(rt.desc, func(t *testing.T) { actual, err := BootstrapTokenFromSecret(&v1.Secret{ ObjectMeta: metav1.ObjectMeta{ Name: rt.name, Namespace: "kube-system", }, Type: bootstrapapi.SecretTypeBootstrapToken, Data: rt.data, }) if (err != nil) != rt.expectedError { t.Errorf( "failed BootstrapTokenFromSecret\n\texpected error: %t\n\t actual error: %v", rt.expectedError,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 26 15:51:39 UTC 2023 - 21.2K bytes - Viewed (0) -
cmd/kubeadm/app/apis/bootstraptoken/v1/utils.go
} if len(token.Groups) > 0 { data[bootstrapapi.BootstrapTokenExtraGroupsKey] = []byte(strings.Join(token.Groups, ",")) } return data } // BootstrapTokenFromSecret returns a BootstrapToken object from the given Secret func BootstrapTokenFromSecret(secret *v1.Secret) (*BootstrapToken, error) { // Get the Token ID field from the Secret data tokenID := bootstrapsecretutil.GetData(secret, bootstrapapi.BootstrapTokenIDKey)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 26 15:51:39 UTC 2023 - 8.3K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/token.go
return errors.Wrap(err, "failed to list bootstrap tokens") } for _, secret := range secrets.Items { // Get the BootstrapToken struct representation from the Secret object token, err := bootstraptokenv1.BootstrapTokenFromSecret(&secret) if err != nil { fmt.Fprintf(errW, "%v", err) continue } // Convert token into versioned output structure outputToken := outputapiv1alpha3.BootstrapToken{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 05:47:48 UTC 2024 - 15.9K bytes - Viewed (0)