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

Make Client configurable #540

Merged
merged 36 commits into from Jun 5, 2021
Merged

Make Client configurable #540

merged 36 commits into from Jun 5, 2021

Commits on Jun 3, 2021

  1. Expose methods to configure TLS connection

    - Add `Config::native_tls_connector` and `Config::rustls_client_config`
    - Remove the requirement of having `native-tls` or `rustls-tls` enabled when
      `client` is enabled. Allow one, both or none.
      - When both, the default Service will use `native-tls` because of kube-rs#153.
        `rustls` can be still used with a custom client.
        Users will have an option to configure TLS at runtime.
      - When none, HTTP connector is used.
    - Note that `oauth` feature still requires tls feature.
    - Remove tls features from kube-runtime
    kazk committed Jun 3, 2021
    Copy the full SHA
    37ad7f0 View commit details
    Browse the repository at this point in the history
  2. Depend on rustls directly instead of tokio-rustls

    Still a dependency of hyper-rustls, but we're not using tokio-rustls.
    Depend on rustls directly instead.
    kazk committed Jun 3, 2021
    Copy the full SHA
    196503f View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    741df23 View commit details
    Browse the repository at this point in the history
  4. Add custom client example

    kazk committed Jun 3, 2021
    Copy the full SHA
    d436112 View commit details
    Browse the repository at this point in the history
  5. Remove client from native-tls and rust-tls

    `config` + `native-tls`/`rustls-tls` can be used independently. For
    example, to create a simple HTTP client.
    kazk committed Jun 3, 2021
    Copy the full SHA
    a0efcfa View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    cb081ae View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    93e6c65 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    7eb8697 View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    50634fd View commit details
    Browse the repository at this point in the history
  10. Relax Service's response body type

    Allow using more from the Tower ecosystem.
    kazk committed Jun 3, 2021
    Copy the full SHA
    0d9e8d0 View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    6649d97 View commit details
    Browse the repository at this point in the history
  12. Replace LogRequest layer with TraceLayer

    Keeping this simple for now by default, but it's fully customizable.
    kazk committed Jun 3, 2021
    Copy the full SHA
    992231d View commit details
    Browse the repository at this point in the history
  13. Split custom client examples

    kazk committed Jun 3, 2021
    Copy the full SHA
    977ba63 View commit details
    Browse the repository at this point in the history
  14. Switch to custom tracing with callbacks

    `kube=debug` can be used as before.
    kazk committed Jun 3, 2021
    Copy the full SHA
    36d39fd View commit details
    Browse the repository at this point in the history
  15. Improve default tracing

    - Fix `http.url`
    - Remove unnecessary duration logs
    - Add `otel.kind` and `otel.status_code`
    kazk committed Jun 3, 2021
    Copy the full SHA
    ef0eae0 View commit details
    Browse the repository at this point in the history
  16. Simplify custom client examples

    kazk committed Jun 3, 2021
    Copy the full SHA
    a3a1dc7 View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    7e0c49b View commit details
    Browse the repository at this point in the history
  18. Clean up body transformer

    kazk committed Jun 3, 2021
    Copy the full SHA
    891cef1 View commit details
    Browse the repository at this point in the history
  19. Copy the full SHA
    055eceb View commit details
    Browse the repository at this point in the history
  20. Refactor auth with layers

    kazk committed Jun 3, 2021
    Copy the full SHA
    25ddfe0 View commit details
    Browse the repository at this point in the history
  21. Copy the full SHA
    a5bb2bc View commit details
    Browse the repository at this point in the history
  22. Move layers under client

    kazk committed Jun 3, 2021
    Copy the full SHA
    b8ba3bc View commit details
    Browse the repository at this point in the history
  23. Copy the full SHA
    5e7fc1c View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2021

  1. Copy the full SHA
    8536b2a View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    583cdbb View commit details
    Browse the repository at this point in the history
  3. Rename Authentication to Auth

    kazk committed Jun 4, 2021
    Copy the full SHA
    54baa61 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2021

  1. Add client::ConfigExt to extend Config for Client

    - Move TLS methods to `ConfigExt`
    - Prepare to move `Auth` method to `ConfigExt`
      - `.option_layer(config.auth_layer()?)`
    kazk committed Jun 5, 2021
    Copy the full SHA
    0514408 View commit details
    Browse the repository at this point in the history
  2. Add ConfigExt::base_uri_layer

    kazk committed Jun 5, 2021
    Copy the full SHA
    b6f939d View commit details
    Browse the repository at this point in the history
  3. Rename to RefreshTokenLayer

    kazk committed Jun 5, 2021
    Copy the full SHA
    2258750 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    0f0994e View commit details
    Browse the repository at this point in the history
  5. Remove headers from Config

    kazk committed Jun 5, 2021
    Copy the full SHA
    1b08927 View commit details
    Browse the repository at this point in the history
  6. Support loading proxy URL

    kazk committed Jun 5, 2021
    Copy the full SHA
    f009ff6 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    79096a9 View commit details
    Browse the repository at this point in the history
  8. Document custom client

    kazk committed Jun 5, 2021
    Copy the full SHA
    1153536 View commit details
    Browse the repository at this point in the history
  9. Add missing feature tags

    kazk committed Jun 5, 2021
    Copy the full SHA
    8c540c0 View commit details
    Browse the repository at this point in the history
  10. Rename to BaseUriLayer

    kazk committed Jun 5, 2021
    Copy the full SHA
    38782b5 View commit details
    Browse the repository at this point in the history