Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
K8sClient *kubernetes.Clientset
)
View Source
var (
KindShortNames = map[string][]string{
"Deployment": {"deploy", "deployments"},
"StatefulSet": {"sts", "statefulsets"},
"DaemonSet": {"ds", "daemonsets"},
}
)
Functions ¶
Types ¶
type Replacement ¶
type StatefulReplace ¶
type StatefulReplace struct { Namespace string `yaml:"namespace" json:"namespace"` Kind string `yaml:"kind" json:"kind"` Name string `yaml:"name" json:"name"` Replacements []Replacement `yaml:"replacements" json:"replacements"` }
func LoadConfig ¶
func LoadConfig(f string) (*StatefulReplace, error)
func (*StatefulReplace) ReplaceDaemonSet ¶
func (sr *StatefulReplace) ReplaceDaemonSet() error
func (*StatefulReplace) ReplaceDeployment ¶
func (sr *StatefulReplace) ReplaceDeployment() error
func (*StatefulReplace) ReplaceStatefulSet ¶
func (sr *StatefulReplace) ReplaceStatefulSet() error
func (*StatefulReplace) Run ¶
func (sr *StatefulReplace) Run() error
Click to show internal directories.
Click to hide internal directories.