Skip to content

Commit

Permalink
Disable health probes when HA is disabled
Browse files Browse the repository at this point in the history
When HA is disabled we don't have to run a new web service just for
healthcheck since not used and cause issues when debugging on local
workstation with multiple controllers
  • Loading branch information
chmouel authored and vdemeester committed Dec 12, 2024
1 parent 013e81e commit 3e53ba2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/pipelines-as-code-watcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func main() {
if val, ok := os.LookupEnv("PAC_DISABLE_HA"); ok {
if strings.ToLower(val) == "true" {
ctx = sharedmain.WithHADisabled(ctx)
ctx = sharedmain.WithHealthProbesDisabled(ctx)
}
}

Expand Down

0 comments on commit 3e53ba2

Please sign in to comment.