Documentation
¶
Index ¶
- Variables
- func GetCiliumClient(kubernetesClient kubernetes.Interface, restConfig *rest.Config) (ciliumclient.Interface, error)
- func GetWorkloadClusterClient(ctx context.Context, managementClusterClient *alias.ManagementClusterClient, ...) (*alias.WorkloadClusterClient, ciliumclient.Interface, error)
- type WorkloadClusterClientFactory
- type WorkloadClusterReconciler
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
Click to show internal directories.
Click to hide internal directories.