kubernetesk8s.io/kubernetes/cmd/kubeadm/app/discovery Index | Files | Directories

package discovery

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

Index

Constants

const TokenUser = "tls-bootstrap-token-user"

TokenUser defines token user

Functions

func DiscoverValidatedKubeConfig

func DiscoverValidatedKubeConfig(dryRunClient clientset.Interface, cfg *kubeadmapi.JoinConfiguration) (*clientcmdapi.Config, error)

DiscoverValidatedKubeConfig returns a validated Config object that specifies where the cluster is and the CA cert to trust

func For

For returns a kubeconfig object that can be used for doing the TLS Bootstrap with the right credentials Also, before returning anything, it makes sure it can trust the API Server

Source Files

discovery.go

Directories

PathSynopsis
cmd/kubeadm/app/discovery/file
cmd/kubeadm/app/discovery/https
cmd/kubeadm/app/discovery/token
Version
v1.33.2 (latest)
Published
Jun 17, 2025
Platform
js/wasm
Imports
11 packages
Last checked
1 hour ago

Tools for package owners.