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

Cluster name written to kubectl config.yaml is specific to kconnect and will potentially break other integrations #497

Open
cduggn opened this issue May 10, 2023 · 0 comments
Labels
kind/bug Something isn't working

Comments

@cduggn
Copy link

cduggn commented May 10, 2023

What happened:
When kconnect creates a new cluster connection it writes a new context configuration in kubectl's config.yaml. The cluster name written as part of this configuration includes the target platform as a prefix (for example eks- ). The resulting context can cause confusion and at worst compatibility issues with other tools that rely on configuration file.

This behavior has other unexpected side effects. When issuing the command kubectl config current-context it is expected that the cluster name is returned . What actually gets returned is the kconnect decorated cluster name with prefix.

Possible work arounds

  • Use the context name to hold the platform specific name
  • Create a dedicated kubeconfig configuration for kconnect to isolate the configuration for Kconnect from other kubernetes configuration on the system.
@cduggn cduggn added the kind/bug Something isn't working label May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant