@prorobotech/openapi-k8s-toolkit 1.4.0-alpha.33 → 1.4.0-alpha.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-C8Shx6eo.mjs → index-DYHfFWOs.mjs} +2 -2
- package/dist/{index-C8Shx6eo.mjs.map → index-DYHfFWOs.mjs.map} +1 -1
- package/dist/{index-DstjN_y0.mjs → index-bM0NLvVb.mjs} +24 -42
- package/dist/{index-DstjN_y0.mjs.map → index-bM0NLvVb.mjs.map} +1 -1
- package/dist/openapi-k8s-toolkit.es.js +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +22 -40
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/Volumes/utils.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { af as BackToDefaultIcon, aM as BlackholeForm, aL as BlackholeFormProvider, aH as ClusterListTable, ac as ConfirmModal, aq as ContentCard, aw as CursorDefaultDiv, au as CursorPointerTag, av as CursorPointerTagMinContent, at as CustomSelect, D as DeleteIcon, l as DeleteModal, n as DeleteModalMany, ae as DownIcon, aZ as DynamicComponents, aY as DynamicRenderer, a_ as DynamicRendererWithProviders, ap as EarthIcon, h as EditIcon, aG as EnrichedTable, E as EnrichedTableProvider, ay as ErrorBoundary, az as ErrorBoundaryWithDataReset, aX as Events, ar as FlexGrow, ak as LockedIcon, ao as LookingGlassIcon, aC as ManageableBreadcrumbs, aA as ManageableBreadcrumbsProvider, aF as ManageableSidebar, aD as ManageableSidebarProvider, aO as MarketPlace, aP as MarketplaceCard, aj as MinusIcon, aS as NodeTerminal, i as PaddingContainer, am as PauseCircleIcon, ai as PlusIcon, aT as PodLogs, aU as PodLogsMonaco, aR as PodTerminal, aQ as ProjectInfoCard, ax as ResourceLink, an as ResumeCircleIcon, aW as Search, aa as Spacer, ag as SuccessIcon, ab as TreeWithSearch, as as UncontrolledSelect, al as UnlockedIcon, ad as UpIcon, aV as VMVNC, aK as YamlEditorSingleton, M as checkIfApiInstanceNamespaceScoped, N as checkIfBuiltInInstanceNamespaceScoped, I as checkPermission, bu as convertBytes, bC as convertCompute, bz as convertCores, bx as convertStorage, bd as createContextFactory, q as createNewEntry, bf as deepMerge, t as deleteEntry, ah as feedbackIcons, K as filterIfApiInstanceNamespaceScoped, L as filterIfBuiltInInstanceNamespaceScoped, b1 as filterSelectOptions, b3 as floorToDecimal, bv as formatBytesAuto, bA as formatCoresAuto, bE as formatDateAuto, b8 as getAllPathsFromObj, w as getApiResourceSingle, B as getApiResourceTypes, C as getApiResourceTypesByApiGroup, v as getApiResources, y as getBuiltinResourceSingle, F as getBuiltinResourceTypes, x as getBuiltinResources, bb as getBuiltinTreeData, o as getClusterList, G as getCrdData, A as getCrdResourceSingle, z as getCrdResources, H as getDirectUnknownResource, aI as getEnrichedColumns, aJ as getEnrichedColumnsWithControls, bc as getGroupsByCategory, O as getKinds, bo as getLinkToApiForm, bn as getLinkToBuiltinForm, k as getLinkToForm, bt as getNamespaceLink, aN as getObjectFormItemsDraft, b9 as getPrefixSubarrays, bs as getResourceLink, bg as getSortedKinds, bh as getSortedKindsAll, b2 as getStringByName, J as getSwagger, bj as getUppercase, ba as groupsToTreeData, bi as hslFromString, br as includesArray, b0 as isFlatObject, bq as isMultilineFromYaml, bp as isMultilineString, bF as isValidRFC3339, bk as kindByGvr, bm as namespacedByGvr, b7 as normalizeValuesForQuotasToNumber, bD as parseCoresWithUnit, b4 as parseQuotaValue, b5 as parseQuotaValueCpu, b6 as parseQuotaValueMemoryAndStorage, by as parseValueWithUnit, bl as pluralByKind, aB as prepareDataForManageableBreadcrumbs, aE as prepareDataForManageableSidebar, a$ as prepareTemplate, be as prepareUrlsToFetchForDynamicRenderer, bw as toBytes, bB as toCores, r as updateEntry, T as useApiResourceSingle, Z as useApiResourceTypesByGroup, S as useApiResources, Y as useApisResourceTypes, V as useBuiltinResourceSingle, $ as useBuiltinResourceTypes, U as useBuiltinResources, Q as useClusterList, a0 as useCrdData, X as useCrdResourceSingle, W as useCrdResources, e as useDirectUnknownResource, a2 as useInfiniteSentinel, f as useK8sSmartResource, a3 as useK8sVerbs, a7 as useKinds, a8 as useKindsRaw, a1 as useListWatch, a4 as useManyK8sSmartResource, d as usePermissions, a9 as usePluginManifest, a6 as useResourceScope, a5 as useSmartResourceParams } from './index-
|
|
1
|
+
export { af as BackToDefaultIcon, aM as BlackholeForm, aL as BlackholeFormProvider, aH as ClusterListTable, ac as ConfirmModal, aq as ContentCard, aw as CursorDefaultDiv, au as CursorPointerTag, av as CursorPointerTagMinContent, at as CustomSelect, D as DeleteIcon, l as DeleteModal, n as DeleteModalMany, ae as DownIcon, aZ as DynamicComponents, aY as DynamicRenderer, a_ as DynamicRendererWithProviders, ap as EarthIcon, h as EditIcon, aG as EnrichedTable, E as EnrichedTableProvider, ay as ErrorBoundary, az as ErrorBoundaryWithDataReset, aX as Events, ar as FlexGrow, ak as LockedIcon, ao as LookingGlassIcon, aC as ManageableBreadcrumbs, aA as ManageableBreadcrumbsProvider, aF as ManageableSidebar, aD as ManageableSidebarProvider, aO as MarketPlace, aP as MarketplaceCard, aj as MinusIcon, aS as NodeTerminal, i as PaddingContainer, am as PauseCircleIcon, ai as PlusIcon, aT as PodLogs, aU as PodLogsMonaco, aR as PodTerminal, aQ as ProjectInfoCard, ax as ResourceLink, an as ResumeCircleIcon, aW as Search, aa as Spacer, ag as SuccessIcon, ab as TreeWithSearch, as as UncontrolledSelect, al as UnlockedIcon, ad as UpIcon, aV as VMVNC, aK as YamlEditorSingleton, M as checkIfApiInstanceNamespaceScoped, N as checkIfBuiltInInstanceNamespaceScoped, I as checkPermission, bu as convertBytes, bC as convertCompute, bz as convertCores, bx as convertStorage, bd as createContextFactory, q as createNewEntry, bf as deepMerge, t as deleteEntry, ah as feedbackIcons, K as filterIfApiInstanceNamespaceScoped, L as filterIfBuiltInInstanceNamespaceScoped, b1 as filterSelectOptions, b3 as floorToDecimal, bv as formatBytesAuto, bA as formatCoresAuto, bE as formatDateAuto, b8 as getAllPathsFromObj, w as getApiResourceSingle, B as getApiResourceTypes, C as getApiResourceTypesByApiGroup, v as getApiResources, y as getBuiltinResourceSingle, F as getBuiltinResourceTypes, x as getBuiltinResources, bb as getBuiltinTreeData, o as getClusterList, G as getCrdData, A as getCrdResourceSingle, z as getCrdResources, H as getDirectUnknownResource, aI as getEnrichedColumns, aJ as getEnrichedColumnsWithControls, bc as getGroupsByCategory, O as getKinds, bo as getLinkToApiForm, bn as getLinkToBuiltinForm, k as getLinkToForm, bt as getNamespaceLink, aN as getObjectFormItemsDraft, b9 as getPrefixSubarrays, bs as getResourceLink, bg as getSortedKinds, bh as getSortedKindsAll, b2 as getStringByName, J as getSwagger, bj as getUppercase, ba as groupsToTreeData, bi as hslFromString, br as includesArray, b0 as isFlatObject, bq as isMultilineFromYaml, bp as isMultilineString, bF as isValidRFC3339, bk as kindByGvr, bm as namespacedByGvr, b7 as normalizeValuesForQuotasToNumber, bD as parseCoresWithUnit, b4 as parseQuotaValue, b5 as parseQuotaValueCpu, b6 as parseQuotaValueMemoryAndStorage, by as parseValueWithUnit, bl as pluralByKind, aB as prepareDataForManageableBreadcrumbs, aE as prepareDataForManageableSidebar, a$ as prepareTemplate, be as prepareUrlsToFetchForDynamicRenderer, bw as toBytes, bB as toCores, r as updateEntry, T as useApiResourceSingle, Z as useApiResourceTypesByGroup, S as useApiResources, Y as useApisResourceTypes, V as useBuiltinResourceSingle, $ as useBuiltinResourceTypes, U as useBuiltinResources, Q as useClusterList, a0 as useCrdData, X as useCrdResourceSingle, W as useCrdResources, e as useDirectUnknownResource, a2 as useInfiniteSentinel, f as useK8sSmartResource, a3 as useK8sVerbs, a7 as useKinds, a8 as useKindsRaw, a1 as useListWatch, a4 as useManyK8sSmartResource, d as usePermissions, a9 as usePluginManifest, a6 as useResourceScope, a5 as useSmartResourceParams } from './index-bM0NLvVb.mjs';
|
|
2
2
|
//# sourceMappingURL=openapi-k8s-toolkit.es.js.map
|
|
@@ -81701,7 +81701,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
|
|
|
81701
81701
|
}
|
|
81702
81702
|
}
|
|
81703
81703
|
});
|
|
81704
|
-
const isLinkableVolumeTypeKey = (typeKey) => typeKey === "configMap" || typeKey === "secret";
|
|
81704
|
+
const isLinkableVolumeTypeKey = (typeKey) => typeKey === "configMap" || typeKey === "secret" || typeKey === "persistentVolumeClaim";
|
|
81705
81705
|
const isPendingLinkSegment = (value) => !value || value.includes("...") || value.includes("{") || value.includes("}");
|
|
81706
81706
|
const getVolumeFactoryKey = ({
|
|
81707
81707
|
apiGroup,
|
|
@@ -81881,59 +81881,41 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
|
|
|
81881
81881
|
]);
|
|
81882
81882
|
const hasLinkableVolumeTypes = dataSourceWithoutHref.some(({ typeKey }) => isLinkableVolumeTypeKey(typeKey));
|
|
81883
81883
|
const linkableNamespace = dataSourceWithoutHref.find(({ typeKey }) => isLinkableVolumeTypeKey(typeKey))?.namespace;
|
|
81884
|
-
const
|
|
81884
|
+
const baseFactoryKeyParams = {
|
|
81885
81885
|
apiGroup: void 0,
|
|
81886
81886
|
apiVersion: "v1",
|
|
81887
|
-
resource: "configmaps",
|
|
81888
81887
|
namespace: linkableNamespace,
|
|
81889
81888
|
baseFactoriesMapping,
|
|
81890
81889
|
baseFactoryNamespacedAPIKey,
|
|
81891
81890
|
baseFactoryClusterSceopedAPIKey,
|
|
81892
81891
|
baseFactoryNamespacedBuiltinKey,
|
|
81893
81892
|
baseFactoryClusterSceopedBuiltinKey
|
|
81894
|
-
}
|
|
81895
|
-
const
|
|
81896
|
-
|
|
81897
|
-
|
|
81898
|
-
|
|
81899
|
-
|
|
81900
|
-
baseFactoriesMapping,
|
|
81901
|
-
baseFactoryNamespacedAPIKey,
|
|
81902
|
-
baseFactoryClusterSceopedAPIKey,
|
|
81903
|
-
baseFactoryNamespacedBuiltinKey,
|
|
81904
|
-
baseFactoryClusterSceopedBuiltinKey
|
|
81905
|
-
}) : void 0;
|
|
81906
|
-
const hasPendingLinkPrefixInputs = hasLinkableVolumeTypes && (isPendingLinkSegment(clusterPrepared) || isPendingLinkSegment(linkableNamespace) || isPendingLinkSegment(configMapFactoryKey) || isPendingLinkSegment(secretFactoryKey));
|
|
81893
|
+
};
|
|
81894
|
+
const canResolveLinkableKeys = hasLinkableVolumeTypes && !isNavigationLoading && !isNavigationError;
|
|
81895
|
+
const configMapFactoryKey = canResolveLinkableKeys ? getVolumeFactoryKey({ ...baseFactoryKeyParams, resource: "configmaps" }) : void 0;
|
|
81896
|
+
const secretFactoryKey = canResolveLinkableKeys ? getVolumeFactoryKey({ ...baseFactoryKeyParams, resource: "secrets" }) : void 0;
|
|
81897
|
+
const pvcFactoryKey = canResolveLinkableKeys ? getVolumeFactoryKey({ ...baseFactoryKeyParams, resource: "persistentvolumeclaims" }) : void 0;
|
|
81898
|
+
const hasPendingLinkPrefixInputs = hasLinkableVolumeTypes && (isPendingLinkSegment(clusterPrepared) || isPendingLinkSegment(linkableNamespace) || isPendingLinkSegment(configMapFactoryKey) || isPendingLinkSegment(secretFactoryKey) || isPendingLinkSegment(pvcFactoryKey));
|
|
81907
81899
|
const isLinkPrefixLoading = hasLinkableVolumeTypes && !ownReqFailed && !isNavigationError && (isNavigationLoading || hasPendingLinkPrefixInputs);
|
|
81908
81900
|
const resourceLinkPrefixes = React$1.useMemo(() => {
|
|
81909
81901
|
if (!hasLinkableVolumeTypes || isLinkPrefixLoading) {
|
|
81910
81902
|
return void 0;
|
|
81911
81903
|
}
|
|
81904
|
+
const baseLinkPrefixParams = {
|
|
81905
|
+
baseprefix,
|
|
81906
|
+
cluster: clusterPrepared,
|
|
81907
|
+
namespace: linkableNamespace,
|
|
81908
|
+
apiGroupVersion: "v1",
|
|
81909
|
+
baseFactoryNamespacedAPIKey,
|
|
81910
|
+
baseFactoryClusterSceopedAPIKey,
|
|
81911
|
+
baseFactoryNamespacedBuiltinKey,
|
|
81912
|
+
baseFactoryClusterSceopedBuiltinKey,
|
|
81913
|
+
baseFactoriesMapping
|
|
81914
|
+
};
|
|
81912
81915
|
return {
|
|
81913
|
-
configMap: getVolumeResourceLinkPrefix({
|
|
81914
|
-
|
|
81915
|
-
|
|
81916
|
-
namespace: linkableNamespace,
|
|
81917
|
-
apiGroupVersion: "v1",
|
|
81918
|
-
pluralName: "configmaps",
|
|
81919
|
-
baseFactoryNamespacedAPIKey,
|
|
81920
|
-
baseFactoryClusterSceopedAPIKey,
|
|
81921
|
-
baseFactoryNamespacedBuiltinKey,
|
|
81922
|
-
baseFactoryClusterSceopedBuiltinKey,
|
|
81923
|
-
baseFactoriesMapping
|
|
81924
|
-
}) || "",
|
|
81925
|
-
secret: getVolumeResourceLinkPrefix({
|
|
81926
|
-
baseprefix,
|
|
81927
|
-
cluster: clusterPrepared,
|
|
81928
|
-
namespace: linkableNamespace,
|
|
81929
|
-
apiGroupVersion: "v1",
|
|
81930
|
-
pluralName: "secrets",
|
|
81931
|
-
baseFactoryNamespacedAPIKey,
|
|
81932
|
-
baseFactoryClusterSceopedAPIKey,
|
|
81933
|
-
baseFactoryNamespacedBuiltinKey,
|
|
81934
|
-
baseFactoryClusterSceopedBuiltinKey,
|
|
81935
|
-
baseFactoriesMapping
|
|
81936
|
-
}) || ""
|
|
81916
|
+
configMap: getVolumeResourceLinkPrefix({ ...baseLinkPrefixParams, pluralName: "configmaps" }) || "",
|
|
81917
|
+
secret: getVolumeResourceLinkPrefix({ ...baseLinkPrefixParams, pluralName: "secrets" }) || "",
|
|
81918
|
+
persistentVolumeClaim: getVolumeResourceLinkPrefix({ ...baseLinkPrefixParams, pluralName: "persistentvolumeclaims" }) || ""
|
|
81937
81919
|
};
|
|
81938
81920
|
}, [
|
|
81939
81921
|
hasLinkableVolumeTypes,
|