levelfour 1.16.0 → 1.18.0
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/api/resources/recommendations/client/Client.js +2 -0
- package/dist/api/resources/recommendations/client/Client.mjs +2 -0
- package/dist/api/resources/recommendations/client/requests/GetProviderOverviewRecommendationsRequest.d.mts +2 -0
- package/dist/api/resources/recommendations/client/requests/GetProviderOverviewRecommendationsRequest.d.ts +2 -0
- package/dist/api/types/BlockedNamespace.d.mts +9 -0
- package/dist/api/types/BlockedNamespace.d.ts +9 -0
- package/dist/api/types/BlockedNamespace.js +17 -0
- package/dist/api/types/BlockedNamespace.mjs +1 -0
- package/dist/api/types/CheckedObject.d.mts +1 -1
- package/dist/api/types/CheckedObject.d.ts +1 -1
- package/dist/api/types/ClusterItem.d.mts +7 -3
- package/dist/api/types/ClusterItem.d.ts +7 -3
- package/dist/api/types/ClusterLevers.d.mts +2 -2
- package/dist/api/types/ClusterLevers.d.ts +2 -2
- package/dist/api/types/ClusterSummary.d.mts +5 -1
- package/dist/api/types/ClusterSummary.d.ts +5 -1
- package/dist/api/types/ConfigObjectView.d.mts +2 -11
- package/dist/api/types/ConfigObjectView.d.ts +2 -11
- package/dist/api/types/ConfigObjectView.js +0 -9
- package/dist/api/types/ConfigObjectView.mjs +0 -9
- package/dist/api/types/ConsolidationBlocker.d.mts +26 -0
- package/dist/api/types/ConsolidationBlocker.d.ts +26 -0
- package/dist/api/types/ConsolidationBlocker.js +19 -0
- package/dist/api/types/ConsolidationBlocker.mjs +19 -0
- package/dist/api/types/ConsolidationChange.d.mts +16 -0
- package/dist/api/types/ConsolidationChange.d.ts +16 -0
- package/dist/api/types/ConsolidationChange.js +13 -0
- package/dist/api/types/ConsolidationChange.mjs +13 -0
- package/dist/api/types/ConsolidationChangeDetail.d.mts +16 -0
- package/dist/api/types/ConsolidationChangeDetail.d.ts +16 -0
- package/dist/api/types/ConsolidationChangeDetail.js +13 -0
- package/dist/api/types/ConsolidationChangeDetail.mjs +13 -0
- package/dist/api/types/ConsolidationChangeTotals.d.mts +5 -1
- package/dist/api/types/ConsolidationChangeTotals.d.ts +5 -1
- package/dist/api/types/ConsolidationLever.d.mts +2 -0
- package/dist/api/types/ConsolidationLever.d.ts +2 -0
- package/dist/api/types/FailingShare.d.mts +1 -1
- package/dist/api/types/FailingShare.d.ts +1 -1
- package/dist/api/types/FleetConsolidationChange.d.mts +16 -0
- package/dist/api/types/FleetConsolidationChange.d.ts +16 -0
- package/dist/api/types/FleetConsolidationChange.js +13 -0
- package/dist/api/types/FleetConsolidationChange.mjs +13 -0
- package/dist/api/types/FleetConsolidationLever.d.mts +4 -0
- package/dist/api/types/FleetConsolidationLever.d.ts +4 -0
- package/dist/api/types/FleetLever.d.mts +2 -0
- package/dist/api/types/FleetLever.d.ts +2 -0
- package/dist/api/types/FleetLevers.d.mts +1 -1
- package/dist/api/types/FleetLevers.d.ts +1 -1
- package/dist/api/types/FleetNamespace.d.mts +3 -1
- package/dist/api/types/FleetNamespace.d.ts +3 -1
- package/dist/api/types/FleetRightsizingLever.d.mts +20 -0
- package/dist/api/types/FleetRightsizingLever.d.ts +20 -0
- package/dist/api/types/FleetRightsizingLever.js +17 -0
- package/dist/api/types/FleetRightsizingLever.mjs +1 -0
- package/dist/api/types/FleetSummary.d.mts +5 -1
- package/dist/api/types/FleetSummary.d.ts +5 -1
- package/dist/api/types/FleetVolume.d.mts +1 -1
- package/dist/api/types/FleetVolume.d.ts +1 -1
- package/dist/api/types/ForecastData.d.mts +3 -3
- package/dist/api/types/ForecastData.d.ts +3 -3
- package/dist/api/types/HeldChange.d.mts +16 -0
- package/dist/api/types/HeldChange.d.ts +16 -0
- package/dist/api/types/HeldChange.js +13 -0
- package/dist/api/types/HeldChange.mjs +13 -0
- package/dist/api/types/HeldOutcome.d.mts +9 -0
- package/dist/api/types/HeldOutcome.d.ts +9 -0
- package/dist/api/types/HeldOutcome.js +17 -0
- package/dist/api/types/HeldOutcome.mjs +1 -0
- package/dist/api/types/Impact.d.mts +40 -0
- package/dist/api/types/Impact.d.ts +40 -0
- package/dist/api/types/Impact.js +36 -0
- package/dist/api/types/Impact.mjs +12 -0
- package/dist/api/types/ImpactBeforeNow.d.mts +5 -0
- package/dist/api/types/ImpactBeforeNow.d.ts +5 -0
- package/dist/api/types/ImpactBeforeNow.js +17 -0
- package/dist/api/types/ImpactBeforeNow.mjs +1 -0
- package/dist/api/types/ImpactChange.d.mts +47 -0
- package/dist/api/types/ImpactChange.d.ts +47 -0
- package/dist/api/types/ImpactChange.js +44 -0
- package/dist/api/types/ImpactChange.mjs +20 -0
- package/dist/api/types/ImpactChangeList.d.mts +5 -0
- package/dist/api/types/ImpactChangeList.d.ts +5 -0
- package/dist/api/types/ImpactChangeList.js +17 -0
- package/dist/api/types/ImpactChangeList.mjs +1 -0
- package/dist/api/types/ImpactChangeListResponse.d.mts +6 -0
- package/dist/api/types/ImpactChangeListResponse.d.ts +6 -0
- package/dist/api/types/ImpactChangeListResponse.js +17 -0
- package/dist/api/types/ImpactChangeListResponse.mjs +1 -0
- package/dist/api/types/ImpactChanges.d.mts +8 -0
- package/dist/api/types/ImpactChanges.d.ts +8 -0
- package/dist/api/types/ImpactChanges.js +17 -0
- package/dist/api/types/ImpactChanges.mjs +1 -0
- package/dist/api/types/ImpactCluster.d.mts +22 -0
- package/dist/api/types/ImpactCluster.d.ts +22 -0
- package/dist/api/types/ImpactCluster.js +35 -0
- package/dist/api/types/ImpactCluster.mjs +11 -0
- package/dist/api/types/ImpactClusterListResponse.d.mts +6 -0
- package/dist/api/types/ImpactClusterListResponse.d.ts +6 -0
- package/dist/api/types/ImpactClusterListResponse.js +17 -0
- package/dist/api/types/ImpactClusterListResponse.mjs +1 -0
- package/dist/api/types/ImpactClusters.d.mts +7 -0
- package/dist/api/types/ImpactClusters.d.ts +7 -0
- package/dist/api/types/ImpactClusters.js +17 -0
- package/dist/api/types/ImpactClusters.mjs +1 -0
- package/dist/api/types/ImpactCount.d.mts +16 -0
- package/dist/api/types/ImpactCount.d.ts +16 -0
- package/dist/api/types/ImpactCount.js +17 -0
- package/dist/api/types/ImpactCount.mjs +1 -0
- package/dist/api/types/ImpactDaySpan.d.mts +4 -0
- package/dist/api/types/ImpactDaySpan.d.ts +4 -0
- package/dist/api/types/ImpactDaySpan.js +17 -0
- package/dist/api/types/ImpactDaySpan.mjs +1 -0
- package/dist/api/types/ImpactDaysCompared.d.mts +4 -0
- package/dist/api/types/ImpactDaysCompared.d.ts +4 -0
- package/dist/api/types/ImpactDaysCompared.js +17 -0
- package/dist/api/types/ImpactDaysCompared.mjs +1 -0
- package/dist/api/types/ImpactExcluded.d.mts +14 -0
- package/dist/api/types/ImpactExcluded.d.ts +14 -0
- package/dist/api/types/ImpactExcluded.js +35 -0
- package/dist/api/types/ImpactExcluded.mjs +11 -0
- package/dist/api/types/ImpactMeasuredThrough.d.mts +6 -0
- package/dist/api/types/ImpactMeasuredThrough.d.ts +6 -0
- package/dist/api/types/ImpactMeasuredThrough.js +17 -0
- package/dist/api/types/ImpactMeasuredThrough.mjs +1 -0
- package/dist/api/types/ImpactMeasuring.d.mts +6 -0
- package/dist/api/types/ImpactMeasuring.d.ts +6 -0
- package/dist/api/types/ImpactMeasuring.js +17 -0
- package/dist/api/types/ImpactMeasuring.mjs +1 -0
- package/dist/api/types/ImpactNamespace.d.mts +11 -0
- package/dist/api/types/ImpactNamespace.d.ts +11 -0
- package/dist/api/types/ImpactNamespace.js +17 -0
- package/dist/api/types/ImpactNamespace.mjs +1 -0
- package/dist/api/types/ImpactNamespaceListResponse.d.mts +6 -0
- package/dist/api/types/ImpactNamespaceListResponse.d.ts +6 -0
- package/dist/api/types/ImpactNamespaceListResponse.js +17 -0
- package/dist/api/types/ImpactNamespaceListResponse.mjs +1 -0
- package/dist/api/types/ImpactNamespaces.d.mts +6 -0
- package/dist/api/types/ImpactNamespaces.d.ts +6 -0
- package/dist/api/types/ImpactNamespaces.js +17 -0
- package/dist/api/types/ImpactNamespaces.mjs +1 -0
- package/dist/api/types/ImpactPace.d.mts +6 -0
- package/dist/api/types/ImpactPace.d.ts +6 -0
- package/dist/api/types/ImpactPace.js +17 -0
- package/dist/api/types/ImpactPace.mjs +1 -0
- package/dist/api/types/ImpactPoint.d.mts +21 -0
- package/dist/api/types/ImpactPoint.d.ts +21 -0
- package/dist/api/types/ImpactPoint.js +17 -0
- package/dist/api/types/ImpactPoint.mjs +1 -0
- package/dist/api/types/ImpactRequests.d.mts +7 -0
- package/dist/api/types/ImpactRequests.d.ts +7 -0
- package/dist/api/types/ImpactRequests.js +17 -0
- package/dist/api/types/ImpactRequests.mjs +1 -0
- package/dist/api/types/ImpactRequestsMoved.d.mts +10 -0
- package/dist/api/types/ImpactRequestsMoved.d.ts +10 -0
- package/dist/api/types/ImpactRequestsMoved.js +17 -0
- package/dist/api/types/ImpactRequestsMoved.mjs +1 -0
- package/dist/api/types/ImpactResponse.d.mts +6 -0
- package/dist/api/types/ImpactResponse.d.ts +6 -0
- package/dist/api/types/ImpactResponse.js +17 -0
- package/dist/api/types/ImpactResponse.mjs +1 -0
- package/dist/api/types/ImpactResultWindows.d.mts +5 -0
- package/dist/api/types/ImpactResultWindows.d.ts +5 -0
- package/dist/api/types/ImpactResultWindows.js +17 -0
- package/dist/api/types/ImpactResultWindows.mjs +1 -0
- package/dist/api/types/ImpactRowTotals.d.mts +6 -0
- package/dist/api/types/ImpactRowTotals.d.ts +6 -0
- package/dist/api/types/ImpactRowTotals.js +17 -0
- package/dist/api/types/ImpactRowTotals.mjs +1 -0
- package/dist/api/types/ImpactSaved.d.mts +4 -0
- package/dist/api/types/ImpactSaved.d.ts +4 -0
- package/dist/api/types/ImpactSaved.js +17 -0
- package/dist/api/types/ImpactSaved.mjs +1 -0
- package/dist/api/types/ImpactScope.d.mts +9 -0
- package/dist/api/types/ImpactScope.d.ts +9 -0
- package/dist/api/types/ImpactScope.js +17 -0
- package/dist/api/types/ImpactScope.mjs +1 -0
- package/dist/api/types/ImpactSeries.d.mts +5 -0
- package/dist/api/types/ImpactSeries.d.ts +5 -0
- package/dist/api/types/ImpactSeries.js +17 -0
- package/dist/api/types/ImpactSeries.mjs +1 -0
- package/dist/api/types/ImpactSeriesResponse.d.mts +6 -0
- package/dist/api/types/ImpactSeriesResponse.d.ts +6 -0
- package/dist/api/types/ImpactSeriesResponse.js +17 -0
- package/dist/api/types/ImpactSeriesResponse.mjs +1 -0
- package/dist/api/types/ImpactWasNowCount.d.mts +4 -0
- package/dist/api/types/ImpactWasNowCount.d.ts +4 -0
- package/dist/api/types/ImpactWasNowCount.js +17 -0
- package/dist/api/types/ImpactWasNowCount.mjs +1 -0
- package/dist/api/types/ImpactWasNowUsd.d.mts +4 -0
- package/dist/api/types/ImpactWasNowUsd.d.ts +4 -0
- package/dist/api/types/ImpactWasNowUsd.js +17 -0
- package/dist/api/types/ImpactWasNowUsd.mjs +1 -0
- package/dist/api/types/ImpactWasWindow.d.mts +8 -0
- package/dist/api/types/ImpactWasWindow.d.ts +8 -0
- package/dist/api/types/ImpactWasWindow.js +17 -0
- package/dist/api/types/ImpactWasWindow.mjs +1 -0
- package/dist/api/types/ImpactWaste.d.mts +20 -0
- package/dist/api/types/ImpactWaste.d.ts +20 -0
- package/dist/api/types/ImpactWaste.js +17 -0
- package/dist/api/types/ImpactWaste.mjs +1 -0
- package/dist/api/types/ImpactWorkload.d.mts +27 -0
- package/dist/api/types/ImpactWorkload.d.ts +27 -0
- package/dist/api/types/ImpactWorkload.js +40 -0
- package/dist/api/types/ImpactWorkload.mjs +16 -0
- package/dist/api/types/ImpactWorkloadDetail.d.mts +34 -0
- package/dist/api/types/ImpactWorkloadDetail.d.ts +34 -0
- package/dist/api/types/ImpactWorkloadDetail.js +40 -0
- package/dist/api/types/ImpactWorkloadDetail.mjs +16 -0
- package/dist/api/types/ImpactWorkloadListResponse.d.mts +6 -0
- package/dist/api/types/ImpactWorkloadListResponse.d.ts +6 -0
- package/dist/api/types/ImpactWorkloadListResponse.js +17 -0
- package/dist/api/types/ImpactWorkloadListResponse.mjs +1 -0
- package/dist/api/types/ImpactWorkloadResponse.d.mts +6 -0
- package/dist/api/types/ImpactWorkloadResponse.d.ts +6 -0
- package/dist/api/types/ImpactWorkloadResponse.js +17 -0
- package/dist/api/types/ImpactWorkloadResponse.mjs +1 -0
- package/dist/api/types/ImpactWorkloads.d.mts +6 -0
- package/dist/api/types/ImpactWorkloads.d.ts +6 -0
- package/dist/api/types/ImpactWorkloads.js +17 -0
- package/dist/api/types/ImpactWorkloads.mjs +1 -0
- package/dist/api/types/Indicator.d.mts +16 -1
- package/dist/api/types/Indicator.d.ts +16 -1
- package/dist/api/types/Indicator.js +12 -0
- package/dist/api/types/Indicator.mjs +12 -0
- package/dist/api/types/IndicatorCount.d.mts +1 -0
- package/dist/api/types/IndicatorCount.d.ts +1 -0
- package/dist/api/types/IndicatorCount.js +1 -0
- package/dist/api/types/IndicatorCount.mjs +1 -0
- package/dist/api/types/NamespaceAutomation.d.mts +8 -0
- package/dist/api/types/NamespaceAutomation.d.ts +8 -0
- package/dist/api/types/NamespaceAutomation.js +5 -0
- package/dist/api/types/NamespaceAutomation.mjs +5 -0
- package/dist/api/types/NamespaceItem.d.mts +3 -1
- package/dist/api/types/NamespaceItem.d.ts +3 -1
- package/dist/api/types/NoReadyShare.d.mts +1 -1
- package/dist/api/types/NoReadyShare.d.ts +1 -1
- package/dist/api/types/ProviderBreakdownItem.d.mts +2 -0
- package/dist/api/types/ProviderBreakdownItem.d.ts +2 -0
- package/dist/api/types/RecommendationDetail.d.mts +2 -0
- package/dist/api/types/RecommendationDetail.d.ts +2 -0
- package/dist/api/types/ReliabilityLens.d.mts +2 -0
- package/dist/api/types/ReliabilityLens.d.ts +2 -0
- package/dist/api/types/ReliabilityThresholds.d.mts +23 -0
- package/dist/api/types/ReliabilityThresholds.d.ts +23 -0
- package/dist/api/types/ReliabilityThresholds.js +17 -0
- package/dist/api/types/ReliabilityThresholds.mjs +1 -0
- package/dist/api/types/RightsizedContainer.d.mts +2 -0
- package/dist/api/types/RightsizedContainer.d.ts +2 -0
- package/dist/api/types/RightsizingLever.d.mts +21 -0
- package/dist/api/types/RightsizingLever.d.ts +21 -0
- package/dist/api/types/RightsizingLever.js +17 -0
- package/dist/api/types/RightsizingLever.mjs +1 -0
- package/dist/api/types/SavingsBasis.d.mts +8 -0
- package/dist/api/types/SavingsBasis.d.ts +8 -0
- package/dist/api/types/SavingsBasis.js +17 -0
- package/dist/api/types/SavingsBasis.mjs +1 -0
- package/dist/api/types/SavingsCollecting.d.mts +6 -0
- package/dist/api/types/SavingsCollecting.d.ts +6 -0
- package/dist/api/types/SavingsCollecting.js +17 -0
- package/dist/api/types/SavingsCollecting.mjs +1 -0
- package/dist/api/types/SavingsItem.d.mts +8 -3
- package/dist/api/types/SavingsItem.d.ts +8 -3
- package/dist/api/types/SavingsMissing.d.mts +7 -1
- package/dist/api/types/SavingsMissing.d.ts +7 -1
- package/dist/api/types/SavingsNode.d.mts +13 -0
- package/dist/api/types/SavingsNode.d.ts +13 -0
- package/dist/api/types/SavingsNow.d.mts +12 -1
- package/dist/api/types/SavingsNow.d.ts +12 -1
- package/dist/api/types/SavingsNow.js +5 -0
- package/dist/api/types/SavingsNow.mjs +5 -0
- package/dist/api/types/SavingsSection.d.mts +4 -0
- package/dist/api/types/SavingsSection.d.ts +4 -0
- package/dist/api/types/SetWorkloadAutomationRequest.d.mts +2 -2
- package/dist/api/types/SetWorkloadAutomationRequest.d.ts +2 -2
- package/dist/api/types/UnpricedFindings.d.mts +1 -1
- package/dist/api/types/UnpricedFindings.d.ts +1 -1
- package/dist/api/types/VolumeItem.d.mts +1 -1
- package/dist/api/types/VolumeItem.d.ts +1 -1
- package/dist/api/types/WorkloadItem.d.mts +3 -1
- package/dist/api/types/WorkloadItem.d.ts +3 -1
- package/dist/api/types/WorkloadItem.js +2 -0
- package/dist/api/types/WorkloadItem.mjs +2 -0
- package/dist/api/types/WorkloadListItem.d.mts +3 -1
- package/dist/api/types/WorkloadListItem.d.ts +3 -1
- package/dist/api/types/WorkloadListItem.js +2 -0
- package/dist/api/types/WorkloadListItem.mjs +2 -0
- package/dist/api/types/index.d.mts +45 -0
- package/dist/api/types/index.d.ts +45 -0
- package/dist/api/types/index.js +90 -0
- package/dist/api/types/index.mjs +45 -0
- package/dist/version.d.mts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -1754,12 +1754,14 @@ class RecommendationsClient {
|
|
|
1754
1754
|
const {
|
|
1755
1755
|
provider_id: providerId,
|
|
1756
1756
|
service,
|
|
1757
|
+
service_not: serviceNot,
|
|
1757
1758
|
cluster_id: clusterId,
|
|
1758
1759
|
target_kind: targetKind,
|
|
1759
1760
|
target_kind_not: targetKindNot
|
|
1760
1761
|
} = request;
|
|
1761
1762
|
const _queryParams = {
|
|
1762
1763
|
service: service !== void 0 ? (0, import_json.toJson)(service) : void 0,
|
|
1764
|
+
service_not: serviceNot !== void 0 ? (0, import_json.toJson)(serviceNot) : void 0,
|
|
1763
1765
|
cluster_id: clusterId !== void 0 ? (0, import_json.toJson)(clusterId) : void 0,
|
|
1764
1766
|
target_kind: targetKind !== void 0 ? (0, import_json.toJson)(targetKind) : void 0,
|
|
1765
1767
|
target_kind_not: targetKindNot !== void 0 ? (0, import_json.toJson)(targetKindNot) : void 0
|
|
@@ -1721,12 +1721,14 @@ class RecommendationsClient {
|
|
|
1721
1721
|
const {
|
|
1722
1722
|
provider_id: providerId,
|
|
1723
1723
|
service,
|
|
1724
|
+
service_not: serviceNot,
|
|
1724
1725
|
cluster_id: clusterId,
|
|
1725
1726
|
target_kind: targetKind,
|
|
1726
1727
|
target_kind_not: targetKindNot
|
|
1727
1728
|
} = request;
|
|
1728
1729
|
const _queryParams = {
|
|
1729
1730
|
service: service !== void 0 ? toJson(service) : void 0,
|
|
1731
|
+
service_not: serviceNot !== void 0 ? toJson(serviceNot) : void 0,
|
|
1730
1732
|
cluster_id: clusterId !== void 0 ? toJson(clusterId) : void 0,
|
|
1731
1733
|
target_kind: targetKind !== void 0 ? toJson(targetKind) : void 0,
|
|
1732
1734
|
target_kind_not: targetKindNot !== void 0 ? toJson(targetKindNot) : void 0
|
|
@@ -8,6 +8,8 @@ export interface GetProviderOverviewRecommendationsRequest {
|
|
|
8
8
|
provider_id: string;
|
|
9
9
|
/** Keep the savings of these services (e.g. Kubernetes). total_spend and the saved history stay the provider's */
|
|
10
10
|
service?: string[] | null;
|
|
11
|
+
/** Leave out the savings of these services, as the main Savings menu's cloud box leaves out Kubernetes, which its own box reads from /k8s/savings (dashboard#1696). total_spend and the saved history stay the provider's */
|
|
12
|
+
service_not?: string[] | null;
|
|
11
13
|
/** Keep the Kubernetes savings of these clusters, by k8s cluster id - can be repeated */
|
|
12
14
|
cluster_id?: string[] | null;
|
|
13
15
|
/** Keep the Kubernetes savings that change one of these: container (a container's requests or limits), workload, NodePool, NodeGroup or PersistentVolumeClaim. A row that names a container counts as container - can be repeated */
|
|
@@ -8,6 +8,8 @@ export interface GetProviderOverviewRecommendationsRequest {
|
|
|
8
8
|
provider_id: string;
|
|
9
9
|
/** Keep the savings of these services (e.g. Kubernetes). total_spend and the saved history stay the provider's */
|
|
10
10
|
service?: string[] | null;
|
|
11
|
+
/** Leave out the savings of these services, as the main Savings menu's cloud box leaves out Kubernetes, which its own box reads from /k8s/savings (dashboard#1696). total_spend and the saved history stay the provider's */
|
|
12
|
+
service_not?: string[] | null;
|
|
11
13
|
/** Keep the Kubernetes savings of these clusters, by k8s cluster id - can be repeated */
|
|
12
14
|
cluster_id?: string[] | null;
|
|
13
15
|
/** Keep the Kubernetes savings that change one of these: container (a container's requests or limits), workload, NodePool, NodeGroup or PersistentVolumeClaim. A row that names a container counts as container - can be repeated */
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as LevelFour from "../index.mjs";
|
|
2
|
+
export interface BlockedNamespace {
|
|
3
|
+
cluster_id: string;
|
|
4
|
+
namespace: string;
|
|
5
|
+
/** Why a namespace set to Automated does not act: the cluster's reason (no_component, component_silent, cluster_off) or the namespace's (other_rightsizer, labelled_off, not_permitted, approver_left), as the namespaces lists' automation_blocked_by names it */
|
|
6
|
+
code: string;
|
|
7
|
+
/** With other_rightsizer, the tools that size the namespace's workloads and how many each sizes, so the reason can name the tool; empty otherwise */
|
|
8
|
+
other_rightsizers?: LevelFour.OtherRightsizer[] | undefined;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as LevelFour from "../index.js";
|
|
2
|
+
export interface BlockedNamespace {
|
|
3
|
+
cluster_id: string;
|
|
4
|
+
namespace: string;
|
|
5
|
+
/** Why a namespace set to Automated does not act: the cluster's reason (no_component, component_silent, cluster_off) or the namespace's (other_rightsizer, labelled_off, not_permitted, approver_left), as the namespaces lists' automation_blocked_by names it */
|
|
6
|
+
code: string;
|
|
7
|
+
/** With other_rightsizer, the tools that size the namespace's workloads and how many each sizes, so the reason can name the tool; empty otherwise */
|
|
8
|
+
other_rightsizers?: LevelFour.OtherRightsizer[] | undefined;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var BlockedNamespace_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(BlockedNamespace_exports);
|
|
17
|
+
//# sourceMappingURL=BlockedNamespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=BlockedNamespace.mjs.map
|
|
@@ -16,7 +16,7 @@ export interface CheckedObject {
|
|
|
16
16
|
/** The recommendation to open, on a recommendation */
|
|
17
17
|
recommendation_id?: (string | null) | undefined;
|
|
18
18
|
/** Why it could not be priced, on to_check */
|
|
19
|
-
reason?: (
|
|
19
|
+
reason?: (string | null) | undefined;
|
|
20
20
|
}
|
|
21
21
|
export declare namespace CheckedObject {
|
|
22
22
|
/** node_pool: a NodePool or node group; autoscaler: an HPA; idle_workload: a workload */
|
|
@@ -16,7 +16,7 @@ export interface CheckedObject {
|
|
|
16
16
|
/** The recommendation to open, on a recommendation */
|
|
17
17
|
recommendation_id?: (string | null) | undefined;
|
|
18
18
|
/** Why it could not be priced, on to_check */
|
|
19
|
-
reason?: (
|
|
19
|
+
reason?: (string | null) | undefined;
|
|
20
20
|
}
|
|
21
21
|
export declare namespace CheckedObject {
|
|
22
22
|
/** node_pool: a NodePool or node group; autoscaler: an HPA; idle_workload: a workload */
|
|
@@ -4,10 +4,14 @@ export interface ClusterItem {
|
|
|
4
4
|
state?: (ClusterItem.State | null) | undefined;
|
|
5
5
|
/** on when the automation acts in a namespace, off when its component runs and acts nowhere, none without it */
|
|
6
6
|
automation_status?: (ClusterItem.AutomationStatus | null) | undefined;
|
|
7
|
-
/** The current workloads with no ready replica now, a crash loop included */
|
|
7
|
+
/** The current workloads with no ready replica now, a crash loop and a workload that never started included */
|
|
8
8
|
workloads_not_ready?: (number | null) | undefined;
|
|
9
|
-
/** What can be saved now a month, GET /savings' totals.monthly: the available recommendations (as the savings page's Available tab counts them),
|
|
9
|
+
/** What can be saved now a month, GET /savings' totals.monthly for the same clusters, read from the same items (levelfour-api#2217): the available recommendations (as the savings page's Available tab counts them), the workloads that want replicas and have had none ready for a day, the nodes only they hold and the orphaned claims the bill prices now. The nodes other pods hold are not in it (levelfour-api#2203) */
|
|
10
10
|
available_savings_monthly?: (number | null) | undefined;
|
|
11
|
+
/** The same, net of the enterprise discount: GET /savings' totals.monthly_net, which its cost_monthly_net divides */
|
|
12
|
+
available_savings_monthly_net?: (number | null) | undefined;
|
|
13
|
+
/** The namespaces set to Automated, whether or not they act (dashboard#1699) */
|
|
14
|
+
automation_namespaces_set?: (number | null) | undefined;
|
|
11
15
|
/** The namespaces the automation applies changes in by itself, as the cluster summary counts */
|
|
12
16
|
automation_namespaces_acting?: (number | null) | undefined;
|
|
13
17
|
/** The namespaces the Automation tab lists */
|
|
@@ -15,7 +19,7 @@ export interface ClusterItem {
|
|
|
15
19
|
levers?: (LevelFour.ClusterLevers | null) | undefined;
|
|
16
20
|
/** The available recommendations that are not a container change, so no switch turns them on: an HPA's bounds, an idle workload, a NodePool, node group or claim. With rightsizing and consolidation they add up to available_savings_monthly */
|
|
17
21
|
other_savings?: (LevelFour.OtherSavings | null) | undefined;
|
|
18
|
-
/**
|
|
22
|
+
/** What the cluster's node compute costs a month at its run rate: its pace (the average of the last 7 complete days the bill priced and the agent watched every hour, at least 3 of them) made 30 days, the base its Savings card divides by; null with fewer than 3 such days or nothing priced in the last week */
|
|
19
23
|
monthly_cost?: (number | null) | undefined;
|
|
20
24
|
/** What the verified changes saved (GET /v1/k8s/realized); null when nothing is verified */
|
|
21
25
|
realized?: (LevelFour.KubernetesRealized | null) | undefined;
|
|
@@ -4,10 +4,14 @@ export interface ClusterItem {
|
|
|
4
4
|
state?: (ClusterItem.State | null) | undefined;
|
|
5
5
|
/** on when the automation acts in a namespace, off when its component runs and acts nowhere, none without it */
|
|
6
6
|
automation_status?: (ClusterItem.AutomationStatus | null) | undefined;
|
|
7
|
-
/** The current workloads with no ready replica now, a crash loop included */
|
|
7
|
+
/** The current workloads with no ready replica now, a crash loop and a workload that never started included */
|
|
8
8
|
workloads_not_ready?: (number | null) | undefined;
|
|
9
|
-
/** What can be saved now a month, GET /savings' totals.monthly: the available recommendations (as the savings page's Available tab counts them),
|
|
9
|
+
/** What can be saved now a month, GET /savings' totals.monthly for the same clusters, read from the same items (levelfour-api#2217): the available recommendations (as the savings page's Available tab counts them), the workloads that want replicas and have had none ready for a day, the nodes only they hold and the orphaned claims the bill prices now. The nodes other pods hold are not in it (levelfour-api#2203) */
|
|
10
10
|
available_savings_monthly?: (number | null) | undefined;
|
|
11
|
+
/** The same, net of the enterprise discount: GET /savings' totals.monthly_net, which its cost_monthly_net divides */
|
|
12
|
+
available_savings_monthly_net?: (number | null) | undefined;
|
|
13
|
+
/** The namespaces set to Automated, whether or not they act (dashboard#1699) */
|
|
14
|
+
automation_namespaces_set?: (number | null) | undefined;
|
|
11
15
|
/** The namespaces the automation applies changes in by itself, as the cluster summary counts */
|
|
12
16
|
automation_namespaces_acting?: (number | null) | undefined;
|
|
13
17
|
/** The namespaces the Automation tab lists */
|
|
@@ -15,7 +19,7 @@ export interface ClusterItem {
|
|
|
15
19
|
levers?: (LevelFour.ClusterLevers | null) | undefined;
|
|
16
20
|
/** The available recommendations that are not a container change, so no switch turns them on: an HPA's bounds, an idle workload, a NodePool, node group or claim. With rightsizing and consolidation they add up to available_savings_monthly */
|
|
17
21
|
other_savings?: (LevelFour.OtherSavings | null) | undefined;
|
|
18
|
-
/**
|
|
22
|
+
/** What the cluster's node compute costs a month at its run rate: its pace (the average of the last 7 complete days the bill priced and the agent watched every hour, at least 3 of them) made 30 days, the base its Savings card divides by; null with fewer than 3 such days or nothing priced in the last week */
|
|
19
23
|
monthly_cost?: (number | null) | undefined;
|
|
20
24
|
/** What the verified changes saved (GET /v1/k8s/realized); null when nothing is verified */
|
|
21
25
|
realized?: (LevelFour.KubernetesRealized | null) | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.mjs";
|
|
2
2
|
export interface ClusterLevers {
|
|
3
|
-
/** On
|
|
4
|
-
rightsizing: LevelFour.
|
|
3
|
+
/** On while the cluster's automation runs: its component reporting, and enabled and not paused, or turned on by the object that sets it; false otherwise, reporting telling a silent component from none. Yields the available container recommendations, the changes the automation makes; counts the namespaces it acts in of the ones it lists, and names the ones set to Automated that do not act (dashboard#1699) */
|
|
4
|
+
rightsizing: LevelFour.RightsizingLever;
|
|
5
5
|
/** On when a Karpenter NodePool removes underused nodes (consolidationPolicy not WhenEmpty, consolidateAfter not Never) or Cluster Autoscaler runs, its scale-down on by default since the agent reports no flags; false when every NodePool keeps them and Cluster Autoscaler does not run; null with neither. Counts the held nodes that would go of the held nodes at the latest batch, as the cluster's Nodes tab counts them. Yields the window's average a month of what the held nodes that would go and no recommendation covers cost, over the hours ingest worked them out in, and counts the changes that free them, as GET /clusters/{cluster_id}/consolidation-changes lists and totals them */
|
|
6
6
|
consolidation: LevelFour.ConsolidationLever;
|
|
7
7
|
/** On when a node runs on Spot at the latest batch; counts the Spot nodes of the nodes. Its saving is null: no estimate of moving to Spot exists apart from a pool's rightsizing. With no node up at the latest batch (agentless, or not reporting yet), on and the node counts of spot and consolidation are null */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.js";
|
|
2
2
|
export interface ClusterLevers {
|
|
3
|
-
/** On
|
|
4
|
-
rightsizing: LevelFour.
|
|
3
|
+
/** On while the cluster's automation runs: its component reporting, and enabled and not paused, or turned on by the object that sets it; false otherwise, reporting telling a silent component from none. Yields the available container recommendations, the changes the automation makes; counts the namespaces it acts in of the ones it lists, and names the ones set to Automated that do not act (dashboard#1699) */
|
|
4
|
+
rightsizing: LevelFour.RightsizingLever;
|
|
5
5
|
/** On when a Karpenter NodePool removes underused nodes (consolidationPolicy not WhenEmpty, consolidateAfter not Never) or Cluster Autoscaler runs, its scale-down on by default since the agent reports no flags; false when every NodePool keeps them and Cluster Autoscaler does not run; null with neither. Counts the held nodes that would go of the held nodes at the latest batch, as the cluster's Nodes tab counts them. Yields the window's average a month of what the held nodes that would go and no recommendation covers cost, over the hours ingest worked them out in, and counts the changes that free them, as GET /clusters/{cluster_id}/consolidation-changes lists and totals them */
|
|
6
6
|
consolidation: LevelFour.ConsolidationLever;
|
|
7
7
|
/** On when a node runs on Spot at the latest batch; counts the Spot nodes of the nodes. Its saving is null: no estimate of moving to Spot exists apart from a pool's rightsizing. With no node up at the latest batch (agentless, or not reporting yet), on and the node counts of spot and consolidation are null */
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.mjs";
|
|
2
2
|
export interface ClusterSummary {
|
|
3
|
-
/** What can be saved now a month, GET /savings' totals.monthly: the available recommendations (as the savings page's Available tab counts them),
|
|
3
|
+
/** What can be saved now a month, GET /savings' totals.monthly for the same clusters, read from the same items (levelfour-api#2217): the available recommendations (as the savings page's Available tab counts them), the workloads that want replicas and have had none ready for a day, the nodes only they hold and the orphaned claims the bill prices now. The nodes other pods hold are not in it (levelfour-api#2203) */
|
|
4
4
|
available_savings_monthly?: (number | null) | undefined;
|
|
5
|
+
/** The same, net of the enterprise discount: GET /savings' totals.monthly_net, which its cost_monthly_net divides */
|
|
6
|
+
available_savings_monthly_net?: (number | null) | undefined;
|
|
5
7
|
levers?: (LevelFour.ClusterLevers | null) | undefined;
|
|
6
8
|
/** The available recommendations that are not a container change, so no switch turns them on: an HPA's bounds, an idle workload, a NodePool, node group or claim. With rightsizing and consolidation they add up to available_savings_monthly */
|
|
7
9
|
other_savings?: (LevelFour.OtherSavings | null) | undefined;
|
|
8
10
|
/** What the verified changes saved (GET /v1/k8s/realized); null when nothing is verified */
|
|
9
11
|
realized?: (LevelFour.KubernetesRealized | null) | undefined;
|
|
12
|
+
/** The namespaces set to Automated, whether or not they act (dashboard#1699) */
|
|
13
|
+
automation_namespaces_set?: (number | null) | undefined;
|
|
10
14
|
/** Namespaces where the automation applies changes by itself: apply mode, not opted out by the levelfour.ai/automation=off label, in the Helm install's namespaces, recommendations on, sized by no other tool, not being taken over and not paused because the approver left; 0 while the cluster's automation is off or paused. Null when no cluster has the automation component */
|
|
11
15
|
automation_namespaces_acting?: (number | null) | undefined;
|
|
12
16
|
/** The namespaces the Automation tab lists: the current ones, system namespaces left out. Null when no cluster has the automation component */
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import type * as LevelFour from "../index.js";
|
|
2
2
|
export interface ClusterSummary {
|
|
3
|
-
/** What can be saved now a month, GET /savings' totals.monthly: the available recommendations (as the savings page's Available tab counts them),
|
|
3
|
+
/** What can be saved now a month, GET /savings' totals.monthly for the same clusters, read from the same items (levelfour-api#2217): the available recommendations (as the savings page's Available tab counts them), the workloads that want replicas and have had none ready for a day, the nodes only they hold and the orphaned claims the bill prices now. The nodes other pods hold are not in it (levelfour-api#2203) */
|
|
4
4
|
available_savings_monthly?: (number | null) | undefined;
|
|
5
|
+
/** The same, net of the enterprise discount: GET /savings' totals.monthly_net, which its cost_monthly_net divides */
|
|
6
|
+
available_savings_monthly_net?: (number | null) | undefined;
|
|
5
7
|
levers?: (LevelFour.ClusterLevers | null) | undefined;
|
|
6
8
|
/** The available recommendations that are not a container change, so no switch turns them on: an HPA's bounds, an idle workload, a NodePool, node group or claim. With rightsizing and consolidation they add up to available_savings_monthly */
|
|
7
9
|
other_savings?: (LevelFour.OtherSavings | null) | undefined;
|
|
8
10
|
/** What the verified changes saved (GET /v1/k8s/realized); null when nothing is verified */
|
|
9
11
|
realized?: (LevelFour.KubernetesRealized | null) | undefined;
|
|
12
|
+
/** The namespaces set to Automated, whether or not they act (dashboard#1699) */
|
|
13
|
+
automation_namespaces_set?: (number | null) | undefined;
|
|
10
14
|
/** Namespaces where the automation applies changes by itself: apply mode, not opted out by the levelfour.ai/automation=off label, in the Helm install's namespaces, recommendations on, sized by no other tool, not being taken over and not paused because the approver left; 0 while the cluster's automation is off or paused. Null when no cluster has the automation component */
|
|
11
15
|
automation_namespaces_acting?: (number | null) | undefined;
|
|
12
16
|
/** The namespaces the Automation tab lists: the current ones, system namespaces left out. Null when no cluster has the automation component */
|
|
@@ -15,7 +15,8 @@ export interface ConfigObjectView {
|
|
|
15
15
|
/** spec.automation of an AutomationConfig, or spec.policies of a RecommendationsConfig, as applied */
|
|
16
16
|
spec?: Record<string, unknown> | undefined;
|
|
17
17
|
ready: boolean;
|
|
18
|
-
|
|
18
|
+
/** One of Accepted, MissingApproval, Conflict, InvalidWindow, NamespaceNotAllowed, TooManyObjects, InvalidSpec, or one a newer component adds */
|
|
19
|
+
reason: string;
|
|
19
20
|
message?: string | undefined;
|
|
20
21
|
}
|
|
21
22
|
export declare namespace ConfigObjectView {
|
|
@@ -28,14 +29,4 @@ export declare namespace ConfigObjectView {
|
|
|
28
29
|
readonly WorkloadRecommendationsConfig: "WorkloadRecommendationsConfig";
|
|
29
30
|
};
|
|
30
31
|
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
31
|
-
const Reason: {
|
|
32
|
-
readonly Accepted: "Accepted";
|
|
33
|
-
readonly MissingApproval: "MissingApproval";
|
|
34
|
-
readonly Conflict: "Conflict";
|
|
35
|
-
readonly InvalidWindow: "InvalidWindow";
|
|
36
|
-
readonly NamespaceNotAllowed: "NamespaceNotAllowed";
|
|
37
|
-
readonly TooManyObjects: "TooManyObjects";
|
|
38
|
-
readonly InvalidSpec: "InvalidSpec";
|
|
39
|
-
};
|
|
40
|
-
type Reason = (typeof Reason)[keyof typeof Reason];
|
|
41
32
|
}
|
|
@@ -15,7 +15,8 @@ export interface ConfigObjectView {
|
|
|
15
15
|
/** spec.automation of an AutomationConfig, or spec.policies of a RecommendationsConfig, as applied */
|
|
16
16
|
spec?: Record<string, unknown> | undefined;
|
|
17
17
|
ready: boolean;
|
|
18
|
-
|
|
18
|
+
/** One of Accepted, MissingApproval, Conflict, InvalidWindow, NamespaceNotAllowed, TooManyObjects, InvalidSpec, or one a newer component adds */
|
|
19
|
+
reason: string;
|
|
19
20
|
message?: string | undefined;
|
|
20
21
|
}
|
|
21
22
|
export declare namespace ConfigObjectView {
|
|
@@ -28,14 +29,4 @@ export declare namespace ConfigObjectView {
|
|
|
28
29
|
readonly WorkloadRecommendationsConfig: "WorkloadRecommendationsConfig";
|
|
29
30
|
};
|
|
30
31
|
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
31
|
-
const Reason: {
|
|
32
|
-
readonly Accepted: "Accepted";
|
|
33
|
-
readonly MissingApproval: "MissingApproval";
|
|
34
|
-
readonly Conflict: "Conflict";
|
|
35
|
-
readonly InvalidWindow: "InvalidWindow";
|
|
36
|
-
readonly NamespaceNotAllowed: "NamespaceNotAllowed";
|
|
37
|
-
readonly TooManyObjects: "TooManyObjects";
|
|
38
|
-
readonly InvalidSpec: "InvalidSpec";
|
|
39
|
-
};
|
|
40
|
-
type Reason = (typeof Reason)[keyof typeof Reason];
|
|
41
32
|
}
|
|
@@ -31,15 +31,6 @@ var ConfigObjectView;
|
|
|
31
31
|
NamespaceRecommendationsConfig: "NamespaceRecommendationsConfig",
|
|
32
32
|
WorkloadRecommendationsConfig: "WorkloadRecommendationsConfig"
|
|
33
33
|
};
|
|
34
|
-
ConfigObjectView2.Reason = {
|
|
35
|
-
Accepted: "Accepted",
|
|
36
|
-
MissingApproval: "MissingApproval",
|
|
37
|
-
Conflict: "Conflict",
|
|
38
|
-
InvalidWindow: "InvalidWindow",
|
|
39
|
-
NamespaceNotAllowed: "NamespaceNotAllowed",
|
|
40
|
-
TooManyObjects: "TooManyObjects",
|
|
41
|
-
InvalidSpec: "InvalidSpec"
|
|
42
|
-
};
|
|
43
34
|
})(ConfigObjectView || (ConfigObjectView = {}));
|
|
44
35
|
// Annotate the CommonJS export names for ESM import in node:
|
|
45
36
|
0 && (module.exports = {
|
|
@@ -8,15 +8,6 @@ var ConfigObjectView;
|
|
|
8
8
|
NamespaceRecommendationsConfig: "NamespaceRecommendationsConfig",
|
|
9
9
|
WorkloadRecommendationsConfig: "WorkloadRecommendationsConfig"
|
|
10
10
|
};
|
|
11
|
-
ConfigObjectView2.Reason = {
|
|
12
|
-
Accepted: "Accepted",
|
|
13
|
-
MissingApproval: "MissingApproval",
|
|
14
|
-
Conflict: "Conflict",
|
|
15
|
-
InvalidWindow: "InvalidWindow",
|
|
16
|
-
NamespaceNotAllowed: "NamespaceNotAllowed",
|
|
17
|
-
TooManyObjects: "TooManyObjects",
|
|
18
|
-
InvalidSpec: "InvalidSpec"
|
|
19
|
-
};
|
|
20
11
|
})(ConfigObjectView || (ConfigObjectView = {}));
|
|
21
12
|
export {
|
|
22
13
|
ConfigObjectView
|
|
@@ -30,6 +30,10 @@ export interface ConsolidationBlocker {
|
|
|
30
30
|
scaler?: (LevelFour.WorkloadScaler | null) | undefined;
|
|
31
31
|
/** static_pod alone for a static pod, which goes with its node */
|
|
32
32
|
reasons: LevelFour.BlockingReason[];
|
|
33
|
+
/** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller). The pod's change, its workload or the pod itself, as the held changes list decides it, so a drawer shows the fix the list does (dashboard#1689) */
|
|
34
|
+
fix: ConsolidationBlocker.Fix;
|
|
35
|
+
/** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
|
|
36
|
+
fix_reason?: (ConsolidationBlocker.FixReason | null) | undefined;
|
|
33
37
|
/** Why moving the pod carries no risk: its app has no healthy pod, or its workload has no ready replica. Empty for a pod of a healthy app */
|
|
34
38
|
unhealthy_reasons?: LevelFour.UnhealthyReason[] | undefined;
|
|
35
39
|
/** Its node's latest Unconsolidatable and DisruptionBlocked events in the last 24 hours, newest first, at most 5 */
|
|
@@ -56,6 +60,28 @@ export declare namespace ConsolidationBlocker {
|
|
|
56
60
|
readonly ClusterAutoscaler: "cluster_autoscaler";
|
|
57
61
|
};
|
|
58
62
|
type Autoscaler = (typeof Autoscaler)[keyof typeof Autoscaler];
|
|
63
|
+
/** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller). The pod's change, its workload or the pod itself, as the held changes list decides it, so a drawer shows the fix the list does (dashboard#1689) */
|
|
64
|
+
const Fix: {
|
|
65
|
+
readonly FixOrScaleToZero: "fix_or_scale_to_zero";
|
|
66
|
+
readonly PdbAllowsNoEviction: "pdb_allows_no_eviction";
|
|
67
|
+
readonly DoNotDisrupt: "do_not_disrupt";
|
|
68
|
+
readonly Other: "other";
|
|
69
|
+
};
|
|
70
|
+
type Fix = (typeof Fix)[keyof typeof Fix];
|
|
71
|
+
const FixReason: {
|
|
72
|
+
readonly DoNotDisrupt: "do_not_disrupt";
|
|
73
|
+
readonly Pdb: "pdb";
|
|
74
|
+
readonly NodeAffinity: "node_affinity";
|
|
75
|
+
readonly AntiAffinity: "anti_affinity";
|
|
76
|
+
readonly TopologySpread: "topology_spread";
|
|
77
|
+
readonly Taints: "taints";
|
|
78
|
+
readonly LocalStorage: "local_storage";
|
|
79
|
+
readonly SafeToEvict: "safe_to_evict";
|
|
80
|
+
readonly KubeSystem: "kube_system";
|
|
81
|
+
readonly NoController: "no_controller";
|
|
82
|
+
readonly StaticPod: "static_pod";
|
|
83
|
+
};
|
|
84
|
+
type FixReason = (typeof FixReason)[keyof typeof FixReason];
|
|
59
85
|
const NodePricedBy: {
|
|
60
86
|
readonly NodeBill: "node_bill";
|
|
61
87
|
readonly BillRate: "bill_rate";
|
|
@@ -30,6 +30,10 @@ export interface ConsolidationBlocker {
|
|
|
30
30
|
scaler?: (LevelFour.WorkloadScaler | null) | undefined;
|
|
31
31
|
/** static_pod alone for a static pod, which goes with its node */
|
|
32
32
|
reasons: LevelFour.BlockingReason[];
|
|
33
|
+
/** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller). The pod's change, its workload or the pod itself, as the held changes list decides it, so a drawer shows the fix the list does (dashboard#1689) */
|
|
34
|
+
fix: ConsolidationBlocker.Fix;
|
|
35
|
+
/** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
|
|
36
|
+
fix_reason?: (ConsolidationBlocker.FixReason | null) | undefined;
|
|
33
37
|
/** Why moving the pod carries no risk: its app has no healthy pod, or its workload has no ready replica. Empty for a pod of a healthy app */
|
|
34
38
|
unhealthy_reasons?: LevelFour.UnhealthyReason[] | undefined;
|
|
35
39
|
/** Its node's latest Unconsolidatable and DisruptionBlocked events in the last 24 hours, newest first, at most 5 */
|
|
@@ -56,6 +60,28 @@ export declare namespace ConsolidationBlocker {
|
|
|
56
60
|
readonly ClusterAutoscaler: "cluster_autoscaler";
|
|
57
61
|
};
|
|
58
62
|
type Autoscaler = (typeof Autoscaler)[keyof typeof Autoscaler];
|
|
63
|
+
/** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller). The pod's change, its workload or the pod itself, as the held changes list decides it, so a drawer shows the fix the list does (dashboard#1689) */
|
|
64
|
+
const Fix: {
|
|
65
|
+
readonly FixOrScaleToZero: "fix_or_scale_to_zero";
|
|
66
|
+
readonly PdbAllowsNoEviction: "pdb_allows_no_eviction";
|
|
67
|
+
readonly DoNotDisrupt: "do_not_disrupt";
|
|
68
|
+
readonly Other: "other";
|
|
69
|
+
};
|
|
70
|
+
type Fix = (typeof Fix)[keyof typeof Fix];
|
|
71
|
+
const FixReason: {
|
|
72
|
+
readonly DoNotDisrupt: "do_not_disrupt";
|
|
73
|
+
readonly Pdb: "pdb";
|
|
74
|
+
readonly NodeAffinity: "node_affinity";
|
|
75
|
+
readonly AntiAffinity: "anti_affinity";
|
|
76
|
+
readonly TopologySpread: "topology_spread";
|
|
77
|
+
readonly Taints: "taints";
|
|
78
|
+
readonly LocalStorage: "local_storage";
|
|
79
|
+
readonly SafeToEvict: "safe_to_evict";
|
|
80
|
+
readonly KubeSystem: "kube_system";
|
|
81
|
+
readonly NoController: "no_controller";
|
|
82
|
+
readonly StaticPod: "static_pod";
|
|
83
|
+
};
|
|
84
|
+
type FixReason = (typeof FixReason)[keyof typeof FixReason];
|
|
59
85
|
const NodePricedBy: {
|
|
60
86
|
readonly NodeBill: "node_bill";
|
|
61
87
|
readonly BillRate: "bill_rate";
|
|
@@ -27,6 +27,25 @@ var ConsolidationBlocker;
|
|
|
27
27
|
Karpenter: "karpenter",
|
|
28
28
|
ClusterAutoscaler: "cluster_autoscaler"
|
|
29
29
|
};
|
|
30
|
+
ConsolidationBlocker2.Fix = {
|
|
31
|
+
FixOrScaleToZero: "fix_or_scale_to_zero",
|
|
32
|
+
PdbAllowsNoEviction: "pdb_allows_no_eviction",
|
|
33
|
+
DoNotDisrupt: "do_not_disrupt",
|
|
34
|
+
Other: "other"
|
|
35
|
+
};
|
|
36
|
+
ConsolidationBlocker2.FixReason = {
|
|
37
|
+
DoNotDisrupt: "do_not_disrupt",
|
|
38
|
+
Pdb: "pdb",
|
|
39
|
+
NodeAffinity: "node_affinity",
|
|
40
|
+
AntiAffinity: "anti_affinity",
|
|
41
|
+
TopologySpread: "topology_spread",
|
|
42
|
+
Taints: "taints",
|
|
43
|
+
LocalStorage: "local_storage",
|
|
44
|
+
SafeToEvict: "safe_to_evict",
|
|
45
|
+
KubeSystem: "kube_system",
|
|
46
|
+
NoController: "no_controller",
|
|
47
|
+
StaticPod: "static_pod"
|
|
48
|
+
};
|
|
30
49
|
ConsolidationBlocker2.NodePricedBy = {
|
|
31
50
|
NodeBill: "node_bill",
|
|
32
51
|
BillRate: "bill_rate"
|
|
@@ -4,6 +4,25 @@ var ConsolidationBlocker;
|
|
|
4
4
|
Karpenter: "karpenter",
|
|
5
5
|
ClusterAutoscaler: "cluster_autoscaler"
|
|
6
6
|
};
|
|
7
|
+
ConsolidationBlocker2.Fix = {
|
|
8
|
+
FixOrScaleToZero: "fix_or_scale_to_zero",
|
|
9
|
+
PdbAllowsNoEviction: "pdb_allows_no_eviction",
|
|
10
|
+
DoNotDisrupt: "do_not_disrupt",
|
|
11
|
+
Other: "other"
|
|
12
|
+
};
|
|
13
|
+
ConsolidationBlocker2.FixReason = {
|
|
14
|
+
DoNotDisrupt: "do_not_disrupt",
|
|
15
|
+
Pdb: "pdb",
|
|
16
|
+
NodeAffinity: "node_affinity",
|
|
17
|
+
AntiAffinity: "anti_affinity",
|
|
18
|
+
TopologySpread: "topology_spread",
|
|
19
|
+
Taints: "taints",
|
|
20
|
+
LocalStorage: "local_storage",
|
|
21
|
+
SafeToEvict: "safe_to_evict",
|
|
22
|
+
KubeSystem: "kube_system",
|
|
23
|
+
NoController: "no_controller",
|
|
24
|
+
StaticPod: "static_pod"
|
|
25
|
+
};
|
|
7
26
|
ConsolidationBlocker2.NodePricedBy = {
|
|
8
27
|
NodeBill: "node_bill",
|
|
9
28
|
BillRate: "bill_rate"
|
|
@@ -10,6 +10,8 @@ export interface ConsolidationChange {
|
|
|
10
10
|
name: string;
|
|
11
11
|
/** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller) */
|
|
12
12
|
fix: ConsolidationChange.Fix;
|
|
13
|
+
/** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
|
|
14
|
+
fix_reason?: (ConsolidationChange.FixReason | null) | undefined;
|
|
13
15
|
/** The kinds of blocker its pods raise at the latest batch */
|
|
14
16
|
reasons: ConsolidationChange.Reasons.Item[];
|
|
15
17
|
/** Whether it holds a node now that would go once its blockers clear and no open recommendation covers */
|
|
@@ -42,6 +44,20 @@ export declare namespace ConsolidationChange {
|
|
|
42
44
|
readonly Other: "other";
|
|
43
45
|
};
|
|
44
46
|
type Fix = (typeof Fix)[keyof typeof Fix];
|
|
47
|
+
const FixReason: {
|
|
48
|
+
readonly DoNotDisrupt: "do_not_disrupt";
|
|
49
|
+
readonly Pdb: "pdb";
|
|
50
|
+
readonly NodeAffinity: "node_affinity";
|
|
51
|
+
readonly AntiAffinity: "anti_affinity";
|
|
52
|
+
readonly TopologySpread: "topology_spread";
|
|
53
|
+
readonly Taints: "taints";
|
|
54
|
+
readonly LocalStorage: "local_storage";
|
|
55
|
+
readonly SafeToEvict: "safe_to_evict";
|
|
56
|
+
readonly KubeSystem: "kube_system";
|
|
57
|
+
readonly NoController: "no_controller";
|
|
58
|
+
readonly StaticPod: "static_pod";
|
|
59
|
+
};
|
|
60
|
+
type FixReason = (typeof FixReason)[keyof typeof FixReason];
|
|
45
61
|
type Reasons = Reasons.Item[];
|
|
46
62
|
namespace Reasons {
|
|
47
63
|
const Item: {
|
|
@@ -10,6 +10,8 @@ export interface ConsolidationChange {
|
|
|
10
10
|
name: string;
|
|
11
11
|
/** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller) */
|
|
12
12
|
fix: ConsolidationChange.Fix;
|
|
13
|
+
/** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
|
|
14
|
+
fix_reason?: (ConsolidationChange.FixReason | null) | undefined;
|
|
13
15
|
/** The kinds of blocker its pods raise at the latest batch */
|
|
14
16
|
reasons: ConsolidationChange.Reasons.Item[];
|
|
15
17
|
/** Whether it holds a node now that would go once its blockers clear and no open recommendation covers */
|
|
@@ -42,6 +44,20 @@ export declare namespace ConsolidationChange {
|
|
|
42
44
|
readonly Other: "other";
|
|
43
45
|
};
|
|
44
46
|
type Fix = (typeof Fix)[keyof typeof Fix];
|
|
47
|
+
const FixReason: {
|
|
48
|
+
readonly DoNotDisrupt: "do_not_disrupt";
|
|
49
|
+
readonly Pdb: "pdb";
|
|
50
|
+
readonly NodeAffinity: "node_affinity";
|
|
51
|
+
readonly AntiAffinity: "anti_affinity";
|
|
52
|
+
readonly TopologySpread: "topology_spread";
|
|
53
|
+
readonly Taints: "taints";
|
|
54
|
+
readonly LocalStorage: "local_storage";
|
|
55
|
+
readonly SafeToEvict: "safe_to_evict";
|
|
56
|
+
readonly KubeSystem: "kube_system";
|
|
57
|
+
readonly NoController: "no_controller";
|
|
58
|
+
readonly StaticPod: "static_pod";
|
|
59
|
+
};
|
|
60
|
+
type FixReason = (typeof FixReason)[keyof typeof FixReason];
|
|
45
61
|
type Reasons = Reasons.Item[];
|
|
46
62
|
namespace Reasons {
|
|
47
63
|
const Item: {
|
|
@@ -29,6 +29,19 @@ var ConsolidationChange;
|
|
|
29
29
|
DoNotDisrupt: "do_not_disrupt",
|
|
30
30
|
Other: "other"
|
|
31
31
|
};
|
|
32
|
+
ConsolidationChange2.FixReason = {
|
|
33
|
+
DoNotDisrupt: "do_not_disrupt",
|
|
34
|
+
Pdb: "pdb",
|
|
35
|
+
NodeAffinity: "node_affinity",
|
|
36
|
+
AntiAffinity: "anti_affinity",
|
|
37
|
+
TopologySpread: "topology_spread",
|
|
38
|
+
Taints: "taints",
|
|
39
|
+
LocalStorage: "local_storage",
|
|
40
|
+
SafeToEvict: "safe_to_evict",
|
|
41
|
+
KubeSystem: "kube_system",
|
|
42
|
+
NoController: "no_controller",
|
|
43
|
+
StaticPod: "static_pod"
|
|
44
|
+
};
|
|
32
45
|
let Reasons;
|
|
33
46
|
((Reasons2) => {
|
|
34
47
|
Reasons2.Item = {
|
|
@@ -6,6 +6,19 @@ var ConsolidationChange;
|
|
|
6
6
|
DoNotDisrupt: "do_not_disrupt",
|
|
7
7
|
Other: "other"
|
|
8
8
|
};
|
|
9
|
+
ConsolidationChange2.FixReason = {
|
|
10
|
+
DoNotDisrupt: "do_not_disrupt",
|
|
11
|
+
Pdb: "pdb",
|
|
12
|
+
NodeAffinity: "node_affinity",
|
|
13
|
+
AntiAffinity: "anti_affinity",
|
|
14
|
+
TopologySpread: "topology_spread",
|
|
15
|
+
Taints: "taints",
|
|
16
|
+
LocalStorage: "local_storage",
|
|
17
|
+
SafeToEvict: "safe_to_evict",
|
|
18
|
+
KubeSystem: "kube_system",
|
|
19
|
+
NoController: "no_controller",
|
|
20
|
+
StaticPod: "static_pod"
|
|
21
|
+
};
|
|
9
22
|
let Reasons;
|
|
10
23
|
((Reasons2) => {
|
|
11
24
|
Reasons2.Item = {
|
|
@@ -7,6 +7,8 @@ export interface ConsolidationChangeDetail {
|
|
|
7
7
|
name: string;
|
|
8
8
|
/** The one fix the change needs, the first that applies: fix_or_scale_to_zero when its Deployment or StatefulSet wants replicas and has none ready; pdb_allows_no_eviction when a PodDisruptionBudget lets none of its pods leave; do_not_disrupt for Karpenter's annotation; other for the rest (affinity, taints, local storage, no controller) */
|
|
9
9
|
fix: ConsolidationChangeDetail.Fix;
|
|
10
|
+
/** With the fix other, the reason its sentence names: the first of its reasons in BlockerReason's order (do_not_disrupt, pdb, node_affinity, anti_affinity, topology_spread, taints, local_storage, safe_to_evict, kube_system, no_controller); null with any other fix, which names its own cause (dashboard#1689) */
|
|
11
|
+
fix_reason?: (ConsolidationChangeDetail.FixReason | null) | undefined;
|
|
10
12
|
/** The kinds of blocker its pods raise at the latest batch */
|
|
11
13
|
reasons: ConsolidationChangeDetail.Reasons.Item[];
|
|
12
14
|
/** Whether it holds a node now that would go once its blockers clear and no open recommendation covers */
|
|
@@ -45,6 +47,20 @@ export declare namespace ConsolidationChangeDetail {
|
|
|
45
47
|
readonly Other: "other";
|
|
46
48
|
};
|
|
47
49
|
type Fix = (typeof Fix)[keyof typeof Fix];
|
|
50
|
+
const FixReason: {
|
|
51
|
+
readonly DoNotDisrupt: "do_not_disrupt";
|
|
52
|
+
readonly Pdb: "pdb";
|
|
53
|
+
readonly NodeAffinity: "node_affinity";
|
|
54
|
+
readonly AntiAffinity: "anti_affinity";
|
|
55
|
+
readonly TopologySpread: "topology_spread";
|
|
56
|
+
readonly Taints: "taints";
|
|
57
|
+
readonly LocalStorage: "local_storage";
|
|
58
|
+
readonly SafeToEvict: "safe_to_evict";
|
|
59
|
+
readonly KubeSystem: "kube_system";
|
|
60
|
+
readonly NoController: "no_controller";
|
|
61
|
+
readonly StaticPod: "static_pod";
|
|
62
|
+
};
|
|
63
|
+
type FixReason = (typeof FixReason)[keyof typeof FixReason];
|
|
48
64
|
type Reasons = Reasons.Item[];
|
|
49
65
|
namespace Reasons {
|
|
50
66
|
const Item: {
|