clusterutils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigByPrefix

func ConfigByPrefix(prefix string, namespace string) (*envconf.Config, error)

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

func McpConfig() (*envconf.Config, error)

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

func OnboardingConfig() (*envconf.Config, error)

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.

Jump to

Keyboard shortcuts

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