Closed ol88 closed 2 years ago
After posting this issue it just started working again with both path set in the env variable. Yet I was successfully able to reproduce this bug multiple times before.
I suggest someone tries to reproduce, if it cannot be reproduced in another environment this could be closed.
Nope it's back to not working.
- Version used (
minio-operator
): v4.1.3
Please upgrade to kubectl-minio v4.2.8 and let us know if it works.
Sorry for the late reply, just got around to try with the most recent version.
Error: Unauthorized
for either kubectl minio tenant
or kubectl minio proxy
.So unfortunately, recent updates since 4.1.3 have not addressed this problem.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.
I have two Kubernetes cluster with 2 separate kubeconfig files, my KUBECONFIG environment variable is set and contains the path to both kubeconfig files:
The
current-context
is set to the correct cluster where minio is successfully deployed viakubectl minio init
Note: I never have both clusters running at the same time which is why they share the same url in the config. Both are test clusters running on the same hardware.
All
kubectl
generic commands including minio plugin commandskubectl minio init
andkubectl minio delete
work perfectly. However, none ofkubectl minio tenant
orkubectl minio proxy
commands work, they all result in:using the --kubeconfig flag also does not work:
The only way to make it work is to change the KUBECONFIG environment variable to a single kubeconfig file path.
Expected Behavior
kubectl minio tenant
andkubectl proxy
should succeed when multiple config path are specified in KUBECONFIG environment variable as long as the kubectlcurrent-context
is correctly set.Current Behavior
kubectl minio tenant
andkubectl minio proxy
both fail with errorError: Unauthorized
when multiple config path are specified in KUBECONFIG environment variable and the kubectlcurrent-context
is correctly set.Possible Solution
Not familiar enough with the code sorry.
Steps to Reproduce (for bugs)
kubectl minio init
kubectl minio proxy -n minio-operator
Error: Unauthorized
...Context
See above
Regression
Unknown
Your Environment
minio-operator
): v4.1.3uname -a
): Ubuntu 18.04.4 LTS