Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into M3-8611
Browse files Browse the repository at this point in the history
  • Loading branch information
cpathipa committed Dec 4, 2024
2 parents b8f2d73 + af363a5 commit 51b1a29
Show file tree
Hide file tree
Showing 207 changed files with 1,592 additions and 785 deletions.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11242-fixed-1732004091597.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Radio size prop not affecting the radio button's dimensions ([#11242](https://github.com/linode/manager/pull/11242))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11310-added-1732287073605.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Added
---

New routes for iam, feature flag and menu item ([#11310](https://github.com/linode/manager/pull/11310))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11314-removed-1732300595067.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Removed
---

`Autocomplete`, `List`, and `ListItem` components (migrated to `ui` package) ([#11314](https://github.com/linode/manager/pull/11314))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Add Cluster Type section to Create Cluster flow for LKE-E ([#11322](https://github.com/linode/manager/pull/11322))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11326-tests-1732566960471.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Add new assertions for linode backup Cypress tests ([#11326](https://github.com/linode/manager/pull/11326))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11340-tests-1732789911285.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Add unit test cases for `DialogTitle` component ([#11340](https://github.com/linode/manager/pull/11340))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11353-removed-1733229097582.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Removed
---

Migrate `FormControlLabel` from `manager` to `ui` package ([#11353](https://github.com/linode/manager/pull/11353))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11356-fixed-1733237715392.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

LinodeCreate OS Panel fetches region with -1 on page load ([#11356](https://github.com/linode/manager/pull/11356))
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tech Stories
---

Bump recharts to ^2.14.1 ([#11358](https://github.com/linode/manager/pull/11358))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11363-added-1733258836295.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Added
---

Docs link and region availability notice for Accelerated compute plans ([#11363](https://github.com/linode/manager/pull/11363))
24 changes: 12 additions & 12 deletions packages/manager/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## [2024-11-19] - v1.132.1
## [2024-11-22] - v1.132.2

### Changed:

- Change "Application Platform for LKE" to "Akamai App Platform"([#11312](https://github.com/linode/manager/pull/11312))

## [2024-11-19] - v1.132.1

### Fixed:

- Disable shared CPU whenever APL is enabled ([#11284](https://github.com/linode/manager/pull/11284))

## [2024-11-12] - v1.132.0


### Added:

- Tooltip for 'Usable Storage' in Create/Resize Database Table ([#11223](https://github.com/linode/manager/pull/11223))
Expand Down Expand Up @@ -42,7 +46,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Misaligned table headers in Account Maintenance page ([#11099](https://github.com/linode/manager/pull/11099))
- Database create page form being enabled for restricted users ([#11137](https://github.com/linode/manager/pull/11137))
- Faux bold in Safari with `<strong />` & `<b />` tags ([#11149](https://github.com/linode/manager/pull/11149))
- `Coverage Comment` GHA running on drafts ([#11161](https://github.com/linode/manager/pull/11161))
- `Coverage Comment` GHA running on drafts ([#11161](https://github.com/linode/manager/pull/11161))
- Aria label of action menu button in IP address table row ([#11167](https://github.com/linode/manager/pull/11167))
- UI bugs on the Object Storage bucket and access key landing pages ([#11187](https://github.com/linode/manager/pull/11187))
- Animation for VPC subnet drawers ([#11195](https://github.com/linode/manager/pull/11195))
Expand Down Expand Up @@ -76,7 +80,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Upcoming Features:

- ACLP UI - DBaaS instances order by label ([#11226](https://github.com/linode/manager/pull/11226))
- Add post processing for missing timestamp data across dimensions in ACLP charts ([#11225](https://github.com/linode/manager/pull/11225))
- Add post processing for missing timestamp data across dimensions in ACLP charts ([#11225](https://github.com/linode/manager/pull/11225))
- Add default x-filter for DBasS Aiven clusters fetch in resource selection component ([#11150](https://github.com/linode/manager/pull/11150))
- Replace one-off hardcoded black and white color values with colorTokens ([#11165](https://github.com/linode/manager/pull/11165))
- Add global border radius token to theme and replace hard coded values where `borderRadius = 0` ([#11169](https://github.com/linode/manager/pull/11169))
Expand All @@ -86,24 +90,20 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- DBaaS: Add new Maintenance, Upgrade Version dialog, and Review Updates dialog components ([#11198](https://github.com/linode/manager/pull/11198))
- DBaaS: major minor updates integration ([#11199](https://github.com/linode/manager/pull/11199))


## [2024-11-05] - v1.131.2


### Fixed:

- APL summary panel not being loaded consistently ([#11207](https://github.com/linode/manager/pull/11207))

## [2024-10-29] - v1.131.1


### Fixed:

- Hostnames not showing on the Database details page ([#11182](https://github.com/linode/manager/pull/11182))

## [2024-10-28] - v1.131.0


### Added:

- Access Control List (ACL) integration to LKE clusters ([#10968](https://github.com/linode/manager/pull/10968))
Expand All @@ -126,7 +126,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Increase Cloud Manager node.js memory allocation (development jobs) ([#11084](https://github.com/linode/manager/pull/11084))
- Invoice heading from 'Invoice' to 'Tax Invoice' for UAE Customers ([#11097](https://github.com/linode/manager/pull/11097))
- Revise VPC Not Recommended Configuration Tooltip Text
([#11098](https://github.com/linode/manager/pull/11098))
([#11098](https://github.com/linode/manager/pull/11098))
- cloud-init icon ([#11100](https://github.com/linode/manager/pull/11100))
- Hide distributed regions in Linode Create StackScripts ([#11139](https://github.com/linode/manager/pull/11139))

Expand Down Expand Up @@ -157,7 +157,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Add new test to confirm changes to the Object details drawer for OBJ Gen 2 ([#11045](https://github.com/linode/manager/pull/11045))
- Add Cypress test for non-empty Linode landing page with restricted user ([#11060](https://github.com/linode/manager/pull/11060))
- Allow overriding feature flags via `CY_TEST_FEATURE_FLAGS` environment variable ([#11088](https://github.com/linode/manager/pull/11088))
- Fix flaky `DatabaseBackups.test.tsx` in coverage job ([#11130](https://github.com/linode/manager/pull/11130))
- Fix flaky `DatabaseBackups.test.tsx` in coverage job ([#11130](https://github.com/linode/manager/pull/11130))
- Allow pipeline Slack notifications to be customized ([#11088](https://github.com/linode/manager/pull/11088))
- Show PR title in Slack CI notifications ([#11088](https://github.com/linode/manager/pull/11088))
- Fix `AppSelect.test.tsx` test flake ([#11104](https://github.com/linode/manager/pull/11104))
Expand All @@ -176,7 +176,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Add Image Service Gen 2 final GA tweaks ([#11115](https://github.com/linode/manager/pull/11115))
- Add title / label for all global filters in ACLP ([#11118](https://github.com/linode/manager/pull/11118))
- Add global colorTokens to theme and replace one-off hardcoded white colors ([#11120](https://github.com/linode/manager/pull/11120))
- Encourage setting access controls during DBaaS creation ([#11124](https://github.com/linode/manager/pull/11124))
- Encourage setting access controls during DBaaS creation ([#11124](https://github.com/linode/manager/pull/11124))

## [2024-10-14] - v1.130.0

Expand Down Expand Up @@ -249,7 +249,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Upcoming Features:

- Add Region filtering to Linodes landing table ([#10639](https://github.com/linode/manager/pull/10639))
- Add `useAclpPreference` hook to improve flickering in widget component ([#10853](https://github.com/linode/manager/pull/10853))
- Add `useAclpPreference` hook to improve flickering in widget component ([#10853](https://github.com/linode/manager/pull/10853))
- Restrict Image Upload to regions with Object Storage ([#11038](https://github.com/linode/manager/pull/11038))
- Add OBJ Gen2 resource links and fix test flake for bucket creation ([#11047](https://github.com/linode/manager/pull/11047))
- Add DBaaS GA enhancements to backups tab and make Beta fixes ([#11048](https://github.com/linode/manager/pull/11048))
Expand Down
108 changes: 108 additions & 0 deletions packages/manager/cypress/e2e/core/kubernetes/lke-create.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
dcPricingDocsUrl,
} from 'support/constants/dc-specific-pricing';
import { mockGetLinodeTypes } from 'support/intercepts/linodes';
import { mockAppendFeatureFlags } from 'support/intercepts/feature-flags';

/**
* Gets the label for an LKE plan as shown in creation plan table.
Expand Down Expand Up @@ -826,3 +827,110 @@ describe('LKE Cluster Creation with ACL', () => {
});
});
});

describe('LKE Cluster Creation with LKE-E', () => {
/**
* - Confirms LKE-E flow does not exist if account doesn't have the corresponding capability
* @todo LKE-E: Remove this test once LKE-E is fully rolled out
*/
it('does not show the LKE-E flow with the feature flag off', () => {
mockAppendFeatureFlags({
lkeEnterprise: { enabled: false, la: false },
}).as('getFeatureFlags');
cy.visitWithLogin('/kubernetes/clusters');

ui.button
.findByTitle('Create Cluster')
.should('be.visible')
.should('be.enabled')
.click();

cy.url().should('endWith', '/kubernetes/create');

cy.contains('Cluster Type').should('not.exist');
});

describe('shows the LKE-E flow with the feature flag on', () => {
beforeEach(() => {
// Mock feature flag -- @TODO LKE-E: Remove feature flag once LKE-E is fully rolled out
mockAppendFeatureFlags({
lkeEnterprise: { enabled: true, la: true },
}).as('getFeatureFlags');
});

/**
* - Mocks the LKE-E capability
* - Confirms the Cluster Type selection can be made
* - Confirms that HA is enabled by default with LKE-E selection
* @todo LKE-E: Add onto this test as the LKE-E changes to the Create flow are built out
*/
it('creates an LKE-E cluster with the account capability', () => {
mockGetAccount(
accountFactory.build({
capabilities: ['Kubernetes Enterprise'],
})
).as('getAccount');

cy.visitWithLogin('/kubernetes/clusters');

ui.button
.findByTitle('Create Cluster')
.should('be.visible')
.should('be.enabled')
.click();

cy.url().should('endWith', '/kubernetes/create');

cy.findByText('Cluster Type').should('be.visible');

// Confirm both cluster types exist and the LKE card is selected by default
cy.get(`[data-qa-select-card-heading="LKE"]`)
.closest('[data-qa-selection-card]')
.should('be.visible')
.should('have.attr', 'data-qa-selection-card-checked', 'true');

cy.get(`[data-qa-select-card-heading="LKE Enterprise"]`)
.closest('[data-qa-selection-card]')
.should('be.visible')
.should('have.attr', 'data-qa-selection-card-checked', 'false')
.click();

// Select LKE-E as the cluster type
cy.get(`[data-qa-select-card-heading="LKE Enterprise"]`)
.closest('[data-qa-selection-card]')
.should('be.visible')
.should('have.attr', 'data-qa-selection-card-checked', 'true');

// Confirm HA section is hidden since LKE-E includes HA by default
cy.findByText('HA Control Plane').should('not.exist');

// TODO: finish the rest of this test in subsequent PRs
});

it('disables the Cluster Type selection without the LKE-E account capability', () => {
cy.visitWithLogin('/kubernetes/clusters');

ui.button
.findByTitle('Create Cluster')
.should('be.visible')
.should('be.enabled')
.click();

cy.url().should('endWith', '/kubernetes/create');

// Confirm the Cluster Type selection can be made when the LKE-E feature is enabled
cy.findByText('Cluster Type').should('be.visible');

// Confirm both tiers exist and the LKE card is selected by default
cy.get(`[data-qa-select-card-heading="LKE"]`)
.closest('[data-qa-selection-card]')
.should('be.visible')
.should('have.attr', 'data-qa-selection-card-checked', 'true');

cy.get(`[data-qa-select-card-heading="LKE Enterprise"]`)
.closest('[data-qa-selection-card]')
.should('be.visible')
.should('have.attr', 'disabled');
});
});
});
14 changes: 7 additions & 7 deletions packages/manager/cypress/e2e/core/kubernetes/lke-update.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ describe('LKE ACL updates', () => {
.click();

ui.drawer
.findByTitle('Control Plane ACL')
.findByTitle(`Control Plane ACL for ${mockCluster.label}`)
.should('be.visible')
.within(() => {
// Confirm submit button is disabled if form has not been changed
Expand Down Expand Up @@ -1508,7 +1508,7 @@ describe('LKE ACL updates', () => {

// confirm data within drawer is updated and edit IPs again
ui.drawer
.findByTitle('Control Plane ACL')
.findByTitle(`Control Plane ACL for ${mockCluster.label}`)
.should('be.visible')
.within(() => {
// Confirm submit button is disabled if form has not been changed
Expand Down Expand Up @@ -1565,7 +1565,7 @@ describe('LKE ACL updates', () => {

// confirm data within drawer is updated again
ui.drawer
.findByTitle('Control Plane ACL')
.findByTitle(`Control Plane ACL for ${mockCluster.label}`)
.should('be.visible')
.within(() => {
// confirm updated IPv6 addresses display
Expand Down Expand Up @@ -1625,7 +1625,7 @@ describe('LKE ACL updates', () => {
.click();

ui.drawer
.findByTitle('Control Plane ACL')
.findByTitle(`Control Plane ACL for ${mockCluster.label}`)
.should('be.visible')
.within(() => {
// Confirm submit button is disabled if form has not been changed
Expand Down Expand Up @@ -1694,7 +1694,7 @@ describe('LKE ACL updates', () => {

// confirm data within drawer is updated
ui.drawer
.findByTitle('Control Plane ACL')
.findByTitle(`Control Plane ACL for ${mockCluster.label}`)
.should('be.visible')
.within(() => {
// confirm enable toggle was updated
Expand Down Expand Up @@ -1758,7 +1758,7 @@ describe('LKE ACL updates', () => {
);

ui.drawer
.findByTitle('Control Plane ACL')
.findByTitle(`Control Plane ACL for ${mockCluster.label}`)
.should('be.visible')
.within(() => {
// Confirm installation notice is displayed
Expand Down Expand Up @@ -1840,7 +1840,7 @@ describe('LKE ACL updates', () => {
.click();

ui.drawer
.findByTitle('Control Plane ACL')
.findByTitle(`Control Plane ACL for ${mockCluster.label}`)
.should('be.visible')
.within(() => {
// Confirm ACL IP validation works as expected for IPv4
Expand Down
Loading

0 comments on commit 51b1a29

Please sign in to comment.