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

KUBECONFIG with several config files : separated is not supported #884

Closed
zeph opened this issue Dec 1, 2023 · 1 comment · May be fixed by #909
Closed

KUBECONFIG with several config files : separated is not supported #884

zeph opened this issue Dec 1, 2023 · 1 comment · May be fixed by #909

Comments

@zeph
Copy link

zeph commented Dec 1, 2023

kubectl directpv install
F1201 14:22:00.391814    5754 init.go:43] unable to get kubernetes configuration; unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined
% export KUBECONFIG=/Users/gms/.kube/mbbf-minio.yaml
gms@fluffy ~ % kubectl directpv install                          

 ███████████████████████████████████████████████████████████████████████████ 100%

┌──────────────────────────────────────┬──────────────────────────┐
│ NAME                                 │ KIND                     │
├──────────────────────────────────────┼──────────────────────────┤
│ directpv                             │ Namespace                │
│ directpv-min-io                      │ ServiceAccount           │
│ directpv-min-io                      │ ClusterRole              │
│ directpv-min-io                      │ ClusterRoleBinding       │
│ directpv-min-io                      │ Role                     │
│ directpv-min-io                      │ RoleBinding              │
│ directpv-min-io                      │ PodSecurityPolicy        │
│ psp-directpv-min-io                  │ ClusterRoleBinding       │
│ directpvdrives.directpv.min.io       │ CustomResourceDefinition │
│ directpvvolumes.directpv.min.io      │ CustomResourceDefinition │
│ directpvnodes.directpv.min.io        │ CustomResourceDefinition │
│ directpvinitrequests.directpv.min.io │ CustomResourceDefinition │
│ directpv-min-io                      │ CSIDriver                │
│ directpv-min-io                      │ StorageClass             │
│ node-server                          │ Daemonset                │
│ controller                           │ Deployment               │
└──────────────────────────────────────┴──────────────────────────┘

DirectPV installed successfully
kubectl directpv --version
directpv version v4.0.6
@balamurugana
Copy link
Member

If clientcmd doesn't support, we have no control on that.

bewing added a commit to bewing/directpv that referenced this issue May 13, 2024
Use the same flagset that kubectl uses to select context and namespace,
and generate the clientset from that.

Fixes minio#884
bewing added a commit to bewing/directpv that referenced this issue May 14, 2024
Use the same flagset that kubectl uses to select context and namespace,
and generate the clientset from that.

Fixes minio#884
bewing added a commit to bewing/directpv that referenced this issue May 14, 2024
Use the same flagset that kubectl uses to select context and namespace,
and generate the clientset from that.

Fixes minio#884
bewing added a commit to bewing/directpv that referenced this issue May 14, 2024
Use the same flagset that kubectl uses to select context and namespace,
and generate the clientset from that.

Fixes minio#884
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants