@stolostron/multicluster-sdk
Version:
Provides extensions and APIs that dynamic plugins can use to leverage multicluster capabilities provided by Red Hat Advanced Cluster Management.
9 lines • 445 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isHubRequest = isHubRequest;
/* Copyright Contributors to the Open Cluster Management project */
const cachedHubConfiguration_1 = require("./cachedHubConfiguration");
async function isHubRequest(cluster) {
return !cluster || cluster === (await (0, cachedHubConfiguration_1.fetchHubConfiguration)())?.localHubName;
}
//# sourceMappingURL=isHubRequest.js.map