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

Inherit all environment variables from ES container in initContainers #5962

Merged
merged 5 commits into from
Aug 23, 2022

Conversation

pebrc
Copy link
Collaborator

@pebrc pebrc commented Aug 19, 2022

Fixes #5577

@botelastic botelastic bot added the triage label Aug 19, 2022
@pebrc pebrc added v2.5.0 >enhancement Enhancement of existing functionality labels Aug 19, 2022
@botelastic botelastic bot removed the triage label Aug 19, 2022
Copy link
Contributor

@barkbay barkbay left a comment

Choose a reason for hiding this comment

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

I'm not sure if we should check for the returned value of MainContainer, which maybe nil but LGTM overall.

I think we should also update our documentation here and here to mention this improvement. We can also add the (expected) release version to our documentation, in order to mention that this PR will trigger a rolling restart of the managed Elasticsearch clusters. This will be the case even if user is not using secure settings or advanced topologies. elastic-internal-init-filesystem, I think, will not take advantage of this PR, but I guess it will be the case for elastic-internal-suspend, so I guess we cannot exclude this last one.

pkg/controller/common/defaults/pod_template.go Outdated Show resolved Hide resolved
@pebrc pebrc merged commit 5e84137 into elastic:main Aug 23, 2022
fantapsody pushed a commit to fantapsody/cloud-on-k8s that referenced this pull request Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement Enhancement of existing functionality v2.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keystore init-container should inherit Elasticsearch environment variables
2 participants