package bootstrap
import "k8s.io/kubernetes/test/e2e/lifecycle/bootstrap"
Index ¶
- Constants
- func GenerateTokenID() (string, error)
- func GenerateTokenSecret() (string, error)
- func TimeStringFromNow(delta time.Duration) string
- func WaitForBootstrapTokenSecretNotDisappear(c clientset.Interface, tokenID string, t time.Duration) error
- func WaitForBootstrapTokenSecretToDisappear(c clientset.Interface, tokenID string) error
- func WaitForSignedClusterInfoByBootstrapTokenToDisappear(c clientset.Interface, tokenID string) error
- func WaitForSignedClusterInfoGetUpdatedByBootstrapToken(c clientset.Interface, tokenID string, signedToken string) error
- func WaitforSignedClusterInfoByBootStrapToken(c clientset.Interface, tokenID string) error
Constants ¶
const ( // TokenIDBytes is the length of the byte array to generate tokenID. TokenIDBytes = 3 // TokenSecretBytes is the length of the byte array to generate tokenSecret. TokenSecretBytes = 8 )
Functions ¶
func GenerateTokenID ¶
GenerateTokenID generates tokenID.
func GenerateTokenSecret ¶
GenerateTokenSecret generates tokenSecret.
func TimeStringFromNow ¶
TimeStringFromNow returns the time as a string from now. e.g: 2019-12-03T06:30:40Z.
func WaitForBootstrapTokenSecretNotDisappear ¶
func WaitForBootstrapTokenSecretNotDisappear(c clientset.Interface, tokenID string, t time.Duration) error
WaitForBootstrapTokenSecretNotDisappear waits for bootstrap token secret not to be disappeared and takes time for the specified timeout as success path.
func WaitForBootstrapTokenSecretToDisappear ¶
WaitForBootstrapTokenSecretToDisappear waits for bootstrap token secret to be disappeared.
func WaitForSignedClusterInfoByBootstrapTokenToDisappear ¶
func WaitForSignedClusterInfoByBootstrapTokenToDisappear(c clientset.Interface, tokenID string) error
WaitForSignedClusterInfoByBootstrapTokenToDisappear waits for signed cluster info to be disappeared by bootstrap token.
func WaitForSignedClusterInfoGetUpdatedByBootstrapToken ¶
func WaitForSignedClusterInfoGetUpdatedByBootstrapToken(c clientset.Interface, tokenID string, signedToken string) error
WaitForSignedClusterInfoGetUpdatedByBootstrapToken waits for signed cluster info to be updated by bootstrap token.
func WaitforSignedClusterInfoByBootStrapToken ¶
WaitforSignedClusterInfoByBootStrapToken waits for signed cluster info by bootstrap token.
Source Files ¶
bootstrap_signer.go bootstrap_token_cleaner.go util.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 16 packages
- Last checked
- 5 hours ago –
Tools for package owners.