cluster

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExecutionFailed

func IsExecutionFailed(err error) bool

IsExecutionFailed asserts executionFailedError.

Types

type Cluster

type Cluster struct {
	Name                       string
	Namespace                  string
	Region                     string
	KubernetesControllerClient client.Client
	KubernetesClientSet        kubernetes.Interface

	AWSSession *session.Session
	MC         *ManagementCluster
}

func New

func New(c Config) (*Cluster, error)

func (*Cluster) RefreshAWSCredentials

func (c *Cluster) RefreshAWSCredentials() error

func (*Cluster) RefreshAWSCredentialsIfExpired

func (c *Cluster) RefreshAWSCredentialsIfExpired() (bool, error)

RefreshAWSCredentialsIfExpired will refresh AWS credentials if they are expired it will return true in case the credentials were refreshed or false in cas they are stil valid

type Config

type Config struct {
	MCCapi           string
	MCVintage        string
	ClusterName      string
	ClusterNamespace string
}

type ManagementCluster

type ManagementCluster struct {
	CapiMC    string
	VintageMC string

	CapiKubernetesClient    client.Client
	VintageKubernetesClient client.Client
	VaultClient             *vaultapi.Client
}

Jump to

Keyboard shortcuts

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