Documentation
¶
Overview ¶
Package kubeconfig provides Kubernetes config file handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SinglePath ¶
SinglePath parses KUBECONFIG and the default kubeconfig file location and ensures there is only one to return.
Types ¶
type ConfigComponent ¶
type ConfigComponent string
ConfigComponent identifies part of kubeconfig.
const ( Cluster ConfigComponent = "cluster" AuthInfo ConfigComponent = "auth" Context ConfigComponent = "context" )
Kubeconfig components.
type ConflictDecision ¶
type ConflictDecision string
ConflictDecision is returned from ConflictHandler.
const ( OverwriteDecision ConflictDecision = "overwrite" RenameDecision ConflictDecision = "rename" )
Conflict decisions.
type MergeOptions ¶
type MergeOptions struct { ConflictHandler func(ConfigComponent, string) (ConflictDecision, error) OutputWriter io.Writer ForceContextName string ActivateContext bool }
MergeOptions controls Merge process.
type Merger ¶
type Merger clientcmdapi.Config
Merger handles merging of Kubernetes client config files.
func (*Merger) Merge ¶
func (merger *Merger) Merge(config *clientcmdapi.Config, options MergeOptions) error
Merge the provided kubernetes config in.
Click to show internal directories.
Click to hide internal directories.