Skip to content

Commit

Permalink
Renamed NSM_PPROF_PORT env to NSM_PPROF_LISTEN_ON and updated value (#…
Browse files Browse the repository at this point in the history
…12229)

Signed-off-by: Vladislav Byrgazov <[email protected]>
Co-authored-by: Vladislav Byrgazov <[email protected]>
  • Loading branch information
Ex4amp1e and Vladislav Byrgazov authored Aug 16, 2024
1 parent 420f07a commit aa271c5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/check-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ jobs:
- name: Replace pprof enabled value with false
run: |
grep 'NSM_PPROF_ENABLED' -rl * | xargs sed -i '/name: NSM_PPROF_ENABLED/{ n; s/value: .*/value: false/g }'
grep 'NSM_PPROF_ENABLED' -rl * | xargs sed -i '/name: NSM_PPROF_ENABLED/{ n; s/value: .*/value: "false"/g }'
grep 'NSM_PPROF_ENABLED' -rl * | xargs sed -i 's/NSM_PPROF_ENABLED: .*/NSM_PPROF_ENABLED: "false"/g'
grep 'NSM_PPROF_ENABLED' -rl * | xargs sed -i 's/NSM_PPROF_ENABLED=true/NSM_PPROF_ENABLED=false/g'
git add -- .
git commit -s -m "Replace pprof enabled value with false"
Expand Down
4 changes: 2 additions & 2 deletions apps/forwarder-vpp/forwarder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ spec:
fieldPath: metadata.name
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_PORT
value: "6060"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 2 additions & 2 deletions apps/nsmgr/nsmgr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ spec:
value: TRACE
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_PORT
value: "6060"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
- name: NSM_REGISTRY_URL
value: "registry:5002"
# - name: DLV_LISTEN_NSMGR
Expand Down
4 changes: 2 additions & 2 deletions apps/registry-k8s/registry-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ spec:
value: nsmgr-proxy:5004
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_PORT
value: "6060"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
imagePullPolicy: IfNotPresent
name: registry
ports:
Expand Down

0 comments on commit aa271c5

Please sign in to comment.