Skip to content

PVC From Snapshot #3966

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

Open
stobias123 opened this issue Mar 11, 2025 · 1 comment
Open

PVC From Snapshot #3966

stobias123 opened this issue Mar 11, 2025 · 1 comment
Labels
community Community contribution enhancement New feature or request needs triage Requires review from the maintainers

Comments

@stobias123
Copy link

What would you like added?

I'd love to be able to create a PVC on demand from a snapshot for each runner that I build. We have a significant amount of data we cache in PVCs (100s of GB) and I'd love to be able to create PVC for each runner based on a snapshot with this data.

PVC can be created like so

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: pvc-from-snapshot
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 100Gi
    dataSource:
      name: dagger-2025-02-20
      kind: VolumeSnapshot
      apiGroup: snapshot.storage.k8s.io

so I'd hope for some CRD interface like
Note: Feature requests to integrate vendor specific cloud tools (e.g. awscli, gcloud-sdk, azure-cli) will likely be rejected as the Runner image aims to be vendor agnostic.

      volumes:
      - ephemeral:
          volumeClaimTemplate:
            spec:
              accessModes:
              - ReadWriteOnce
              resources:
                requests:
                  storage: 100Gi
                dataSource:
                  name: dagger-2025-02-20
                  kind: VolumeSnapshot
                  apiGroup: snapshot.storage.k8s.io

Why is this needed?

Moving 100s of GB on every build is cumbersome and takes lots of time. just restoring from a snapshot would be great.

@stobias123 stobias123 added community Community contribution enhancement New feature or request needs triage Requires review from the maintainers labels Mar 11, 2025
Copy link
Contributor

Hello! Thank you for filing an issue.

The maintainers will triage your issue shortly.

In the meantime, please take a look at the troubleshooting guide for bug reports.

If this is a feature request, please review our contribution guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution enhancement New feature or request needs triage Requires review from the maintainers
Projects
None yet
Development

No branches or pull requests

1 participant