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] Support endpoint slices #1608

Closed

Commits on Jul 29, 2021

  1. feat: add --use-endpoint-slices option to root cli command

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    791fbe9 View commit details
    Browse the repository at this point in the history
  2. chore: fix typo in comment

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    e6742fa View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2021

  1. feat: added functions for endpointslice and updated interfaces

    This is required when the CLI input is set to
    --use-endpoint-slices.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    3f7f5af View commit details
    Browse the repository at this point in the history
  2. feat: added check to ensure compatibility with k8s version

    This check ensures that the version of k8s is compatible when
    using the --use-endpoint-slices feature.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    504f09c View commit details
    Browse the repository at this point in the history
  3. feat: pass useEndpointSlices cli value

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    8dc375d View commit details
    Browse the repository at this point in the history
  4. feat: refactored parser function

    This refactor allows the parser to select between
    'legacy' endpoints and newer endpointslices and
    handles them appropriately.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    25e4fef View commit details
    Browse the repository at this point in the history
  5. feat: add unit tests for parser functions

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    768689a View commit details
    Browse the repository at this point in the history
  6. chore: slight refactor of parser methods

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    c4ad2d9 View commit details
    Browse the repository at this point in the history
  7. chore: clean up coverage (Kong#1611)

    This patch reduces the packages we want coverage
    for to pkg/ and internal/ (where all our code lives
    now minus scripts and some build tools) and turns
    on unit tests during the integration test runs to
    capture more coverage data.
    shaneutt authored Jul 30, 2021
    Configuration menu
    Copy the full SHA
    f56d00e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6042cfd View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f579349 View commit details
    Browse the repository at this point in the history
  10. Merge pull request Kong#1620 from Kong/stop-status-updates-on-404

    [fix] stop status updates on 404
    ccfish2 authored Jul 30, 2021
    Configuration menu
    Copy the full SHA
    e135f44 View commit details
    Browse the repository at this point in the history
  11. feat: added new unit test for checking k8s version

    This will ensure the validation of kubernetes version
    for using endpoint slices returns appropriately.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    55f02b6 View commit details
    Browse the repository at this point in the history
  12. chore: fixed linting

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    6b1e54b View commit details
    Browse the repository at this point in the history
  13. chore: refactor validation logic for k8s

    This moves the validation logic into its own function
    for code coverage.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    2c02657 View commit details
    Browse the repository at this point in the history
  14. feat: add integration test for using endpoint slices

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    591994b View commit details
    Browse the repository at this point in the history
  15. chore: seperate latest k8s release tests (Kong#1621)

    In another upcoming change we're switching testing
    of older kubernetes releases onto GKE (from KIND)
    so that they're running against conformant production
    quality cluster configurations. This patch moves
    the tests which must remain in kind (for now) into
    their own job as a blocker for releases.
    shaneutt authored Jul 30, 2021
    Configuration menu
    Copy the full SHA
    b4b8165 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    2164709 View commit details
    Browse the repository at this point in the history
  17. fix: bulk test now periodically cleans up

    This was needed to support running against standard
    GKE clusters which have a tiny default upper bound
    on the number of Ingress resources that can be present.
    
    For the same reason this patch also reduces the overall
    number of Ingresses tested.
    shaneutt committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    6b4ba21 View commit details
    Browse the repository at this point in the history
  18. fix: ingress tests use their own namespaces

    This is a step in the direction of making the integration
    test suite capable of running in parallel.
    shaneutt committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    3a685e5 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    4cd0cfb View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    3dbf48c View commit details
    Browse the repository at this point in the history
  21. chore: update ktf to v0.3.3

    shaneutt committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    4499d2d View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    20faaad View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    8a71a3f View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    3b6a548 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    be502c5 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    af1b078 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2021

  1. feat: added additional pre-checks

    Pre-check script would pass and fail in the middle of the
    integration test due to missing helm and kubectl binaries.
    Added checkes for both and re-organized the print statement
    so that it does not run too far to the right in the
    user terminal.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    55bf923 View commit details
    Browse the repository at this point in the history
  2. feat: added endpoint slice to controller

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    eeb938c View commit details
    Browse the repository at this point in the history
  3. feat: added endpoint slices to integration tests

    Rather than create an entirely separate test for endpoint
    slices, piggyback on the 2 integration test for PG vs
    dbless and use endpoint slices for dbless and endpoints
    for PG.  This keeps the codebase simpler while still
    providing code coverage for endpoints vs. endpoint slices.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    9eeda33 View commit details
    Browse the repository at this point in the history
  4. bug: refactor kubernetes version check logic

    Previous assumption about the version API was incorrect.
    Had to create a new clientset to consume the server version
    to ensure that a consumer is not trying to use endpoint
    slices against an invalid version.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    431241e View commit details
    Browse the repository at this point in the history
  5. chore: refactor methods for endpoint slices

    This fixes a missing logic assumption that did not
    understand that an EndpointSlice object did not match
    the exact name of a Service resource like Endpoints do.
    Rather, we look at the labels of the EndpointSlice resource
    to match the name to ensure that it belongs to the service.
    Additionally, added some missing methods that were left out
    of prior commits.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    b8dbe66 View commit details
    Browse the repository at this point in the history
  6. feat: added fake objects and testing for endpoint slices

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    ab0e2b7 View commit details
    Browse the repository at this point in the history
  7. feat: add --use-endpoint-slices option to root cli command

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    010a3c0 View commit details
    Browse the repository at this point in the history
  8. chore: fix typo in comment

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    623de02 View commit details
    Browse the repository at this point in the history
  9. feat: added functions for endpointslice and updated interfaces

    This is required when the CLI input is set to
    --use-endpoint-slices.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    2aa2c18 View commit details
    Browse the repository at this point in the history
  10. feat: added check to ensure compatibility with k8s version

    This check ensures that the version of k8s is compatible when
    using the --use-endpoint-slices feature.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    f246c4e View commit details
    Browse the repository at this point in the history
  11. feat: pass useEndpointSlices cli value

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    120b8dc View commit details
    Browse the repository at this point in the history
  12. feat: refactored parser function

    This refactor allows the parser to select between
    'legacy' endpoints and newer endpointslices and
    handles them appropriately.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    553946c View commit details
    Browse the repository at this point in the history
  13. feat: add unit tests for parser functions

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    49f8144 View commit details
    Browse the repository at this point in the history
  14. chore: slight refactor of parser methods

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    6e72f04 View commit details
    Browse the repository at this point in the history
  15. feat: added new unit test for checking k8s version

    This will ensure the validation of kubernetes version
    for using endpoint slices returns appropriately.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    b1da370 View commit details
    Browse the repository at this point in the history
  16. chore: fixed linting

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    7c78075 View commit details
    Browse the repository at this point in the history
  17. chore: refactor validation logic for k8s

    This moves the validation logic into its own function
    for code coverage.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    61615bd View commit details
    Browse the repository at this point in the history
  18. feat: add integration test for using endpoint slices

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    f6fde03 View commit details
    Browse the repository at this point in the history
  19. feat: added additional pre-checks

    Pre-check script would pass and fail in the middle of the
    integration test due to missing helm and kubectl binaries.
    Added checkes for both and re-organized the print statement
    so that it does not run too far to the right in the
    user terminal.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    c276d25 View commit details
    Browse the repository at this point in the history
  20. feat: added endpoint slice to controller

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    647df76 View commit details
    Browse the repository at this point in the history
  21. feat: added endpoint slices to integration tests

    Rather than create an entirely separate test for endpoint
    slices, piggyback on the 2 integration test for PG vs
    dbless and use endpoint slices for dbless and endpoints
    for PG.  This keeps the codebase simpler while still
    providing code coverage for endpoints vs. endpoint slices.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    2db42ae View commit details
    Browse the repository at this point in the history
  22. bug: refactor kubernetes version check logic

    Previous assumption about the version API was incorrect.
    Had to create a new clientset to consume the server version
    to ensure that a consumer is not trying to use endpoint
    slices against an invalid version.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    e69a569 View commit details
    Browse the repository at this point in the history
  23. chore: refactor methods for endpoint slices

    This fixes a missing logic assumption that did not
    understand that an EndpointSlice object did not match
    the exact name of a Service resource like Endpoints do.
    Rather, we look at the labels of the EndpointSlice resource
    to match the name to ensure that it belongs to the service.
    Additionally, added some missing methods that were left out
    of prior commits.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    3a982ae View commit details
    Browse the repository at this point in the history
  24. feat: added fake objects and testing for endpoint slices

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    1665a0e View commit details
    Browse the repository at this point in the history
  25. feat: start either endpoint or endpoint slice controller

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    7e8a899 View commit details
    Browse the repository at this point in the history
  26. chore: rebase

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    6089a90 View commit details
    Browse the repository at this point in the history
  27. chore: go mod tidy

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    092d019 View commit details
    Browse the repository at this point in the history
  28. chore: rebase

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    374f958 View commit details
    Browse the repository at this point in the history
  29. chore: refactor store and tests to support passing integration tests

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    034039c View commit details
    Browse the repository at this point in the history
  30. chore: refactor kubernetes validation logic

    Removed the hard-coded versioning logic and moved the
    logic into a constant.  Use a float rather than nested
    integer checks.
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    8524a33 View commit details
    Browse the repository at this point in the history
  31. chore: refactor parser to centralize logic for endoint address extrac…

    …tion
    
    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    bd8928f View commit details
    Browse the repository at this point in the history
  32. chore: fix linting

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    6bb9606 View commit details
    Browse the repository at this point in the history
  33. chore: updated change log with fix

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    d12e8b7 View commit details
    Browse the repository at this point in the history
  34. fix: fixed typo and duplicate controller definition

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    ce98883 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2021

  1. fix: remove hard-coded label lookup for endpoint slices

    Signed-off-by: Dustin Scott <sdustin@vmware.com>
    Dustin Scott committed Aug 1, 2021
    Configuration menu
    Copy the full SHA
    f0f6e56 View commit details
    Browse the repository at this point in the history