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(eks): added support for bootstrapSelfManagedAddons #30804

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
unit tests
mrlikl committed Jul 9, 2024
commit aa486468a3a963f75cc8929d91a5c326c40ff7c8
Original file line number Diff line number Diff line change
@@ -368,6 +368,28 @@ describe('cluster resource provider', () => {
roleArn: 'new-arn',
});
});

test('updates to bootstrapSelfManagedAddons requires a replacement', async () => {
const handler = new ClusterResourceHandler(mocks.client, mocks.newRequest('Update', {
...mocks.MOCK_PROPS,
bootstrapSelfManagedAddons: false,
}, {
...mocks.MOCK_PROPS,
bootstrapSelfManagedAddons: true,
}));
const resp = await handler.onEvent();

expect(mocks.actualRequest.createClusterRequest!).toEqual({
bootstrapSelfManagedAddons: false,
name: 'MyResourceId-fakerequestid',
roleArn: 'arn:of:role',
resourcesVpcConfig:
{
subnetIds: ['subnet1', 'subnet2'],
securityGroupIds: ['sg1', 'sg2', 'sg3'],
},
});
});
});

test('encryption config cannot be updated', async () => {
Loading