Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BootstrapTokenFromSecret (0.26 sec)

  1. 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)
Back to top