cluster

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MigrationFileEmpty = &microerror.Error{
	Kind: "migrationFileEmpty",
}

Functions

This section is empty.

Types

type AppExtraConfig

type AppExtraConfig struct {
	Kind      string
	Name      string
	Namespace string
	Yaml      []byte
}

type Cluster

type Cluster struct {
	WcName       string
	OrgNamespace string
	Apps         []apps.App

	SrcMC *ManagementCluster
	DstMC *ManagementCluster

	BackOff backoff.BackOff
}

func Login

func Login(srcMC string, dstMc string) (*Cluster, error)

todo: migrate to single cluster login

func (*Cluster) AppYamlFile

func (c *Cluster) AppYamlFile(filename string) string

func (*Cluster) ApplyCAPIApps

func (c *Cluster) ApplyCAPIApps(filename string) error

func (*Cluster) DumpApps

func (c *Cluster) DumpApps(f *os.File) error

type ManagementCluster

type ManagementCluster struct {
	Name      string
	Namespace string

	KubernetesClient client.Client
}

func (*ManagementCluster) GetWCHealth

func (c *ManagementCluster) GetWCHealth(clusterName string) (string, error)

todo: access clusterName by *Cluster

func (*ManagementCluster) RemoveFinalizerOnNamespace

func (c *ManagementCluster) RemoveFinalizerOnNamespace() error

func (*ManagementCluster) SetFinalizerOnNamespace

func (c *ManagementCluster) SetFinalizerOnNamespace() error

Jump to

Keyboard shortcuts

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