package kubeconfig
import "k8s.io/kubernetes/cmd/kubeadm/app/phases/kubeconfig"
Index ¶
- func CreateInitKubeConfigFiles(masterEndpoint, pkiDir, outDir string) error
- func GetKubeConfigBytesFromSpec(config BuildConfigProperties) ([]byte, error)
- type BuildConfigProperties
Functions ¶
func CreateInitKubeConfigFiles ¶
CreateInitKubeConfigFiles is called from the main init and does the work for the default phase behaviour
func GetKubeConfigBytesFromSpec ¶
func GetKubeConfigBytesFromSpec(config BuildConfigProperties) ([]byte, error)
GetKubeConfigBytesFromSpec takes properties how to build a KubeConfig file and then returns the bytes of that file
Types ¶
type BuildConfigProperties ¶
type BuildConfigProperties struct { CertDir string ClientName string Organization []string APIServer string Token string MakeClientCerts bool }
BuildConfigProperties holds some simple information about how this phase should build the KubeConfig object
Source Files ¶
doc.go kubeconfig.go
- Version
- v1.6.11
- Published
- Sep 28, 2017
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 2 hours ago –
Tools for package owners.