Skip to content

Commit

Permalink
Remove hardcoded cluster domain
Browse files Browse the repository at this point in the history
  • Loading branch information
ausias-armesto committed Oct 4, 2023
1 parent 4a09026 commit aa26b70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/k6_start.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

func isServiceReady(log logr.Logger, service *v1.Service) bool {
resp, err := http.Get(fmt.Sprintf("http://%v.%v.svc.cluster.local:6565/v1/status", service.ObjectMeta.Name, service.ObjectMeta.Namespace))
resp, err := http.Get(fmt.Sprintf("http://%v.%v.svc:6565/v1/status", service.ObjectMeta.Name, service.ObjectMeta.Namespace))

if err != nil {
log.Error(err, fmt.Sprintf("failed to get status from %v", service.ObjectMeta.Name))
Expand Down
2 changes: 1 addition & 1 deletion controllers/k6_stopped_jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

func isJobRunning(log logr.Logger, service *v1.Service) bool {
resp, err := http.Get(fmt.Sprintf("http://%v.%v.svc.cluster.local:6565/v1/status", service.ObjectMeta.Name, service.ObjectMeta.Namespace))
resp, err := http.Get(fmt.Sprintf("http://%v.%v.svc:6565/v1/status", service.ObjectMeta.Name, service.ObjectMeta.Namespace))
if err != nil {
return false
}
Expand Down

0 comments on commit aa26b70

Please sign in to comment.