mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-10 11:41:27 +00:00
Add TODO comment to the PVC reconciler
This commit is contained in:
@@ -75,6 +75,10 @@ func syncPVC(ctx context.Context, c client.Client, log logr.Logger, ns string, p
|
|||||||
|
|
||||||
log.V(2).Info("Reconciling runner PVC")
|
log.V(2).Info("Reconciling runner PVC")
|
||||||
|
|
||||||
|
// TODO: Probably we'd better remove PVCs related to the RunnetSet that is nowhere now?
|
||||||
|
// Otherwise, a bunch of continuously recreated StatefulSet
|
||||||
|
// can leave dangling PVCs forever, which might stress the cluster.
|
||||||
|
|
||||||
var sts appsv1.StatefulSet
|
var sts appsv1.StatefulSet
|
||||||
if err := c.Get(ctx, types.NamespacedName{Namespace: ns, Name: stsName}, &sts); err != nil {
|
if err := c.Get(ctx, types.NamespacedName{Namespace: ns, Name: stsName}, &sts); err != nil {
|
||||||
if !kerrors.IsNotFound(err) {
|
if !kerrors.IsNotFound(err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user