Avoid deleting scale set if annotation is not parsable or if it does not exist (#2239)

This commit is contained in:
Nikola Jokic
2023-02-03 17:27:31 +01:00
committed by GitHub
parent 0774f0680c
commit c4297d25bb
3 changed files with 179 additions and 25 deletions

View File

@@ -31,6 +31,13 @@ func WithGetRunner(runner *actions.RunnerReference, err error) Option {
}
}
func WithCreateRunnerScaleSet(scaleSet *actions.RunnerScaleSet, err error) Option {
return func(f *FakeClient) {
f.createRunnerScaleSetResult.RunnerScaleSet = scaleSet
f.createRunnerScaleSetResult.err = err
}
}
var defaultRunnerScaleSet = &actions.RunnerScaleSet{
Id: 1,
Name: "testset",