Not found error appears when querying CR on the CRD page
Created by: smallersoup
Describe the bug
Not found error appears when querying CR on the CRD page
Versions used(KubeSphere/Kubernetes) KubeSphere: v3.0.0 Kubernetes: v1.18.14
Environment 3 masters, also as nodes: 88cpu/1T
To Reproduce
- Save this yaml content to file kibana-crd.yaml, then kubectl apply -f kibana-crd.yaml:
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.0
creationTimestamp: null
name: kibanas.kibana.k8s.elastic.co
spec:
additionalPrinterColumns:
- JSONPath: .status.health
name: health
type: string
- JSONPath: .status.availableNodes
description: Available nodes
name: nodes
type: integer
- JSONPath: .status.version
description: Kibana version
name: version
type: string
- JSONPath: .metadata.creationTimestamp
name: age
type: date
group: kibana.k8s.elastic.co
names:
categories:
- elastic
kind: Kibana
listKind: KibanaList
plural: kibanas
shortNames:
- kb
singular: kibana
scope: Namespaced
subresources:
status: {}
version: v1
versions:
- name: v1
served: true
storage: true
- name: v1beta1
served: true
storage: false
- name: v1alpha1
served: false
storage: false
- http://localhost:8000/clusters/host/customresources/kibanas.kibana.k8s.elastic.co/resources
- click Kibana to query kibana CR
- See error
Expected behavior
Query three kibana CR is expected, like kubectl query result:
# kubectl get kibanas.kibana.k8s.elastic.co -A
NAMESPACE NAME HEALTH NODES VERSION AGE
arch-xadd kb-pubsub green 1 7.10.0 81d
arch-xadd kb-xadd-a green 1 7.10.0 133d
cdc kb-cdc-a green 1 7.10.1 11d