Documentation
¶
Index ¶
- func StableMCPIdentifier(onboardingName, onboardingNamespace string) (string, error)
- func StableMCPNamespace(onboardingName, onboardingNamespace string) (string, error)
- func StableRequestNameMCP(onboardingName, controllerName string) stringdeprecated
- func StableRequestNameOnboarding(onboardingName, controllerName string) stringdeprecated
- func StableRequestNameWorkload(onboardingName, controllerName string) stringdeprecated
- func StableRequestNamespace(onboardingNamespace string) stringdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StableMCPIdentifier ¶ added in v0.11.1
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
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
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
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
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
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.