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

feat(diagnostics) add diff endpoints #6131

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

feat(diagnostics) add diff endpoints #6131

wants to merge 13 commits into from

Commits on Aug 2, 2024

  1. Configuration menu
    Copy the full SHA
    a01e082 View commit details
    Browse the repository at this point in the history
  2. chore: rename ConfigDump to ClientDiagnostic

    Rename the diagnostics.ConfigDump struct to ClientDiagnostic to reflect
    that it now handles multiple types of diagnostic data (config dumps,
    config diffs, and fallback status) from the Kong client.
    rainest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    03725c8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a8c1b9f View commit details
    Browse the repository at this point in the history
  4. feat: add diff collector and send to it

    Add a struct to hold diff history in the diagnostic server. It holds a
    fixed number of diffs (5, arbitrarily) and provides functions to update
    and view history by config hash.
    
    Add a diagnostics function to generate diagnostic diff structs from GDR
    event data.
    
    Add a diagnostics update loop case to handle inbound diffs.
    
    Call the diagnostic diff generator when processing an event and append
    the diagnostic diff to the diff list to the DB mode event handler.
    rainest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    6e21b76 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    948eaa8 View commit details
    Browse the repository at this point in the history
  6. feat: add diff endpoint

    rainest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    0230c3f View commit details
    Browse the repository at this point in the history
  7. chore: update GDR to v1.14.3

    rainest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    44cab87 View commit details
    Browse the repository at this point in the history
  8. chore: dump sensitive config during integration

    Dump sensitive config during integration, mostly to support debugging
    the diff endpoint. While there's no diff diagnostic integration test,
    having it available allows for easier interactive debugging of the
    endpoint, or viewing diff states when running DB-backed tests.
    rainest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    7447130 View commit details
    Browse the repository at this point in the history
  9. feat: wrap up diff endpoint

    Add timestamps and a list of available diffs to the diff endpoint.
    
    Add unit tests for the diff endpoint.
    rainest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    1ae9e30 View commit details
    Browse the repository at this point in the history
  10. chore: clean up comments and lints

    Remove scaffolding comments and unfinished wishlist items. Add missing
    doc comments.
    
    Clean up some garbage the linter caught.
    rainest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    342ce1a View commit details
    Browse the repository at this point in the history
  11. chore: add missing JSON key

    rainest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    a57d877 View commit details
    Browse the repository at this point in the history
  12. chore: add changelog entry

    rainest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    77069ae View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    29c5926 View commit details
    Browse the repository at this point in the history