kubernetes

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetK8sClient

func GetK8sClient(
	clientMgr *KubeMultiClientManager,
	orgName, name string,
	kubernetesCluster openchoreov1alpha1.KubernetesClusterSpec,
) (client.Client, error)

GetK8sClient retrieves a Kubernetes client for the specified org and cluster.

Types

type KubeMultiClientManager

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

KubeMultiClientManager maintains a cache of Kubernetes clients keyed by a unique identifier.

func NewManager

func NewManager() *KubeMultiClientManager

NewManager initializes a new KubeMultiClientManager.

func (*KubeMultiClientManager) GetClient

GetClient returns an existing Kubernetes client or creates one using the provided credentials.

Jump to

Keyboard shortcuts

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