Skip to content

Commit

Permalink
EKS - add 1.31 and remove 1.27 (rancher#12309)
Browse files Browse the repository at this point in the history
* add 1.31 to eks versions data

.

* fix eks config unit test
  • Loading branch information
mantis-toboggan-md authored Oct 28, 2024
1 parent 1a4db95 commit 8662b03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions pkg/eks/assets/data/eks-versions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default ['1.30',
export default ['1.31',

'1.29',
'1.30',

'1.28',
'1.29',

'1.27'];
'1.28'];
4 changes: 1 addition & 3 deletions pkg/eks/components/__tests__/Config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const mockedRoute = { query: {} };

const requiredSetup = (versionSetting = { value: '<=1.27.x' }) => {
return {
// mixins: [mockedValidationMixin],
mocks: {
$store: mockedStore(versionSetting),
$route: mockedRoute,
Expand All @@ -59,7 +58,7 @@ const requiredSetup = (versionSetting = { value: '<=1.27.x' }) => {
const setCredential = async(wrapper: VueWrapper<any>, config = {} as EKSConfig) => {
config.amazonCredentialSecret = 'foo';
config.region = 'bar';
await wrapper.setProps({ config });
await wrapper.setProps({ config: { ...config } });
await flushPromises();
};

Expand Down Expand Up @@ -467,7 +466,6 @@ describe('eKS K8s configuration', () => {
});

await setCredential(wrapper, eksConfig);

const versionDropdown = wrapper.getComponent('[data-testid="eks-version-dropdown"]');

const upgradesDisallowedBanner = wrapper.getComponent('[data-testid="eks-version-upgrade-disallowed-banner"]');
Expand Down

0 comments on commit 8662b03

Please sign in to comment.