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

Fix for detecting whether or not in HA mode #521

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

1000TurquoisePogs
Copy link
Member

@1000TurquoisePogs 1000TurquoisePogs commented Dec 11, 2023

App-server was determining whether or not to do HA-related actions depending on whether it detected an environment variable that appears to never have been in v2, and maybe was from v1.

Now, I try to detect if we're in an HA mode depending environment variables that fit the pattern of ZWE_haInstances_<something here>_hostname but NOT ZWE_haInstances_<something here>_components_<...>hostname

This pattern attempts to count the quantity of items in the haInstances object, without counting references to hostname that could instead be present in some components.

Usually we would read the zowe yaml for this, but the existing, exported function doesnt take the config as an argument, so I do not want to break any API.

…ookie and use of caching service

Signed-off-by: 1000TurquoisePogs <sgrady@rocketsoftware.com>
@1000TurquoisePogs
Copy link
Member Author

Fix for zowe/zlux#969

Signed-off-by: 1000TurquoisePogs <sgrady@rocketsoftware.com>
@pull-request-size pull-request-size bot added size/S and removed size/XS labels Jan 9, 2024
@1000TurquoisePogs 1000TurquoisePogs merged commit 565283d into v2.x/staging Jan 9, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants