kubernetesk8s.io/kubernetes/cmd/kubeadm/app/util/config Index | Files

package cmd

import "k8s.io/kubernetes/cmd/kubeadm/app/util/config"

Index

Functions

func ConfigFileAndDefaultsToInternalConfig

func ConfigFileAndDefaultsToInternalConfig(cfgPath string, defaultversionedcfg *kubeadmapiext.MasterConfiguration) (*kubeadmapi.MasterConfiguration, error)

ConfigFileAndDefaultsToInternalConfig takes a path to a config file and a versioned configuration that can serve as the default config If cfgPath is specified, defaultversionedcfg will always get overridden. Otherwise, the default config (often populated by flags) will be used. Then the external, versioned configuration is defaulted and converted to the internal type. Right thereafter, the configuration is defaulted again with dynamic values (like IP addresses of a machine, etc) Lastly, the internal config is validated and returned.

func SetInitDynamicDefaults

func SetInitDynamicDefaults(cfg *kubeadmapi.MasterConfiguration) error

func TryLoadMasterConfiguration

func TryLoadMasterConfiguration(cfgPath string, cfg *kubeadmapiext.MasterConfiguration) error

TryLoadMasterConfiguration tries to loads a Master configuration from the given file (if defined)

Source Files

masterconfig.go

Version
v1.8.6
Published
Dec 20, 2017
Platform
js/wasm
Imports
14 packages
Last checked
3 minutes ago

Tools for package owners.