11/*
22 * Copyright 2025 TomTom N.V.
3- * Copyright 2015 The Kubernetes Authors.
3+ * Copyright 2014 The Kubernetes Authors.
44 *
55 * Licensed under the Apache License, Version 2.0 (the "License");
66 * you may not use this file except in compliance with the License.
@@ -22,10 +22,12 @@ import (
2222 "time"
2323
2424 ghclient "github.com/tomtom-international/macos-actions-runner-controller/pkg/clients/github"
25+ tartclient "github.com/tomtom-international/macos-actions-runner-controller/pkg/clients/tart"
2526 "github.com/tomtom-international/macos-actions-runner-controller/pkg/logger"
2627 "github.com/tomtom-international/macos-actions-runner-controller/pkg/prober/probe"
2728 githubprobe "github.com/tomtom-international/macos-actions-runner-controller/pkg/prober/probe/github"
2829 httpprobe "github.com/tomtom-international/macos-actions-runner-controller/pkg/prober/probe/http"
30+ tartprobe "github.com/tomtom-international/macos-actions-runner-controller/pkg/prober/probe/tart"
2931 pt "github.com/tomtom-international/macos-actions-runner-controller/pkg/prober/types"
3032)
3133
@@ -34,12 +36,14 @@ const maxProbeRetries = 3
3436type prober struct {
3537 github githubprobe.Prober
3638 http httpprobe.Prober
39+ tart tartprobe.Prober
3740}
3841
39- func newProber (githubClient * ghclient.Client ) * prober {
42+ func newProber (githubClient * ghclient.Client , tartClient * tartclient. Client ) * prober {
4043 return & prober {
4144 github : githubprobe .New (githubClient ),
4245 http : httpprobe .New (),
46+ tart : tartprobe .New (tartClient ),
4347 }
4448}
4549
@@ -90,10 +94,12 @@ func (pb *prober) runProbeWithRetries(spec *pt.Probe, target *pt.ProbeTarget, re
9094func (pb * prober ) runProbe (spec * pt.Probe , target * pt.ProbeTarget ) (probe.Result , string , error ) {
9195 timeout := time .Duration (spec .TimeoutSeconds ) * time .Second
9296 switch {
97+ case spec .TartVMStatusGet != nil :
98+ logger .Debugf ("Run TartVMStatusGet probe for traget: %s with ID: %s" , target .Name , target .ID )
99+ return pb .tart .Probe (target .TartVMName )
93100 case spec .HTTPGet != nil :
94- logger .Infof ( " HTTPGet probe for traget: %v with ID: %v " , target .Name , target .ID )
101+ logger .Debugf ( "Run HTTPGet probe for traget: %s with ID: %s " , target .Name , target .ID )
95102 return pb .http .Probe (timeout )
96-
97103 case spec .GitHubRunnerGet != nil :
98104 return pb .github .Probe (target .Name )
99105 default :
0 commit comments