PVC From Snapshot

未关闭
#3,966 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
github-actions, go, kubernetes

调研方向

该 issue 提供了 Kubernetes PVC 和 ephemeral volumeClaimTemplate 示例,但没有指出 repository 文件、测试或入口点。首先定位 runner CRD 接口,并确定应如何表示 snapshot-backed ephemeral PVCs;当所请求的接口支持为每个 runner 从 snapshot 创建 PVC 时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

community enhancement needs triage
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.

主要语言
Go
星标
6.7k
派生
1.5k
平均合并
1 小时 34 分钟
30 天内合并 PR
5

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

actions/actions-runner-controller 的其他 Issue

查看 actions/actions-runner-controller 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。