Skip to content

Fix pvc storageclass for trivy scanners

Diogo Filipe Tomas Guerra requested to merge fix-trivy-pvc into master

trivy is trying to set up pvc with wrong storage class

Events:
  Type     Reason              Age                   From                         Message
  ----     ------              ----                  ----                         -------
  Warning  ProvisioningFailed  3m16s (x63 over 18m)  persistentvolume-controller  storageclass.storage.k8s.io "manila-geneva-cephfs-delete" not found

This is not available

ka get sc
NAME                                      PROVISIONER                       RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
cvmfs                                     cvmfs.csi.cern.ch                 Delete          Immediate           false                  25d
geneva-cephfs-testing                     cephfs.manila.csi.openstack.org   Retain          Immediate           true                   25d
manila-geneva-cephfs-testing              cephfs.manila.csi.openstack.org   Retain          Immediate           true                   25d
manila-geneva-cephfs-testing-delete       cephfs.manila.csi.openstack.org   Delete          Immediate           true                   25d
manila-meyrin-cephfs                      cephfs.manila.csi.openstack.org   Retain          Immediate           true                   25d
manila-meyrin-cephfs-b                    cephfs.manila.csi.openstack.org   Retain          Immediate           true                   25d
manila-meyrin-cephfs-b-delete             cephfs.manila.csi.openstack.org   Delete          Immediate           true                   25d
manila-meyrin-cephfs-delete               cephfs.manila.csi.openstack.org   Delete          Immediate           true                   25d
manila-meyrin-cephfs-vault-ssd-a          cephfs.manila.csi.openstack.org   Retain          Immediate           true                   25d
manila-meyrin-cephfs-vault-ssd-a-delete   cephfs.manila.csi.openstack.org   Delete          Immediate           true                   25d
meyrin-cephfs                             cephfs.manila.csi.openstack.org   Retain          Immediate           true                   25d
meyrin-cephfs-b                           cephfs.manila.csi.openstack.org   Retain          Immediate           true                   25d
meyrin-cephfs-vault-ssd-a                 cephfs.manila.csi.openstack.org   Retain          Immediate           true                   25d

Merge request reports