Back to godoc.org
k8s.io/kubernetes / cmd / kubeadm / app / discovery

Package discovery

v1.19.2
Latest Go to latest

The latest major version is .

Published: Sep 16, 2020 | License: Apache-2.0 | Module: k8s.io/kubernetes

Index

Constants

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

TokenUser defines token user

func DiscoverValidatedKubeConfig

func DiscoverValidatedKubeConfig(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

func For(cfg *kubeadmapi.JoinConfiguration) (*clientcmdapi.Config, error)

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier