mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-14 05:37:48 +00:00
Fix failure while saving HRA status after running controller for a while (#348)
Fixes #346
This commit is contained in:
@@ -165,7 +165,7 @@ func (r *HorizontalRunnerAutoscalerReconciler) Reconcile(req ctrl.Request) (ctrl
|
|||||||
cacheDuration = 10 * time.Minute
|
cacheDuration = 10 * time.Minute
|
||||||
}
|
}
|
||||||
|
|
||||||
updated.Status.CacheEntries = append(updated.Status.CacheEntries, v1alpha1.CacheEntry{
|
updated.Status.CacheEntries = append(cacheEntries, v1alpha1.CacheEntry{
|
||||||
Key: v1alpha1.CacheEntryKeyDesiredReplicas,
|
Key: v1alpha1.CacheEntryKeyDesiredReplicas,
|
||||||
Value: *replicas,
|
Value: *replicas,
|
||||||
ExpirationTime: metav1.Time{Time: time.Now().Add(cacheDuration)},
|
ExpirationTime: metav1.Time{Time: time.Now().Add(cacheDuration)},
|
||||||
|
|||||||
Reference in New Issue
Block a user