Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

[elasticsearch] do not regenerate certs when they already exists #1691

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

jmlrt
Copy link
Member

@jmlrt jmlrt commented Sep 7, 2022

This commit update the way we generate the Elasticsearch certs to lookup
if the certs secret already exists and reuse the secrets instead of regenerate
the certs.

This fix the issue when upgrading from a previous version of the chart
that doesn't include the certs secret by ensuring that the certs secret
is created if it doesn't exists.

This method also add more flexibility than charts hooks by ensuring that
the certs won't be rotated each time we upgrade the chart.

Found in https://stackoverflow.com/a/61715870

This commit update the way we generate the Elasticsearch certs to lookup
if the certs secret already exists and reuse the secrets instead of regenerate
the certs.

This fix the issue when upgrading from a previous version of the chart
that doesn't include the certs secret by ensuring that the certs secret
is created if it doesn't exists.

This method also add more flexibility than charts hooks by ensuring that
the certs won't be rotated each time we upgrade the chart.

Found in https://stackoverflow.com/a/61715870
@jmlrt jmlrt requested review from framsouza and a team September 7, 2022 17:34
@jmlrt
Copy link
Member Author

jmlrt commented Sep 7, 2022

cc @framsouza for review as this is impacting your changes from #1519. Not sure if there is another way to handle it.

@jmlrt jmlrt merged commit 909a68c into elastic:main Sep 8, 2022
@jmlrt jmlrt deleted the fix-es-master branch September 8, 2022 14:44
@jmlrt jmlrt added the v8.5.1 label Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants