Git Product home page Git Product logo

Failed to watch *v1alpha1.ClusterSbomReport: failed to list *v1alpha1.ClusterSbomReport: json: cannot unmarshal array into Go struct field Metadata.items.report.components.metadata.tools of type v1alpha1.Tools about trivy-operator HOT 3 CLOSED

sheeeng avatar sheeeng commented on August 31, 2024
Failed to watch *v1alpha1.ClusterSbomReport: failed to list *v1alpha1.ClusterSbomReport: json: cannot unmarshal array into Go struct field Metadata.items.report.components.metadata.tools of type v1alpha1.Tools

from trivy-operator.

Comments (3)

sheeeng avatar sheeeng commented on August 31, 2024 1

@sheeeng have you upgraded from older version of trivy-operator?

Yes.

kubectl delete helmreleases.helm.toolkit.fluxcd.io --namespace trivy-system trivy-operator

kubectl delete customresourcedefinitions.apiextensions.k8s.io vulnerabilityreports.aquasecurity.github.io
kubectl delete customresourcedefinitions.apiextensions.k8s.io exposedsecretreports.aquasecurity.github.io
kubectl delete customresourcedefinitions.apiextensions.k8s.io configauditreports.aquasecurity.github.io
kubectl delete customresourcedefinitions.apiextensions.k8s.io clusterconfigauditreports.aquasecurity.github.io
kubectl delete customresourcedefinitions.apiextensions.k8s.io rbacassessmentreports.aquasecurity.github.io
kubectl delete customresourcedefinitions.apiextensions.k8s.io infraassessmentreports.aquasecurity.github.io
kubectl delete customresourcedefinitions.apiextensions.k8s.io clusterrbacassessmentreports.aquasecurity.github.io
kubectl delete customresourcedefinitions.apiextensions.k8s.io clustercompliancereports.aquasecurity.github.io
kubectl delete customresourcedefinitions.apiextensions.k8s.io clusterinfraassessmentreports.aquasecurity.github.io
kubectl delete customresourcedefinitions.apiextensions.k8s.io sbomreports.aquasecurity.github.io
kubectl delete customresourcedefinitions.apiextensions.k8s.io clustersbomreports.aquasecurity.github.io
kubectl delete customresourcedefinitions.apiextensions.k8s.io clustervulnerabilityreports.aquasecurity.github.io

I used the above commands and the issue is no longer reproducible. Thank you, @chen-keinan. 🙇

from trivy-operator.

chen-keinan avatar chen-keinan commented on August 31, 2024

@sheeeng have you upgraded from older version of trivy-operator?
please fully uninstall the trivy-operator installation : helm uninstall trivy-operator -n trivy-system
and delete all CRDs and re-install again with latest.
no worried about reports data, it will be generated again.

    kubectl delete crd vulnerabilityreports.aquasecurity.github.io
    kubectl delete crd exposedsecretreports.aquasecurity.github.io
    kubectl delete crd configauditreports.aquasecurity.github.io
    kubectl delete crd clusterconfigauditreports.aquasecurity.github.io
    kubectl delete crd rbacassessmentreports.aquasecurity.github.io
    kubectl delete crd infraassessmentreports.aquasecurity.github.io
    kubectl delete crd clusterrbacassessmentreports.aquasecurity.github.io
    kubectl delete crd clustercompliancereports.aquasecurity.github.io
    kubectl delete crd clusterinfraassessmentreports.aquasecurity.github.io
    kubectl delete crd sbomreports.aquasecurity.github.io
    kubectl delete crd clustersbomreports.aquasecurity.github.io
    kubectl delete crd clustervulnerabilityreports.aquasecurity.github.io

from trivy-operator.

HaveFun83 avatar HaveFun83 commented on August 31, 2024

We had the same issue after upgrade from chart version 0.20.6 -> 0.21.4 , Operator 0.18.5 -> 0.19.4

according to the changelogs

    kubectl delete crd sbomreports.aquasecurity.github.io
    kubectl delete crd clustersbomreports.aquasecurity.github.io

should be enough

from trivy-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.