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

Apply the resource policy configmap to a yaml with CRD Backup ou Schedule #542

Closed
andreyolv opened this issue Feb 1, 2024 · 1 comment
Closed

Comments

@andreyolv
Copy link

andreyolv commented Feb 1, 2024

Describe the problem/challenge you have
Documentation only show how to apply resource policy configmap using velero cli.

How can I apply the resource policy configmap to a yaml with CRD Backup ou Schedule? It's possible?

Is there any example?

Environment:

  • helm chart version: 5.2.0
  • Kubernetes version: 1.27.3
@andreyolv
Copy link
Author

I found the answer =D

apiVersion: velero.io/v1
kind: Schedule
metadata:
  name: cluster-dev
  namespace: velero
spec:
  schedule: "0 0 * * *"
  template:
    resourcePolicy:
      kind: configmap
      name: velero-policy
    includedNamespaces:
    - '*'
    includedResources:
    - '*'
    ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant