Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BootstrapTokenSecretName (0.43 sec)

  1. cmd/kubeadm/app/apis/bootstraptoken/v1/utils.go

    	}
    
    	// Enforce the right naming convention
    	if secret.Name != bootstraputil.BootstrapTokenSecretName(tokenID) {
    		return nil, errors.Errorf("bootstrap token name is not of the form '%s(token-id)'. Actual: %q. Expected: %q",
    			bootstrapapi.BootstrapTokenSecretPrefix, secret.Name, bootstraputil.BootstrapTokenSecretName(tokenID))
    	}
    
    	tokenSecret := bootstrapsecretutil.GetData(secret, bootstrapapi.BootstrapTokenSecretKey)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 15:51:39 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/bootstraptoken/node/token.go

    func UpdateOrCreateTokens(client clientset.Interface, failIfExists bool, tokens []bootstraptokenv1.BootstrapToken) error {
    
    	for _, token := range tokens {
    
    		secretName := bootstraputil.BootstrapTokenSecretName(token.Token.ID)
    		secret, err := client.CoreV1().Secrets(metav1.NamespaceSystem).Get(context.TODO(), secretName, metav1.GetOptions{})
    		if secret != nil && err == nil && failIfExists {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top