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

Tenants created with kubectl apply -f don't get found by kubectl minio plugin #619

Closed
arianvp opened this issue May 3, 2021 · 1 comment

Comments

@arianvp
Copy link

arianvp commented May 3, 2021

Expected Behavior

I created a tenant using kubectl apply -f and it shows up with kubectl get tenant minio

$ kubectl get tenant minio
NAME    STATE         AGE
minio   Initialized   6d14h

and it should be picked up by kubectl minio tenant info minio as well:

$ kubectl minio tenant info minio

Current Behavior

The minio plugin can't find the tenant:

$ kubectl minio tenant info minio
Error: tenants.minio.min.io "minio" not found

Possible Solution

Steps to Reproduce (for bugs)

# tenant.yaml
apiVersion: minio.min.io/v2
kind: Tenant
metadata:
  name: minio
spec:
  credsSecret:
    name: minio-creds-secret
  console:
    consoleSecret:
      name: console-secret
  pools:
    - servers: 4
      volumesPerServer: 1
      nodeSelector:
        node.kubernetes.io/instance-type: i3.large
      volumeClaimTemplate:
        metadata:
          name: storage
        spec:
          accessModes:
            - ReadWriteOnce
          storageClassName: openebs-device
          resources:
            requests:
              storage: 400Gi
$ kubectl apply -f tenant.yaml
$ kubectl get tenant minio
NAME    STATE         AGE
minio   Initialized   6d14h
$  kubectl minio tenant info minio
Error: tenants.minio.min.io "minio" not found

Context

Regression

No

Your Environment

  • Version used (minio-operator): 4.0.8
  • Environment name and version (e.g. kubernetes v1.17.2): Kubernetes 1.19.8
  • Server type and version:
  • Operating System and version (uname -a): Linux t490s 5.4.112 Add Minio operator  #1-NixOS SMP Wed Apr 14 06:24:19 UTC 2021 x86_64 GNU/Linux
  • Link to your deployment file:
@arianvp
Copy link
Author

arianvp commented May 3, 2021

I found the issue. It only detects them when they're stored in minio-operator namespace

@arianvp arianvp closed this as completed May 3, 2021
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

No branches or pull requests

1 participant