controlplane

package
v0.0.0-...-1f6a80c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Cluster is the DPU cluster for which the config is being fetched.
	Cluster *provisioningv1.DPUCluster
	// contains filtered or unexported fields
}

Config hold the cluster configuration. It provides methods to get the client, clientset, and rest config for the cluster.

func GetConfigs

func GetConfigs(ctx context.Context, c client.Client) ([]*Config, error)

GetConfigs returns a list of Configs for all DPU clusters.

func NewConfig

func NewConfig(c client.Client, cluster *provisioningv1.DPUCluster) *Config

NewConfig returns a new Config.

func (*Config) Client

func (cc *Config) Client(ctx context.Context) (client.Client, error)

Client returns a new client for the cluster.

func (*Config) Clientset

func (cc *Config) Clientset(ctx context.Context) (*kubernetes.Clientset, []byte, error)

Clientset returns a new clientset for the cluster.

func (*Config) ClusterNamespaceName

func (cc *Config) ClusterNamespaceName() string

func (*Config) Kubeconfig

func (cc *Config) Kubeconfig(ctx context.Context) (*clientcmdv1.Config, error)

Kubeconfig returns the kubeconfig for the cluster.

Jump to

Keyboard shortcuts

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