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

Do not reset trial state once a license has been issued. #3662

Merged
merged 2 commits into from
Aug 26, 2020

Conversation

pebrc
Copy link
Collaborator

@pebrc pebrc commented Aug 25, 2020

Fixes #3659

Addresses an issue observed when the trial status secret would not be found due to an outdated client cache and the trial controller would re-initialise the trial state from scratch invalidating an already issued license.

This PR checks therefore for trialState.IsEmpty instead of trialState.IsTrialStarted.

Addresses an issue observed when the trial status secret would not be found due to an outdated client cache and the trial controller would reinitialise the trial state from scratch invalidating an already issued license.
@pebrc pebrc added >bug Something isn't working v1.3.0 labels Aug 25, 2020
@pebrc pebrc requested a review from sebgl August 25, 2020 10:53
Copy link
Contributor

@sebgl sebgl left a comment

Choose a reason for hiding this comment

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

LGTM, I left one comment worth addressing imo

Copy link
Contributor

@sebgl sebgl left a comment

Choose a reason for hiding this comment

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

LGTM

@pebrc pebrc merged commit ef54106 into elastic:master Aug 26, 2020
barkbay pushed a commit to barkbay/cloud-on-k8s that referenced this pull request Sep 2, 2020
Addresses an issue observed when the trial status secret would not be found due to an outdated client cache and the trial controller would re-initialise the trial state from scratch invalidating an already issued license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working v1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestEnterpriseTrialLicense failing
2 participants