Documentation ¶
Index ¶
- Variables
- func Clientset() kubernetes.Interface
- func ErrorPrintHelpAndExit(options interface{}, message string)
- func GetNodeInfo(name string) (string, string, string, error)
- func InstallSignalHandler(stop chan struct{})
- func ParseArgs(options interface{})
- func PrepareMergePatchData(path string, value interface{}) (data []byte, err error)
- func PrepareUpdateMap(updates map[string]interface{}, path string, key string, value interface{}) error
- type KeyFileStruct
- type KeyMap
- type RawKeyMap
Constants ¶
This section is empty.
Variables ¶
var Verbose = false
Verbose logging
Functions ¶
func Clientset ¶
func Clientset() kubernetes.Interface
Clientset abstracts the cluster config loading both locally and on Kubernetes
func ErrorPrintHelpAndExit ¶
func ErrorPrintHelpAndExit(options interface{}, message string)
ErrorPrintHelpAndExit prints the message, the help message and exits
func GetNodeInfo ¶
GetNodeInfo returns the node name, environment and datacenter from a fqdn
func InstallSignalHandler ¶
func InstallSignalHandler(stop chan struct{})
InstallSignalHandler sends a message on sigint or sigterm
func ParseArgs ¶
func ParseArgs(options interface{})
ParseArgs needs a struct compatible to jeddevdk/go-flags and will fill it based on CLI parameters.
func PrepareMergePatchData ¶
PrepareMergePatchData generates JSON merge patch payload to be used in k8s Patch methods
Types ¶
type KeyFileStruct ¶
type KeyMap ¶
func ConvertRawDataToKeyMap ¶
Convert file content to a key map
func GetMasterKeysAndRemoveKeyFile ¶
func GetMasterKeysAndRemoveKeyFile() KeyMap
Called as one of the first steps of agent/server programs (before it can crash). When running under Mesos, it removes the password file from the Mesos sandbox.