utils

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StableMCPIdentifier added in v0.11.1

func StableMCPIdentifier(onboardingName, onboardingNamespace string) (string, error)

StableMCPIdentifier computes a string that is stable for the given MCP name and namespace and at the same time unique across all MCPs. This can be used to name cluster-scoped resources on the platform cluster. It is recommended to add a prefix or suffix to it. For namespaced resources, use the MCP-specific namespace (get the name via StableMCPNamespace). onboardingName and onboardingNamespace are name and namespace of the MCP resource on the onboarding cluster.

func StableMCPNamespace added in v0.11.1

func StableMCPNamespace(onboardingName, onboardingNamespace string) (string, error)

StableMCPNamespace computes the namespace on the onboarding cluster that belongs to the given MCP. onboardingName and onboardingNamespace are name and namespace of the MCP resource on the onboarding cluster.

func StableRequestNameMCP deprecated

func StableRequestNameMCP(onboardingName, controllerName string) string

StableRequestNameMCP returns a stable name for MCP requests that can be used in a request namespace on the platform cluster. onboardingName is the name of the reconciled resource on the onboarding cluster. controllerName is the name of the controller that is reconciling the resource.

Deprecated: Since every MCP now has its own namespace on the platform cluster, producing unique names this way is not required anymore for namespace-scoped resources. Use StableMCPIdentifier for cluster-scoped resources.

func StableRequestNameOnboarding deprecated

func StableRequestNameOnboarding(onboardingName, controllerName string) string

StableRequestNameOnboarding returns a stable name for Onboarding requests that can be used in a request namespace on the platform cluster. onboardingName is the name of the reconciled resource on the onboarding cluster. controllerName is the name of the controller that is reconciling the resource.

Deprecated: Since each MCP now has its own namespace, the controller can choose the request name relatively freely (just avoid conflicts with other controllers).

func StableRequestNameWorkload deprecated

func StableRequestNameWorkload(onboardingName, controllerName string) string

StableRequestNameWorkload returns a stable name for Workload requests that can be used in a request namespace on the platform cluster. onboardingName is the name of the reconciled resource on the onboarding cluster. controllerName is the name of the controller that is reconciling the resource.

Deprecated: Since each MCP now has its own namespace, the controller can choose the request name relatively freely (just avoid conflicts with other controllers).

func StableRequestNamespace deprecated

func StableRequestNamespace(onboardingNamespace string) string

StableRequestNamespace returns a stable namespace for ClusterRequests and AccessRequests, that can be created/used on the platform cluster. onboardingNamespace is the namespace of the reconciled resource on the onboarding cluster.

Deprecated: Use StableMCPNamespace instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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