feat: [M3-7048] - Add DC-specific pricing for Kubernetes node pools#9606
Conversation
4661995 to
456bb81
Compare
There was a problem hiding this comment.
Note for later: not a blocker but we may want to revisit not rendering anything (and just an error) if missing types?
There was a problem hiding this comment.
Would be nice to rename this util getKubeMonthlyPrice and move it to the pricing utils for consistency
There was a problem hiding this comment.
We should type highAvailabilityPrice as PriceObject for consistency.
There was a problem hiding this comment.
same for those, types are inferred but i think we should be more strict
There was a problem hiding this comment.
😃 ty (i've seen this somewhere else ;) !
|
@jdamore-linode since we may merge this PR while @mjac0bs is away, do you mind checking if the failing |
bnussman-akamai
left a comment
There was a problem hiding this comment.
All flows showed correct prices! 💵
@abailly-akamai We can disregard the failure! We were having an OBJ incident earlier today around the time of this run that I think is responsible for the failure; it just passed locally for me 👍 |
ed7e79c to
d7055c0
Compare
…9606) * Update kube utils for dynamic pricing * Add DC-specific dynamic pricing for Add and Resize Node Pool drawers * Add DC-specific dynamic pricing to cluster specs and checkout bar * Update test * Add DC-specific dynamic pricing in kube node pools tables * Display dynamic prices in the selection card, mobile view * Render mobile view empty state plan table helper text in Notice * WIP: suspicious tests * Update unit tests * Cleanup * Added changeset: Add DC-specific pricing to Kubernetes node pools * feat: [M3-7048] feedback --------- Co-authored-by: Alban Bailly <abailly@akamai.com>
Description 📝
This PR adds DC-specific pricing for Kubernetes node pools in the create flow and on the details page in add/resize drawers.
Major Changes 🔄
With the mocks and feature flag on:
Kube Create page:
Kube Details page:
Add a Node Pool drawer:
Resize Pool drawer:
Preview 📷
How to test 🧪
DC-Specific Pricingflag and MSW are both on.kubernetesAPIResponseandkubernetesClusterFactoryfactories and replacesregion: 'us-central'withregion: 'id-cgk'.I did not cover the Add/Resize Node Pool drawers. There is an
lke-update.spec.tstesting adding and resizing node pools; these should be updated in an e2e ticket.