Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-37449

disable 'Create VolumeSnapshotClass' button for normal user

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.17
    • Management Console
    • None
    • Moderate
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      VolumeSnapshotClass is cluster scoped resource and normal user has no permission to create, so we should disable the creation button    

      Version-Release number of selected component (if applicable):

      4.17.0-0.nightly-2024-07-17-183402    

      How reproducible:

      Always    

      Steps to Reproduce:

       1. normal user navigate to VolumeSnapshotClasses list page Storage ->  VolumeSnapshotClasses    

      Actual results:

      There is a 'Create VolumeSnapshotClass' button, when user tries to create from example YAML, we will see error message:
      
      volumesnapshotclasses.snapshot.storage.k8s.io is forbidden: User "yapei1" cannot create resource "volumesnapshotclasses" in API group "snapshot.storage.k8s.io" at the cluster scope 

      Expected results:

      VolumeSnapshotClasses is cluster scoped resource, normal user is not permitted to create so we should disable 'Create VolumeSnapshotClass' button for normal user

      Additional info:

          

            rh-ee-ndhevar Nitin Dhevar
            rhn-support-yapei YaDan Pei
            YaDan Pei YaDan Pei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: