UNPKG

@stolostron/multicluster-sdk

Version:

Provides extensions and APIs that dynamic plugins can use to leverage multicluster capabilities provided by Red Hat Advanced Cluster Management.

11 lines 522 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFleetK8sAPIPath = getFleetK8sAPIPath; /* Copyright Contributors to the Open Cluster Management project */ const constants_1 = require("./constants"); function getFleetK8sAPIPath(hubClusterName, cluster) { return !cluster || cluster === hubClusterName ? constants_1.BASE_K8S_API_PATH : `${constants_1.BACKEND_URL}/${constants_1.MANAGED_CLUSTER_API_PATH}/${cluster}`; } //# sourceMappingURL=getFleetK8sAPIPath.js.map