managedcluster

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultName      = "managedcluster"
	DefaultNamespace = metav1.NamespaceDefault
)

Variables

This section is empty.

Functions

func NewManagedCluster

func NewManagedCluster(opts ...Opt) *v1alpha1.ManagedCluster

Types

type Opt

type Opt func(managedCluster *v1alpha1.ManagedCluster)

func WithAvailableUpgrades added in v0.0.4

func WithAvailableUpgrades(availableUpgrades []string) Opt

func WithClusterTemplate added in v0.0.3

func WithClusterTemplate(templateName string) Opt

func WithConfig

func WithConfig(config string) Opt

func WithCredential added in v0.0.3

func WithCredential(credName string) Opt

func WithDryRun

func WithDryRun(dryRun bool) Opt

func WithName

func WithName(name string) Opt

func WithNamespace

func WithNamespace(namespace string) Opt

func WithServiceTemplate

func WithServiceTemplate(templateName string) Opt

Jump to

Keyboard shortcuts

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