Documentation
¶
Index ¶
- func ConfigByPrefix(prefix string, namespace string) (*envconf.Config, error)
- func ImportToMcpCluster(ctx context.Context, dir string, options ...wait.Option) (*unstructured.UnstructuredList, error)
- func ImportToOnboardingCluster(ctx context.Context, dir string, options ...wait.Option) (*unstructured.UnstructuredList, error)
- func McpConfig() (*envconf.Config, error)
- func OnboardingConfig() (*envconf.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigByPrefix ¶
ConfigByPrefix returns an environment Config with the passed in namespace and a klient that is set up to interact with the cluster identified by the passed in cluster name prefix
func ImportToMcpCluster ¶
func ImportToMcpCluster(ctx context.Context, dir string, options ...wait.Option) (*unstructured.UnstructuredList, error)
ImportToMcpCluster applies a set of resources from a directory to the mcp cluster
func ImportToOnboardingCluster ¶
func ImportToOnboardingCluster(ctx context.Context, dir string, options ...wait.Option) (*unstructured.UnstructuredList, error)
ImportToOnboardingCluster applies a set of resources from a directory to the onboarding cluster
func McpConfig ¶
McpConfig is a utility function to return an environment config to work with the mcp cluster and default namespace. In scenarios where you work with multiple MCPs, use ConfigByPrefix instead
func OnboardingConfig ¶
OnboardingConfig is a utility function to return an environment config to work with the onboarding cluster and default namespace In scenarios where you work with multiple onboarding clusters, use ConfigByPrefix instead
Types ¶
This section is empty.