kubesphere / console

KubeSphere Console is the web-based UI for KubeSphere clusters.
https://kubesphere.io
Other
588 stars 453 forks source link

snapshot api version should be aligned to "apis/snapshot.storage.k8s.io/v1" #4274

Open youngman07 opened 6 months ago

youngman07 commented 6 months ago

General remarks

This form is to report bugs. For general usage questions refer to our Slack channel KubeSphere-users

Describe the bug

volume related api versions are different. Due to above reason that not able to display detail page as well as it appeared 404 error.

api version should be alinged to "apis/snapshot.storage.k8s.io/v1" which is latest one. "apis/snapshot.storage.k8s.io/v1beta, v1beta1" already deprecated so that please update it.

-- curnent api versions console/src/stores/volumeSnapshotContent.js ---> 'apis/snapshot.storage.k8s.io/v1' console/src/stores/volumeSnapshotClasses.js ---> apis/snapshot.storage.k8s.io/v1beta1 console/src/stores/volumeSnapshot.js ---> apis/snapshot.storage.k8s.io/v1beta

Versions used(KubeSphere/Kubernetes) KubeSphere: Kubernetes: (If KubeSphere installer used, you can skip this)

Environment How many nodes and their hardware configuration:

For example: 3 masters: 8cpu/8g 3 nodes: 8cpu/16g

(and other info are welcomed to help us debugging)

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.