Documentation ¶
Index ¶
- func CreateClientProviderFromClusterIdentity(ctx context.Context, client client.Client, namespace string, ...) (*scope.ClientProvider, error)
- func GetClusterIdentityFromRef(ctx context.Context, c client.Client, ociClusterNamespace string, ...) (*infrastructurev1beta2.OCIClusterIdentity, error)
- func GetOrBuildClientFromIdentity(ctx context.Context, c client.Client, ...) (*scope.ClientProvider, error)
- func InitClientsAndRegion(ctx context.Context, client client.Client, defaultRegion string, ...) (*scope.ClientProvider, string, scope.OCIClients, error)
- func IsClusterNamespaceAllowed(ctx context.Context, k8sClient client.Client, ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClientProviderFromClusterIdentity ¶
func CreateClientProviderFromClusterIdentity(ctx context.Context, client client.Client, namespace string, defaultRegion string, clusterAccessor scope.OCIClusterAccessor, identityRef *corev1.ObjectReference) (*scope.ClientProvider, error)
CreateClientProviderFromClusterIdentity creates scope.ClientProvider from Cluster Identity
func GetClusterIdentityFromRef ¶
func GetClusterIdentityFromRef(ctx context.Context, c client.Client, ociClusterNamespace string, ref *corev1.ObjectReference) (*infrastructurev1beta2.OCIClusterIdentity, error)
GetClusterIdentityFromRef returns the OCIClusterIdentity referenced by the OCICluster.
func GetOrBuildClientFromIdentity ¶
func GetOrBuildClientFromIdentity(ctx context.Context, c client.Client, identity *infrastructurev1beta2.OCIClusterIdentity, defaultRegion string, clientOverrides *infrastructurev1beta2.ClientOverrides, namespace string) (*scope.ClientProvider, error)
GetOrBuildClientFromIdentity creates ClientProvider from OCIClusterIdentity object
func InitClientsAndRegion ¶
func InitClientsAndRegion(ctx context.Context, client client.Client, defaultRegion string, clusterAccessor scope.OCIClusterAccessor, defaultClientProvider *scope.ClientProvider) (*scope.ClientProvider, string, scope.OCIClients, error)
InitClientsAndRegion initializes the OCI Clients and Region based on various parameters
func IsClusterNamespaceAllowed ¶
func IsClusterNamespaceAllowed(ctx context.Context, k8sClient client.Client, allowedNamespaces *infrastructurev1beta2.AllowedNamespaces, namespace string) bool
IsClusterNamespaceAllowed indicates if the cluster namespace is allowed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.