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

Remove dependency of etcd from tctl #29377

Merged
merged 1 commit into from
Jul 20, 2023

Commits on Jul 20, 2023

  1. Remove dependency of etcd from tctl

    The following import tree resulted in tctl importing etcd:
    
    | github.com/gravitational/teleport/tool/tctl
    |--> github.com/gravitational/teleport/tool/tctl/common
    |---> github.com/gravitational/teleport/lib/auth
    |----> github.com/gravitational/teleport/lib/auth/okta
    |-----> github.com/gravitational/teleport/lib/services/local
    |-------> github.com/gravitational/teleport/lib/backend/etcdbk
    |--------> go.etcd.io/etcd/client/v3
    
    This stems from the assistant service which checks if the backend
    is etcd by using type assertion. A new GetName method is added
    to backend.Backend so that the storage mechanism can be determined
    via string comparison instead of importing backend implementations
    to do type assertion.
    rosstimothy committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    685c28e View commit details
    Browse the repository at this point in the history