Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for BootstrapTokenSecretName (0.28 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)
  3. cmd/kubeadm/app/phases/copycerts/copycerts.go

    			},
    		},
    	})
    }
    
    func getSecretOwnerRef(client clientset.Interface, tokenID string) ([]metav1.OwnerReference, error) {
    	secretName := bootstraputil.BootstrapTokenSecretName(tokenID)
    	secret, err := client.CoreV1().Secrets(metav1.NamespaceSystem).Get(context.TODO(), secretName, metav1.GetOptions{})
    	if err != nil {
    		return nil, errors.Wrap(err, "error to get token reference")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:15:30 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/token.go

    					bootstrapapi.BootstrapTokenPattern, bootstrapapi.BootstrapTokenIDPattern)
    			}
    			tokenID = bts.ID
    		}
    
    		tokenSecretName := bootstraputil.BootstrapTokenSecretName(tokenID)
    		klog.V(1).Infof("[token] deleting token %q", tokenID)
    		if err := client.CoreV1().Secrets(metav1.NamespaceSystem).Delete(context.TODO(), tokenSecretName, metav1.DeleteOptions{}); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 05:47:48 UTC 2024
    - 15.9K bytes
    - Viewed (0)
Back to top