package discovery
import "k8s.io/kubernetes/cmd/kubeadm/app/discovery"
Index ¶
- Constants
- func For(cfg *kubeadmapi.NodeConfiguration) (*clientcmdapi.Config, error)
- func GetValidatedClusterInfoObject(cfg *kubeadmapi.NodeConfiguration) (*clientcmdapi.Cluster, error)
Constants ¶
const TokenUser = "tls-bootstrap-token-user"
Functions ¶
func For ¶
func For(cfg *kubeadmapi.NodeConfiguration) (*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
func GetValidatedClusterInfoObject ¶
func GetValidatedClusterInfoObject(cfg *kubeadmapi.NodeConfiguration) (*clientcmdapi.Cluster, error)
GetValidatedClusterInfoObject returns a validated Cluster object that specifies where the cluster is and the CA cert to trust
Source Files ¶
discovery.go
Directories ¶
Path | Synopsis |
---|---|
cmd/kubeadm/app/discovery/file | |
cmd/kubeadm/app/discovery/https | |
cmd/kubeadm/app/discovery/token |
- Version
- v1.7.4-beta.0
- Published
- Aug 3, 2017
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 4 minutes ago –
Tools for package owners.