addons

package
v2.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApplyOptions

func CreateApplyOptions(configFlags *genericclioptions.ConfigFlags, manifests []string, version string) (*apply.ApplyOptions, error)

func DoPatchCluster

func DoPatchCluster(client dynamic.Interface, name string, data []byte) error

func DoServerSideApply

func DoServerSideApply(ctx context.Context, cfg *rest.Config, objectYAML []byte) error

func GetCluster

func GetCluster(name string) (*unstructured.Unstructured, error)

func InstallAddons

func InstallAddons(kubeConf *common.KubeConf, addon *kubekeyapiv1alpha2.Addon, kubeConfig string) error

func InstallChart

func InstallChart(kubeConf *common.KubeConf, addon *kubekeyapiv1alpha2.Addon, kubeConfig string) error

func InstallYaml

func InstallYaml(manifests []string, namespace, kubeConfig, version string) error

func NewConfigFlags

func NewConfigFlags(kubeconfig, namespace string) *genericclioptions.ConfigFlags

func ToOptions

func ToOptions(flags *apply.ApplyFlags, manifests []string, version string) (*apply.ApplyOptions, error)

Types

type AddonsModule

type AddonsModule struct {
	common.KubeModule
	Skip bool
}

func (*AddonsModule) Init

func (a *AddonsModule) Init()

func (*AddonsModule) IsSkip

func (a *AddonsModule) IsSkip() bool

type Install

type Install struct {
	common.KubeAction
}

func (*Install) Execute

func (i *Install) Execute(runtime connector.Runtime) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL