Documentation
¶
Index ¶
- func ClustersReady(ctx context.Context, c *envconf.Config, options ...wait.Option) error
- func CreateMCP(name string, opts ...wait.Option) features.Func
- func DeleteCluster(ctx context.Context, c *envconf.Config, ref types.NamespacedName, ...) error
- func DeleteClusterProvider(ctx context.Context, c *envconf.Config, name string, opts ...wait.Option) error
- func DeleteMCP(name string, opts ...wait.Option) features.Func
- func DeleteServiceProvider(ctx context.Context, c *envconf.Config, name string, opts ...wait.Option) error
- func ImportDomainAPIs(directory string, opts ...wait.Option) features.Func
- func ImportServiceProviderAPIs(directory string, opts ...wait.Option) features.Func
- func InstallClusterProvider(ctx context.Context, c *envconf.Config, clusterProvider ClusterProviderSetup) error
- func InstallServiceProvider(ctx context.Context, c *envconf.Config, sp ServiceProviderSetup) error
- type ClusterProviderSetup
- type ServiceProviderSetup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClustersReady ¶
ClustersReady returns true if all cluster objects are ready
func CreateMCP ¶
CreateMCP creates an MCP object on the onboarding cluster and waits until it is ready
func DeleteCluster ¶
func DeleteCluster(ctx context.Context, c *envconf.Config, ref types.NamespacedName, options ...wait.Option) error
DeleteCluster deletes the referenced cluster object
func DeleteClusterProvider ¶
func DeleteClusterProvider(ctx context.Context, c *envconf.Config, name string, opts ...wait.Option) error
DeleteClusterProvider deletes the cluster provider object and waits until the object has been deleted
func DeleteMCP ¶
DeleteMCP deletes the MCP object on the onboarding cluster and waits until the object has been deleted
func DeleteServiceProvider ¶
func DeleteServiceProvider(ctx context.Context, c *envconf.Config, name string, opts ...wait.Option) error
DeleteServiceProvider deletes the service provider object on the platform cluster and waits until the object has been deleted
func ImportDomainAPIs ¶
ImportDomainAPIs iterates over each resource from the passed in directory and applies it to a MCP cluster
func ImportServiceProviderAPIs ¶
ImportServiceProviderAPIs iterates over each resource from the passed in directory and applies it to the onboarding cluster
func InstallClusterProvider ¶
func InstallClusterProvider(ctx context.Context, c *envconf.Config, clusterProvider ClusterProviderSetup) error
InstallClusterProvider creates a cluster provider object on the platform cluster and waits until it is ready
func InstallServiceProvider ¶
InstallServiceProvider creates a service provider object on the platform cluster and waits until it is ready
Types ¶
type ClusterProviderSetup ¶
type ClusterProviderSetup struct {
Name string
Image string
WaitOpts []wait.Option
// LoadImageToCluster allows using local images that have to be loaded into the kind cluster
LoadImageToCluster bool
}
ClusterProviderSetup represents the configuration parameters to set up a cluster provider
type ServiceProviderSetup ¶
type ServiceProviderSetup struct {
Name string
Image string
WaitOpts []wait.Option
// LoadImageToCluster allows using local images that have to be loaded into the kind cluster
LoadImageToCluster bool
}
ServiceProviderSetup represents the configuration parameters to set up a service provider