mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-10-21 12:28:45 +02:00
Fix syntax error and normalize ephemeralrunners resource casing
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot App
parent
0c17a55075
commit
32ed938405
@@ -154,7 +154,7 @@ func (w *Scaler) patchJobStarted(ctx context.Context, jobInfo *scaleset.JobStart
|
|||||||
Get().
|
Get().
|
||||||
Prefix("apis", v1alpha1.GroupVersion.Group, v1alpha1.GroupVersion.Version).
|
Prefix("apis", v1alpha1.GroupVersion.Group, v1alpha1.GroupVersion.Version).
|
||||||
Namespace(w.config.EphemeralRunnerSetNamespace).
|
Namespace(w.config.EphemeralRunnerSetNamespace).
|
||||||
Resource("ephemeralrunners"),
|
Resource("ephemeralrunners").
|
||||||
Name(jobInfo.RunnerName).
|
Name(jobInfo.RunnerName).
|
||||||
Do(ctx).
|
Do(ctx).
|
||||||
Into(currentRunner)
|
Into(currentRunner)
|
||||||
@@ -210,7 +210,7 @@ func (w *Scaler) patchJobStarted(ctx context.Context, jobInfo *scaleset.JobStart
|
|||||||
Patch(types.MergePatchType).
|
Patch(types.MergePatchType).
|
||||||
Prefix("apis", v1alpha1.GroupVersion.Group, v1alpha1.GroupVersion.Version).
|
Prefix("apis", v1alpha1.GroupVersion.Group, v1alpha1.GroupVersion.Version).
|
||||||
Namespace(w.config.EphemeralRunnerSetNamespace).
|
Namespace(w.config.EphemeralRunnerSetNamespace).
|
||||||
Resource("EphemeralRunners").
|
Resource("ephemeralrunners").
|
||||||
Name(jobInfo.RunnerName).
|
Name(jobInfo.RunnerName).
|
||||||
SubResource("status").
|
SubResource("status").
|
||||||
Body(mergePatch).
|
Body(mergePatch).
|
||||||
|
|||||||
Reference in New Issue
Block a user