enable

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Overview

Copyright Contributors to the Open Cluster Management project

Copyright Contributors to the Open Cluster Management project

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyAddon added in v0.6.0

func ApplyAddon(addonClient addonclientset.Interface, addon *addonv1alpha1.ManagedClusterAddOn) error

func NewClusterAddonInfo

func NewClusterAddonInfo(cn string, o *Options, an string) (*addonv1alpha1.ManagedClusterAddOn, error)

func NewCmd

NewCmd...

Types

type ClusterAddonInfo

type ClusterAddonInfo struct {
	ClusterName string
	NameSpace   string
	AddonName   string
	Annotations map[string]string
}

type Options

type Options struct {
	//ClusteradmFlags: The generic options from the clusteradm cli-runtime.
	ClusteradmFlags *genericclioptionsclusteradm.ClusteradmFlags
	// ClusterOptions is the option for setting clusters
	ClusterOptions *genericclioptionsclusteradm.ClusterOption
	//A list of comma separated addon names
	Names []string
	//The specified namespace for addon to install
	Namespace string
	//The file to output the resources will be sent to the file.
	OutputFile string
	//Annotations to add to the addon
	Annotate []string
	//
	Streams genericiooptions.IOStreams
}

func NewOptions added in v0.3.0

func NewOptions(clusteradmFlags *genericclioptionsclusteradm.ClusteradmFlags, streams genericiooptions.IOStreams) *Options

func (*Options) Run added in v0.3.0

func (o *Options) Run() error

func (*Options) Validate added in v0.3.0

func (o *Options) Validate() (err error)

Jump to

Keyboard shortcuts

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