Giter Club home page Giter Club logo

Comments (8)

duyanghao avatar duyanghao commented on September 8, 2024

@sevenval-admins First of all, velero will proceed to the backup even though one of podvolumebackups fails.

Is it possible for the controller to remove the annotation when the Pod exits?
Or is there a much better solution to my problem?

IMO, maybe velero-volume-controller should only add annotation to running pod and drop relevant annotation when pod status changes. I will do that later and welcome your PR if it is urgent.

from velero-volume-controller.

sevenval-admins avatar sevenval-admins commented on September 8, 2024

It is right that Velero continues with the backup. But the status at the end is PartiallyFailed, which is not good for monitoring the backups.

Unfortunately I can't contribute any PR, because my coding knowledge is not sufficient for that.

from velero-volume-controller.

fredgate avatar fredgate commented on September 8, 2024

@duyanghao I can try to look at that. But I don't know if I prefer to ignore pods controlled by a job or/and pod not running. The problem if we simply ignore not running pods, is that we can annotate a pod started by a job, and that this pods terminated during a velero backup.

from velero-volume-controller.

fredgate avatar fredgate commented on September 8, 2024

The controller add the annotation to a new pod. I think that it should remove the annotation when the pod is not tunning anymore (error, completed...). I think that it should not add the annotation while the pod is pending, because restic could not work with these pods.

About this issue, we can add a option in the config to choose if we want to exclude pod issued from a job.

I can start a pull request with these features.

from velero-volume-controller.

fredgate avatar fredgate commented on September 8, 2024

I opened a pull request for that. Can you take a look ?

from velero-volume-controller.

duyanghao avatar duyanghao commented on September 8, 2024

@fredgate Thanks for your PR, I will verify it later.

from velero-volume-controller.

duyanghao avatar duyanghao commented on September 8, 2024

@sevenval-admins velero-volume-controller now supports excludeJobs option, please try with this feature and feel free to reopen this issue if this problem remains unresolved

from velero-volume-controller.

sevenval-admins avatar sevenval-admins commented on September 8, 2024

@duyanghao Great. Thanks. Will try the option.

from velero-volume-controller.

Related Issues (10)

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.