Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SecretTypeBootstrapToken (0.39 sec)

  1. pkg/controller/bootstrap/util_test.go

    				ObjectMeta: metav1.ObjectMeta{
    					Namespace:       metav1.NamespaceSystem,
    					Name:            bootstrapapi.BootstrapTokenSecretPrefix + givenTokenID,
    					ResourceVersion: "1",
    				},
    				Type: bootstrapapi.SecretTypeBootstrapToken,
    				Data: map[string][]byte{
    					bootstrapapi.BootstrapTokenIDKey:           []byte(tc.tokenID),
    					bootstrapapi.BootstrapTokenSecretKey:       []byte(tc.tokenSecret),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 02:18:40 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  2. pkg/controller/bootstrap/tokencleaner.go

    		cache.FilteringResourceEventHandler{
    			FilterFunc: func(obj interface{}) bool {
    				switch t := obj.(type) {
    				case *v1.Secret:
    					return t.Type == bootstrapapi.SecretTypeBootstrapToken && t.Namespace == e.tokenSecretNamespace
    				default:
    					utilruntime.HandleError(fmt.Errorf("object passed to %T that is not expected: %T", e, obj))
    					return false
    				}
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authenticator/token/bootstrap/bootstrap.go

    		tokenErrorf(secret, "is deleted and awaiting removal")
    		return nil, false, nil
    	}
    
    	if string(secret.Type) != string(bootstrapapi.SecretTypeBootstrapToken) || secret.Data == nil {
    		tokenErrorf(secret, "has invalid type, expected %s.", bootstrapapi.SecretTypeBootstrapToken)
    		return nil, false, nil
    	}
    
    	ts := bootstrapsecretutil.GetData(secret, bootstrapapi.BootstrapTokenSecretKey)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 30 20:38:15 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. pkg/controller/bootstrap/common_test.go

    			Namespace:       metav1.NamespaceSystem,
    			Name:            bootstrapapi.BootstrapTokenSecretPrefix + tokenID,
    			ResourceVersion: "1",
    			UID:             types.UID("uid" + tokenID),
    		},
    		Type: bootstrapapi.SecretTypeBootstrapToken,
    		Data: map[string][]byte{
    			bootstrapapi.BootstrapTokenIDKey:     []byte(tokenID),
    			bootstrapapi.BootstrapTokenSecretKey: []byte(tokenSecret),
    		},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. pkg/controller/bootstrap/bootstrapsigner.go

    		cache.FilteringResourceEventHandler{
    			FilterFunc: func(obj interface{}) bool {
    				switch t := obj.(type) {
    				case *v1.Secret:
    					return t.Type == bootstrapapi.SecretTypeBootstrapToken && t.Namespace == e.secretNamespace
    				default:
    					utilruntime.HandleError(fmt.Errorf("object passed to %T that is not expected: %T", e, obj))
    					return false
    				}
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/apis/bootstraptoken/v1/utils.go

    	return &v1.Secret{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      bootstraputil.BootstrapTokenSecretName(bt.Token.ID),
    			Namespace: metav1.NamespaceSystem,
    		},
    		Type: bootstrapapi.SecretTypeBootstrapToken,
    		Data: encodeTokenSecretData(bt, time.Now()),
    	}
    }
    
    // encodeTokenSecretData takes the token discovery object and an optional duration and returns the .Data for the Secret
    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