providerinterface

package
v1.11.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingClusterIdentityRef = errors.New("cluster identity reference is not found")

Functions

func FindClusterIdentity added in v1.5.0

func FindClusterIdentity(ctx context.Context, rgnClient client.Client, clusterIdentityObjRef *corev1.ObjectReference) (*kcmv1.ClusterIdentity, error)

FindClusterIdentity gets the first found ProviderInterface with the specified ClusterIdentity and returns the ClusterIdentity definition if specified

func FindProviderInterfaceForInfra

func FindProviderInterfaceForInfra(ctx context.Context, rgnClient client.Client, parent clusterParent, infra string) *kcmv1.ProviderInterface

FindProviderInterfaceForInfra gets the first found ProviderInterface that is a part of the component exposing the given infrastructure provider.

It first tries the standard CAPI provider label ("cluster.x-k8s.io/provider"); on miss it falls back to the flux helm-chart-name label for backward compatibility with ProviderInterfaces installed via their provider's own HelmRelease that don't yet carry the CAPI label

Types

This section is empty.

Jump to

Keyboard shortcuts

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