Remove unused field

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2025-05-02 12:26:48 +00:00
parent c601f88cf7
commit 2a5e374ae6
3 changed files with 2 additions and 15 deletions

View file

@ -243,10 +243,6 @@ type Instance struct {
// Job is the current job that is being serviced by this runner.
Job *Job `json:"job,omitempty"`
// RunnerBootstrapTimeout is the timeout in minutes after which the runner deployment
// will be considered failed. This value is caried over from the pool or scale set.
RunnerBootstrapTimeout uint `json:"runner_bootstrap_timeout,omitempty"`
// Do not serialize sensitive info.
CallbackURL string `json:"-"`
MetadataURL string `json:"-"`
@ -264,13 +260,6 @@ func (i Instance) GetID() string {
return i.ID
}
func (i Instance) RunnerTimeout() uint {
if i.RunnerBootstrapTimeout == 0 {
return appdefaults.DefaultRunnerBootstrapTimeout
}
return i.RunnerBootstrapTimeout
}
// used by swagger client generated code
type Instances []Instance