package token

import "k8s.io/kubernetes/cmd/kubeadm/app/discovery/token"

Index

Constants

const BootstrapUser = "token-bootstrap-client"

BootstrapUser defines bootstrap user name

Functions

func BuildInsecureBootstrapKubeConfig

func BuildInsecureBootstrapKubeConfig(endpoint string) *clientcmdapi.Config

BuildInsecureBootstrapKubeConfig makes a kubeconfig object that connects insecurely to the API Server for bootstrapping purposes

func RetrieveValidatedConfigInfo

func RetrieveValidatedConfigInfo(dryRunClient clientset.Interface, cfg *kubeadmapi.Discovery, timeout time.Duration) (*clientcmdapi.Config, error)

RetrieveValidatedConfigInfo connects to the API Server and tries to fetch the cluster-info ConfigMap It then makes sure it can trust the API Server by looking at the JWS-signed tokens and (if CACertHashes is not empty) validating the cluster CA against a set of pinned public keys

Source Files

token.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
21 packages
Last checked
3 hours ago

Tools for package owners.