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

Create liveliness endpoint #1506

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

Create liveliness endpoint #1506

wants to merge 37 commits into from

Commits on May 10, 2023

  1. APPAUTOSCALER-544 : Adapt creation of health-service

    Now a unprotected route /health/liveliness is introduced.
    joergdw authored and asalan316 committed May 10, 2023
    Configuration menu
    Copy the full SHA
    75532c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    00a13e4 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2023

  1. APPAUTOSCALER-544 : Declare constants for paths;

    Add delve for debugging purposes;
    
    APPAUTOSCALER-544 : Fix prometheus-tests;
    
    APPAUTOSCALER-544 : Fix prometheus routes;
    
    APPAUTOSCALER-544 : Fix data-races in prometheus tests
    
    APPAUTOSCALER-544 : WIP: Get root/default-endpoint working (including basic-auth);
    joergdw authored and asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    e444bbc View commit details
    Browse the repository at this point in the history
  2. poc- implement liveness endpoint

    test for / without basic auth configured > returns 401
    
    Revert "test for / without basic auth configured > returns 401"
    
    This reverts commit 45637be.
    
    Revert "poc- implement liveness endpoint"
    
    This reverts commit e41e2bb.
    
    Progress in tests;
    
    added and fix some tests
    
    Fix healthtests and /debug-endpoint;
    asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    89c1d27 View commit details
    Browse the repository at this point in the history
  3. Rename health-endpoint and variables;

    Fix api-test-suite;
    joergdw authored and asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    b6a4f66 View commit details
    Browse the repository at this point in the history
  4. Fix eventgenerator-tests;

    clean up
    
    WIP: Fix integration tests
    
    Fix test-suite metricsforwarder; integration still in progress as well;
    joergdw authored and asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    92d47e1 View commit details
    Browse the repository at this point in the history
  5. Fix metricsgateway-test-suite

    Make golangcli-lint happy
    
    WIP: Fix metricsserver-test-suite;
    
    metricsserver -> fix test
    
    operator -> fix test
    
    Fix scalingengine-test-suite
    
    Make golangcli-lint happy;
    joergdw authored and asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    d4cf916 View commit details
    Browse the repository at this point in the history
  6. Sonarcloud should avoid test-files;

    Add comment for importance of the line;
    joergdw authored and asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    09d6dc5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d52d757 View commit details
    Browse the repository at this point in the history
  8. Fix health-config-validation

    Adapt endpoint
    joergdw authored and asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    55ac5e7 View commit details
    Browse the repository at this point in the history
  9. Fix config for acceptance-tests

    The configuration before assumed basic auth to be disabled by default, which is wrong after
    the changes in this PR.
    
    Add some observations;
    
    Fix bug in configuration validation;
    
    Add important TODO;
    
    Fix bug and improve error-message;
    joergdw authored and asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    6341057 View commit details
    Browse the repository at this point in the history
  10. Fix health-root-path in test configurations;

    Fix some health-configs in the tests
    
    Make golangcli-lint happy
    
    Update ruby and nix-flake;
    joergdw authored and asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    fa43fcf View commit details
    Browse the repository at this point in the history
  11. Fix test-configuration for apiserver

    Fix test;
    joergdw authored and asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    fdb2517 View commit details
    Browse the repository at this point in the history
  12. Remove wrong health-endpoint from api-server.

    Changes to get 'make test' running
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    commenting out 3 of 4/5 Collect statements for debugging
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    commenting out 4 of 4/5 Collect statements for debugging
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    adding print statements and commenting out 3 of 4/5 Collect statements for debugging
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    adding more print statements
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    adding more print statements
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    adding more print statements
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    adding more print statements
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    adding more debug print statements
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    Revert "adding more debug print statements"
    
    This reverts commit eefc74f.
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    Revert "adding more print statements"
    
    This reverts commit 958fd00.
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    Revert "adding more print statements"
    
    This reverts commit 0b2d81b.
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    Revert "adding more print statements"
    
    This reverts commit a25e782.
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    Revert "adding more print statements"
    
    This reverts commit d433ce5.
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    
    Adding print statements of status collect middleware to stderr
    
    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    2 people authored and asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    8e78959 View commit details
    Browse the repository at this point in the history
  13. refactoring of API Routes

    Co-authored-by: Susanne Salzmann <susanne.salzmann@sap.com>
    salzmannsusan authored and asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    88c62c0 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b4ab911 View commit details
    Browse the repository at this point in the history
  15. golangAPIServer => add Bosh template test

    Update spec/jobs/golangapiserver/apiserver_spec.rb
    
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    
    revert refactoring
    
    debug-> remove rate limiter atm to identify policy enpoints
    
    Revert "debug-> remove rate limiter atm to identify policy enpoints"
    
    This reverts commit f5e5c57.
    
    add test to verify health configurations
    
    enable default /actuator/health &a /actuator/promethus
    
    use standalone prometheus server for health endpoints
    
    Revert "enable default /actuator/health &a /actuator/promethus"
    
    This reverts commit 86e5523.
    asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    ca1f623 View commit details
    Browse the repository at this point in the history
  16. scheduler->start a embedded tomcat health server (instead of from pro…

    …metheus lib)
    
    wip:spring security
    
    wip: block health route to main server (port 8080) via spring security
    
    wip: Block health routes to main server (port 8080) using Request Filter
    
    wip: add basic auth for protected resource using servlet filter
    
    test health server configuration
    
    Adding MultiPortFilter tests
    
    finish MultiPortFilter tests
    asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    3e35094 View commit details
    Browse the repository at this point in the history
  17. scheduler-> MultiPortFilter to differntiate health and main requests

    refactor: Basic and Port Filters
    
    fix java formatting issues
    OliverMautschke authored and asalan316 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    16becb0 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    d3892e6 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    f9f2b22 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    2e0fa57 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    a7ba83b View commit details
    Browse the repository at this point in the history

Commits on May 12, 2023

  1. Configuration menu
    Copy the full SHA
    d246a4d View commit details
    Browse the repository at this point in the history

Commits on May 22, 2023

  1. Configuration menu
    Copy the full SHA
    b6818eb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d3a5531 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2023

  1. Configuration menu
    Copy the full SHA
    dc2876b View commit details
    Browse the repository at this point in the history

Commits on May 24, 2023

  1. Review -> Scheduler -> validate health port

    start health server on defined ports (Port 0 is not allowed)
    asalan316 committed May 24, 2023
    Configuration menu
    Copy the full SHA
    f09bc70 View commit details
    Browse the repository at this point in the history
  2. liveness information should also be available at /health (besides /he…

    …alth/liveness)
    
    to avoid breaking changes
    asalan316 committed May 24, 2023
    Configuration menu
    Copy the full SHA
    f853498 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2023

  1. Update src/scheduler/src/main/java/org/cloudfoundry/autoscaler/schedu…

    …ler/rest/BasicAuthenticationFilter.java
    
    Co-authored-by: joergdw <joerg.weisbarth@sap.com>
    asalan316 and joergdw authored May 25, 2023
    Configuration menu
    Copy the full SHA
    9688bf5 View commit details
    Browse the repository at this point in the history
  2. Update src/scheduler/src/main/java/org/cloudfoundry/autoscaler/schedu…

    …ler/conf/HealthServerConfiguration.java
    
    Co-authored-by: joergdw <joerg.weisbarth@sap.com>
    asalan316 and joergdw authored May 25, 2023
    Configuration menu
    Copy the full SHA
    1906dd9 View commit details
    Browse the repository at this point in the history
  3. Update src/scheduler/src/main/java/org/cloudfoundry/autoscaler/schedu…

    …ler/conf/HealthServerConfiguration.java
    
    Co-authored-by: joergdw <joerg.weisbarth@sap.com>
    asalan316 and joergdw authored May 25, 2023
    Configuration menu
    Copy the full SHA
    6c3ffef View commit details
    Browse the repository at this point in the history

Commits on May 26, 2023

  1. Configuration menu
    Copy the full SHA
    4abcaad View commit details
    Browse the repository at this point in the history

Commits on May 30, 2023

  1. Configuration menu
    Copy the full SHA
    87416bc View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. Configuration menu
    Copy the full SHA
    145d426 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Configuration menu
    Copy the full SHA
    3aeb2ae View commit details
    Browse the repository at this point in the history
  2. add missing java files

    asalan316 committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    0a8b9db View commit details
    Browse the repository at this point in the history