Documentation ¶
Index ¶
- func JudgeJsonEqual(a interface{}, b interface{}) bool
- func MergeHotplug(commonConfig, clusterConfig hotplugv1.Hotplug) hotplugv1.Hotplug
- func MergeJson(a, b map[string]interface{}) map[string]interface{}
- func MergeYamlString(ayaml, byaml string) (string, error)
- func SetupWithManager(mgr ctrl.Manager, isMemberCluster bool, clusterName string) error
- func YamlStringToJson(yamlStr string) (map[string]interface{}, error)
- type Helm
- func (h *Helm) GetActionConfig(namespace string) (*action.Configuration, error)
- func (h *Helm) GetValues(namespace string, name string) (map[string]interface{}, error)
- func (h *Helm) Install(namespace, name, pkgName string, envs map[string]interface{}) (*release.Release, error)
- func (h *Helm) List(namespace string) ([]*release.Release, error)
- func (h *Helm) Status(namespace string, name string) (*release.Release, error)
- func (h *Helm) Uninstall(namespace string, name string) error
- func (h *Helm) Upgrade(namespace, name, pkgName string, envs map[string]interface{}) (*release.Release, error)
- type HotplugReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeHotplug ¶
MergeHotplug use clusterConfig to cover commonConfig.
func SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
func YamlStringToJson ¶
translate string to json
Types ¶
type Helm ¶
type Helm struct { K8sConfig *rest.Config ActionConfig map[string]*action.Configuration }
func (*Helm) GetActionConfig ¶
func (h *Helm) GetActionConfig(namespace string) (*action.Configuration, error)
get action config
func (*Helm) Install ¶
func (h *Helm) Install(namespace, name, pkgName string, envs map[string]interface{}) (*release.Release, error)
helm install
Click to show internal directories.
Click to hide internal directories.