workload

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCiliumNotInstalled = errors.New("cilium not installed")

Functions

func GetCiliumClient added in v1.2.0

func GetCiliumClient(
	kubernetesClient kubernetes.Interface, restConfig *rest.Config,
) (ciliumclient.Interface, error)

func GetWorkloadClusterClient added in v1.2.0

func GetWorkloadClusterClient(
	ctx context.Context,
	managementClusterClient *alias.ManagementClusterClient,
	cluster *capiv2.Cluster,
	tracingWrapper func(http.RoundTripper) http.RoundTripper,
	controllerKubeconfigName string,
) (*alias.WorkloadClusterClient, ciliumclient.Interface, error)

Types

type WorkloadClusterClientFactory added in v1.2.0

type WorkloadClusterClientFactory = func(
	ctx context.Context,
	managementClusterClient *alias.ManagementClusterClient,
	cluster *capiv2.Cluster,
) (*alias.WorkloadClusterClient, ciliumclient.Interface, error)

type WorkloadClusterReconciler

type WorkloadClusterReconciler interface {
	ReconcileWorkloadClusterResources(
		ctx context.Context,
		hostedControlPlane *v1alpha1.HostedControlPlane,
		cluster *capiv2.Cluster,
	) (string, error)
}

func NewWorkloadClusterReconciler

func NewWorkloadClusterReconciler(
	managementClusterClient *alias.ManagementClusterClient,
	workloadClusterClientFactory WorkloadClusterClientFactory,
	caCertificateDuration time.Duration,
	certificateDuration time.Duration,
	serviceDomain string,
	serviceCIDR string,
	podCIDR string,
	dnsIP net.IP,
	konnectivityNamespace string,
	konnectivityServiceAccount string,
	konnectivityServerAudience string,
	konnectivityServicePort int32,
) WorkloadClusterReconciler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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