Skip to content

RoundTripper should not add the /clusters/ segment if already present #44

@itdove

Description

@itdove

When dealing with multiple types of clients (controller-runtime, dynamic...) and also with the NewClusterAwareManager, it is easy to make the mistake to call the NewClusterConfig on the config used by the NewClusterAwareManaager.

The result is that the Roundtripper is registered twice and as being called twice the url contains the cluster workspace twice.

Logic must be added in the Roundtripper to avoid to add again the /clusters/ segment if already present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions