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

Fixing opensearch helmchart conditions when there is only cluster_manager role specified to nodes #380

Conversation

MindAwakeBodyAsleep
Copy link

@MindAwakeBodyAsleep MindAwakeBodyAsleep commented Feb 12, 2023

Description

As new opensearch role for nodes was introduce helmchart templates should be adjusted. I Fixed opensearch helmchart conditions when there is no master role specified to nodes.

Issues Resolved

[List any issues this PR will resolve. You should likely open an issue if one does not already exist.]

Check List

  • Commits are signed per the DCO using --signoff

For any changes to files within Helm chart directories:

  • Helm chart version bumped
  • Helm chart CHANGELOG.md updated to reflect change

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…ager role specified to nodes

Signed-off-by: Hubert Klasa <[email protected]>
@MindAwakeBodyAsleep MindAwakeBodyAsleep force-pushed the bugfix/cluster_manager_specific_conditions_fix branch from c8bb735 to e6966d1 Compare February 13, 2023 16:54
Signed-off-by: Hubert Klasa <[email protected]>
@MindAwakeBodyAsleep MindAwakeBodyAsleep force-pushed the bugfix/cluster_manager_specific_conditions_fix branch from e6966d1 to aeb36b1 Compare February 13, 2023 17:17
@MindAwakeBodyAsleep
Copy link
Author

MindAwakeBodyAsleep commented Mar 1, 2023

@TheAlgo @DandyDeveloper have you had a chance to take a look at that PR? :)

@bbarani
Copy link
Member

bbarani commented Mar 2, 2023

@TheAlgo @DandyDeveloper @peterzhuamazon @prudhvigodithi Can you please review this PR?

@prudhvigodithi
Copy link
Member

Hey @MindAwakeBodyAsleep thanks for the contribution, the condition added LGTM, but can you please share the issue you are facing ?
Thank you

@@ -354,7 +354,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
{{- if (and (has "master" .Values.roles) (not .Values.singleNode)) }}
{{- if (and (or (has "master" .Values.roles) (has "cluster_manager" .Values.roles)) (not .Values.singleNode)) }}
Copy link
Member

Choose a reason for hiding this comment

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

Good to add description in README.md as well for the same. Also echoing on the question by @prudhvigodithi how is it impacting and what are the failures we are seeing. Good to capture it in the github issue

Choose a reason for hiding this comment

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

I can provide some input on the question posed by @prudhvigodithi . I recently was deploying Opensearch for the first time and was having issues when there was more than one replica. I had been attempting to use all inclusive language, to include specifying a new roles key in my values.yaml where I replaced the master role with cluster_manger. I tracked down the issue to these conditional renderings in the helm chart. I solved it by just using the non-inclusive language.

@peterzhuamazon
Copy link
Member

This seems only a change for 2.x+ as 1.x does not have cluster_manager term.
So no backport.
@prudhvigodithi

@prudhvigodithi
Copy link
Member

Hey @MindAwakeBodyAsleep just following back, can you please take care of the previous comments and we can merge this PR.
Thank you

@prudhvigodithi
Copy link
Member

Hey @MindAwakeBodyAsleep just following back, can you please take care of the previous comments and we can merge this PR, also I do see some conflicts can you please fix them as well?
Thank you

Copy link
Member

@TheAlgo TheAlgo left a comment

Choose a reason for hiding this comment

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

@MindAwakeBodyAsleep Checking for the comments on the PR. Thanks

@TheAlgo
Copy link
Member

TheAlgo commented Aug 14, 2023

@MindAwakeBodyAsleep Checking for the comments on the PR. Thanks

@dblock
Copy link
Member

dblock commented Jul 15, 2024

Looks stalled, closing, please feel free to finish and reopen.

[Catch All Triage - 1, 2, 3, 4]

@dblock dblock closed this Jul 15, 2024
@Phenix66
Copy link

Glad I received the email notification on this, I had completely forgotten about this and wanted to keep tabs on it. Since the original author didn't seem to follow through, I created a new PR that covers all inclusive language changes: #560

@prudhvigodithi
Copy link
Member

Thanks @Phenix66.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

7 participants