-
Notifications
You must be signed in to change notification settings - Fork 296
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
Allow more than one kubeconfig file, including generated from provisioners #3385
Comments
Example of commit b54bb4b --- a/packages/extension-api/src/extension-api.d.ts
+++ b/packages/extension-api/src/extension-api.d.ts
@@ -223,6 +223,7 @@ declare module '@podman-desktop/api' {
}
export interface KubernetesProviderConnection {
name: string;
+ kubeConfig?: string;
endpoint: KubernetesProviderConnectionEndpoint;
lifecycle?: ProviderConnectionLifecycle;
status(): ProviderConnectionStatus; It contains the path of the file, to be appended to KUBECONFIG. |
your suggestion in API looks like a good move. |
A missing value (null), means that the context is only in the default (~/.kube/config) and that no config is needed... A string value, means that the path of the file is merged with the existing $KUBECONFIG using the path separator. https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/#append-home-kube-config-to-your-kubeconfig-environment-variable
It is similar to modifying the PATH variable, instead of having to copy files to the global (or user) default paths ? |
It seems that the javascript library does not fully handle kubeconfig configuration files yet, unfortunately: https://github.com/kubernetes-client/javascript#known-issues The current user names for the local clusters are quite random, but they don't seem to be colliding:
|
This issue has been automatically marked as stale because it has not had activity in the last 6 months. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions! |
This issue has been automatically closed because it has not had any further activity in the last 30 days. Thank you for your contributions! |
Is your enhancement related to a problem? Please describe
Currently the interface is hardcoded to a single KUBECONFIG, defaulting to ~/.kube/config
But it is possible to have more than one, that will be merged before presenting contexts...
Describe the solution you'd like
The "kind" and "minikube" clusters are editing the user config, while k3s and k8s do not.
So for those clusters, running in Lima, they generate a file that can be passed like a socket.
Describe alternatives you've considered
The workaround is to copy and paste the path location, which "hides" the other contexts
So while overriding the kubeconfig, it is not possible to use any other cluster in the config
Additional context
https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/
The text was updated successfully, but these errors were encountered: