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

Only show deprecation warnings for CN-based verification once #24948

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

andrewstucki
Copy link
Contributor

What does this PR do?

I haven't tracked down all of the code paths that call Validate, but customers are complaining about how much noise this deprecation warning is adding to their logs. I think it makes sense just to warn once, so it should be enough just to wrap this in a global sync.Once.

Checklist

  • My code follows the style guidelines of this project
    - [ ] I have commented my code, particularly in hard-to-understand areas
    - [ ] I have made corresponding changes to the documentation
    - [ ] I have made corresponding change to the default configuration files
    - [ ] I have added tests that prove my fix is effective or that my feature works
    - [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

@andrewstucki andrewstucki requested a review from kvch April 6, 2021 14:54
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Apr 6, 2021
@botelastic
Copy link

botelastic bot commented Apr 6, 2021

This pull request doesn't have a Team:<team> label.

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #24948 opened

  • Start Time: 2021-04-06T14:55:41.468+0000

  • Duration: 99 min 58 sec

  • Commit: 0b59f11

Test stats 🧪

Test Results
Failed 0
Passed 46548
Skipped 5132
Total 51680

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 46548
Skipped 5132
Total 51680

@kvch kvch added the needs_backport PR is waiting to be backported to other branches. label Apr 7, 2021
@andrewstucki andrewstucki merged commit 3b99e42 into elastic:master Apr 7, 2021
@andrewstucki andrewstucki added v7.13.0 and removed needs_backport PR is waiting to be backported to other branches. labels Apr 7, 2021
andrewstucki pushed a commit to andrewstucki/beats that referenced this pull request Apr 7, 2021
v1v added a commit to v1v/beats that referenced this pull request Apr 7, 2021
…eline

* upstream/master:
  CI: curl seems to be available but where cannot find it (elastic#24965)
  [mergify] backport automation to 7.x, 7.12 and 7.11 (elastic#24608)
  Only show deprecation warnings for CN-based verification once (elastic#24948)
  CI: use ubuntu-20 (elastic#24963)
  Debug empty root field instead of error (elastic#24966)
  Kubernetes_secrets provider improvements (elastic#24912)
andrewstucki pushed a commit that referenced this pull request Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement needs_team Indicates that the issue/PR needs a Team:* label v7.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants