Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Velero schedules specified in values are not removed from server after removal #392

Closed
jprecuch opened this issue Aug 16, 2022 · 2 comments
Assignees
Labels
bug Something isn't working velero

Comments

@jprecuch
Copy link

jprecuch commented Aug 16, 2022

What steps did you take and what happened:
We specified schedules using values.yaml file:

schedules:
  full-24h-all-ns-bkp:
    schedule: "30 8 * * *"
    template:
      ttl: "336h0m0s"
      includedNamespaces:
        - '*'
      snapshotVolumes: true
  full-12h-all-ns-novols-bkp:
    schedule: "15 */12 * * *"
    template:
      ttl: "168h0m0s"
      includedNamespaces:
        - '*'
      snapshotVolumes: false
  mysql-hourly-all-ns-bkp:
    schedule: "0 * * * *"
    template:
      ttl: "72h0m0s"
      includedNamespaces:
        - '*'
      labelSelector:
        matchLabels:
          app: mysql
      snapshotVolumes: true

This leads to:

$ velero schedule get
NAME                                STATUS    CREATED                         SCHEDULE        BACKUP TTL   LAST BACKUP   SELECTOR
velero-full-12h-all-ns-novols-bkp   Enabled   2022-08-16 11:36:04 +0000 UTC   15 */12 * * *   168h0m0s     n/a           <none>
velero-full-24h-all-ns-bkp          Enabled   2022-08-16 11:36:04 +0000 UTC   30 8 * * *      336h0m0s     n/a           <none>
velero-mysql-hourly-all-ns-bkp      Enabled   2022-08-16 11:36:04 +0000 UTC   0 * * * *       72h0m0s      5m ago        app=mysql

However if we remove one of these schedules from values.yaml and then reupgrade, they are not removed and the schedules are still active on the region which had previous values

What did you expect to happen:
If we remove one schedule from list of schedules in values.yaml, it will be also deleted (after next upgrade) from the server side as well.

Environment:

  • helm version (use helm version): v3.9.3
  • helm chart version and app version (use helm list -n <YOUR NAMESPACE>):
NAME  	NAMESPACE	REVISION	UPDATED                                	STATUS  	CHART        	APP VERSION
velero	velero   	1       	2022-08-16 11:35:45.905097751 +0000 UTC	deployed	velero-2.31.0	1.9.0
  • Kubernetes version (use kubectl version): v1.24.2-gke.1900
  • Kubernetes installer & version: v1.24.2-gke.1900
  • Cloud provider or hardware configuration: GKE
  • OS (e.g. from /etc/os-release): containerd
@Spots87
Copy link

Spots87 commented Aug 17, 2022

I'm facing this same issue, and I've noticed that changing the key "disabled" to true does not update the status of the Schedule from "Enabled" nor does it delete the schedule.

@jenting jenting added the velero label Aug 19, 2022
@jenting jenting added help wanted Extra attention is needed bug Something isn't working labels Aug 3, 2023
@jenting jenting self-assigned this Aug 13, 2023
@jenting jenting removed the help wanted Extra attention is needed label Aug 13, 2023
@jenting
Copy link
Collaborator

jenting commented Aug 14, 2023

@jprecuch @Spots87
I created a PR to address it.
Would you mind to help me verify it? Appreciate 🙏

@jenting jenting closed this as completed Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working velero
Projects
None yet
Development

No branches or pull requests

4 participants
@jprecuch @Spots87 @jenting and others