Skip to content

Commit

Permalink
feat: pass GODEBUG to runner
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Jun 24, 2021
1 parent 7d83cdb commit 4b6a9d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
controller: ARGO_DATAFLOW_PULL_POLICY=IfNotPresent ARGO_DATAFLOW_UPDATE_INTERVAL=5s ARGO_DATAFLOW_NAMESPACE=argo-dataflow-system go run -race ./manager
controller: GODEBUG=gctrace=1 ARGO_DATAFLOW_PULL_POLICY=IfNotPresent ARGO_DATAFLOW_UPDATE_INTERVAL=5s ARGO_DATAFLOW_NAMESPACE=argo-dataflow-system go run -race ./manager
logs: make logs
argocli: make argocli
ui: make ui
2 changes: 2 additions & 0 deletions api/v1alpha1/step_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package v1alpha1

import (
"encoding/json"
"os"
"strconv"
"time"

Expand Down Expand Up @@ -59,6 +60,7 @@ func (in Step) GetPodSpec(req GetPodSpecReq) corev1.PodSpec {
{Name: EnvReplica, Value: strconv.Itoa(int(req.Replica))},
{Name: EnvStep, Value: string(step)},
{Name: EnvUpdateInterval, Value: req.UpdateInterval.String()},
{Name: "GODEBUG", Value: os.Getenv("GODEBUG")},
}
return corev1.PodSpec{
Volumes: append(in.Spec.Volumes, volume),
Expand Down

0 comments on commit 4b6a9d6

Please sign in to comment.