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.
Click to show internal directories.
Click to hide internal directories.