Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [M3-6787] - Update LKE HA implementation #9489

Merged
merged 20 commits into from
Aug 11, 2023

Conversation

carrillo-erik
Copy link
Contributor

@carrillo-erik carrillo-erik commented Aug 3, 2023

Description 📝

Replaces the former HA Checkbox with a Radio Group and moves the HA Control Plane away from the KubeCheckoutBar into the main content.

Major Changes 🔄

  • New HAControlPlane component consisting of a RadioGroup forcing users to make an active selection for HA
  • Remove HACheckbox component from the KubeCheckoutBar component in the sidebar.
  • User's choice to either opt-in or opt-out of HA is now required to create a Cluster.

Preview 📷

Before After
beforeChanges afterChanges

How to test 🧪

  1. Visit the kubernetes/create landing page and inspect for any UI defects.
  2. Test the functionality of the new HAControlPlane component.
  3. Verify that LKE HA flow works as expected.

@mjac0bs
Copy link
Contributor

mjac0bs commented Aug 3, 2023

I had to hardcode one of the colors otherwise it would only work for either of the themes. I also attempted to solve the issue with styled components but the issue persisted. This seems straightforward like the text color on the SearchBar from the other ticket. Maybe @jaalah-akamai can offer some helpful insight into this.

Copy link
Member

@bnussman-akamai bnussman-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like selecting No first adds the HA price and selecting Yes removes the HA price.

@bnussman-akamai bnussman-akamai added Add'tl Approval Needed Waiting on another approval! and removed Ready for Review labels Aug 4, 2023
@bnussman-akamai bnussman-akamai added Ready for Review and removed Add'tl Approval Needed Waiting on another approval! labels Aug 10, 2023
@bnussman-akamai bnussman-akamai added Add'tl Approval Needed Waiting on another approval! and removed Ready for Review labels Aug 10, 2023
@carrillo-erik
Copy link
Contributor Author

After discussing the LKE HA pricing variable issue, it was decided that at this time the e2e test coverage for HA Control Plane would be removed. An additional unit test was implemented to help mitigate any loss of coverage. A spike ticket will be created to investigate the HIGH_AVAILABILITY_PRICE constant variable and explore other options for maintaining it. After the spike ticket is complete, the e2e test coverage will be revisited.

@bnussman-akamai bnussman-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Aug 11, 2023
@carrillo-erik carrillo-erik merged commit 9830b24 into linode:develop Aug 11, 2023
mjac0bs added a commit to mjac0bs/manager that referenced this pull request Aug 18, 2023
mjac0bs added a commit that referenced this pull request Aug 22, 2023
* Delete unused files from refactor in #9489

* Add dynamic HA pricing for Kubernetes

* Update unit tests

* Add DC-specific HA price on upgrade dialog

* Replace HA env var with pricing constant

* Clean up

* Added changeset: Add DC-specific pricing to Kubernetes HA

* Don't display prices before region is selected

* Tweak copy in Kube checkout bar

* Update tests

* Feature flag all changes and update tests

* Update price increase percentage for Sao Paulo

* Address feedback: eliminate prop and use hook

* Address feedback: copy, UX for HA checkout bar
coliu-akamai pushed a commit to coliu-akamai/manager that referenced this pull request Aug 23, 2023
* Delete unused files from refactor in linode#9489

* Add dynamic HA pricing for Kubernetes

* Update unit tests

* Add DC-specific HA price on upgrade dialog

* Replace HA env var with pricing constant

* Clean up

* Added changeset: Add DC-specific pricing to Kubernetes HA

* Don't display prices before region is selected

* Tweak copy in Kube checkout bar

* Update tests

* Feature flag all changes and update tests

* Update price increase percentage for Sao Paulo

* Address feedback: eliminate prop and use hook

* Address feedback: copy, UX for HA checkout bar
corya-akamai pushed a commit to corya-akamai/manager that referenced this pull request Sep 6, 2023
* Delete unused files from refactor in linode#9489

* Add dynamic HA pricing for Kubernetes

* Update unit tests

* Add DC-specific HA price on upgrade dialog

* Replace HA env var with pricing constant

* Clean up

* Added changeset: Add DC-specific pricing to Kubernetes HA

* Don't display prices before region is selected

* Tweak copy in Kube checkout bar

* Update tests

* Feature flag all changes and update tests

* Update price increase percentage for Sao Paulo

* Address feedback: eliminate prop and use hook

* Address feedback: copy, UX for HA checkout bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants