Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for SecretTypeBootstrapToken (0.25 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_test.go

    			},
    			&v1.Secret{
    				ObjectMeta: metav1.ObjectMeta{
    					Name:      "bootstrap-token-abcdef",
    					Namespace: "kube-system",
    				},
    				Type: bootstrapapi.SecretTypeBootstrapToken,
    				Data: map[string][]byte{
    					"token-id":                       []byte("abcdef"),
    					"token-secret":                   []byte("abcdef0123456789"),
    					"description":                    []byte("foo"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 15:51:39 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  7. 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)
  8. cmd/kubeadm/app/cmd/token.go

    	// First, build our selector for bootstrap tokens only
    	klog.V(1).Infoln("[token] preparing selector for bootstrap token")
    	tokenSelector := fields.SelectorFromSet(
    		map[string]string{
    			"type": string(bootstrapapi.SecretTypeBootstrapToken),
    		},
    	)
    	listOptions := metav1.ListOptions{
    		FieldSelector: tokenSelector.String(),
    	}
    
    	klog.V(1).Info("[token] retrieving list of bootstrap tokens")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 05:47:48 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  9. pkg/apis/core/types.go

    	// TLSPrivateKeyKey is the key for the private key field in a TLS secret.
    	TLSPrivateKeyKey = "tls.key"
    	// SecretTypeBootstrapToken is used during the automated bootstrap process (first
    	// implemented by kubeadm). It stores tokens that are used to sign well known
    	// ConfigMaps. They are used for authn.
    	SecretTypeBootstrapToken SecretType = "bootstrap.kubernetes.io/token"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 268.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/core/v1/types.go

    	// TLSPrivateKeyKey is the key for the private key field in a TLS secret.
    	TLSPrivateKeyKey = "tls.key"
    	// SecretTypeBootstrapToken is used during the automated bootstrap process (first
    	// implemented by kubeadm). It stores tokens that are used to sign well known
    	// ConfigMaps. They are used for authn.
    	SecretTypeBootstrapToken SecretType = "bootstrap.kubernetes.io/token"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 390.8K bytes
    - Viewed (0)
Back to top