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

[scripts] k8s-env automatically switches to es7 on Arm Macs #3830

Closed
wants to merge 2 commits into from

Conversation

sotojn
Copy link
Contributor

@sotojn sotojn commented Nov 14, 2024

This PR makes the following changes:

Scripts

New features

  • Introduces a check within k8s-env command that checks the host system’s architecture and the Elasticsearch version. If the host architecture matches ARM and the Elasticsearch version is 6.x, k8s-env will automatically switch the Elasticsearch version to 7.9.3 to ensure compatibility.

Bumps

  • @terascope/scripts from v1.5.0 to v1.5.1

@sotojn sotojn self-assigned this Nov 14, 2024
Copy link
Contributor

@busma13 busma13 left a comment

Choose a reason for hiding this comment

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

Reviewed in case we do decide to go this route, but we might just update the default ES version to 7

Comment on lines +846 to +854
// Check for arm architecture and es6 combo, if so switch to es7
if (
service === 'elasticsearch'
&& os.arch().includes('arm')
&& version.startsWith('6')
) {
signale.warn('Detected arm architecture with unsupported es6, switching to es7.9.3..');
version = '7.9.3';
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we do this outside of this if statement so it works for docker as well?

Comment on lines +634 to +635
&& options.testPlatform.includes('kubernetes'))
) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If we do this for docker too this check isn't needed.

@sotojn
Copy link
Contributor Author

sotojn commented Nov 18, 2024

We've decided to instead change the default version of es 6 to es 7 so that we can have cross compatibility between arm and amd users. #3833

@sotojn sotojn closed this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants