Skip to content

Mission Control trailing backslash fails silently #866

Description

@salomj

Bug description
When setting up a Mission Control context, if your endpoint contains a trailing backslash such as http://someurl/ instead of http://someurl, the context will be successfully, but you will get odd errors much further in the setup process, after trying to connect via kubectl. Such as yaml: line 3: mapping values are not allowed in this context.

Expected behavior
Either prevent this context from being created or output an explicit in red error message when it is created.

Steps to reproduce the bug / Relevant debug output

Output of tanzu version
version: v1.5.3
buildDate: 2025-01-29
sha: f73b9ec
arch: arm64

Environment where the bug was observed (cloud, OS, etc)
Both bash and zsh on MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions