giantnetes

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CAPI = "capi"
)
View Source
const (
	LabelCAPIControlPlaneNode = "node-role.kubernetes.io/control-plane=''"
)

Variables

This section is empty.

Functions

func AwsCAPIEtcdEndpoint

func AwsCAPIEtcdEndpoint(clusterID string, baseDomain string) string

func AzureEtcdEndpoint

func AzureEtcdEndpoint(etcdDomain string) string

func CAPIEtcdEndpoint added in v3.2.0

func CAPIEtcdEndpoint(component string, nodeName string) string

func IsFailedBackup

func IsFailedBackup(err error) bool

IsFailedBackup asserts failedBackupError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsUnableToGetTenantClusters

func IsUnableToGetTenantClusters(err error) bool

IsUnableToGetTenantClusters asserts unableToGetTenantClustersError.

func KVMEtcdEndpoint

func KVMEtcdEndpoint(etcdDomain string) string

Types

type Cluster

type Cluster struct {
	// contains filtered or unexported fields
}

type ETCDInstance

type ETCDInstance struct {
	Name   string
	ETCDv2 ETCDv2Settings
	ETCDv3 ETCDv3Settings
}

type ETCDv2Settings

type ETCDv2Settings struct {
	DataDir string
}

func (ETCDv2Settings) AreComplete

func (s ETCDv2Settings) AreComplete() bool

type ETCDv3Settings

type ETCDv3Settings struct {
	Endpoints string
	Proxy     *proxy.Proxy
	TLSConfig *tls.Config
}

func (ETCDv3Settings) AreComplete

func (s ETCDv3Settings) AreComplete() bool

type TLSClientConfig

type TLSClientConfig struct {
	CAData  []byte
	KeyData []byte
	CrtData []byte
}

type Utils

type Utils struct {
	K8sClient k8sclient.Interface
	// contains filtered or unexported fields
}

func NewUtils

func NewUtils(logger micrologger.Logger, client k8sclient.Interface) (*Utils, error)

func (*Utils) GetTenantClusters

func (u *Utils) GetTenantClusters(ctx context.Context) ([]ETCDInstance, error)

Jump to

Keyboard shortcuts

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