Documentation ¶
Index ¶
- Constants
- func NewManagedCluster(opts ...Opt) *v1alpha1.ManagedCluster
- type Opt
- func WithAvailableUpgrades(availableUpgrades []string) Opt
- func WithClusterTemplate(templateName string) Opt
- func WithConfig(config string) Opt
- func WithCredential(credName string) Opt
- func WithDryRun(dryRun bool) Opt
- func WithName(name string) Opt
- func WithNamespace(namespace string) Opt
- func WithServiceTemplate(templateName string) Opt
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 WithClusterTemplate ¶ added in v0.0.3
func WithConfig ¶
func WithCredential ¶ added in v0.0.3
func WithDryRun ¶
func WithNamespace ¶
func WithServiceTemplate ¶
Click to show internal directories.
Click to hide internal directories.