You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[POA-3228] Add POSTMAN_INSIGHTS_DISABLE_REPRO_MODE env var at pod level (#93)
This pull request includes changes to add a new
`POSTMAN_INSIGHTS_DISABLE_REPRO_MODE` environment variable to explicitly
disable repro mode at the pod level.
### New ReproMode attribute at `PodArgs` level:
* `cmd/internal/kube/daemonset/constants.go`: Added a new environment
variable `POSTMAN_INSIGHTS_DISABLE_REPRO_MODE` to control the ReproMode
feature at the pod level.
* `cmd/internal/kube/daemonset/pod_args.go`: Updated the `PodArgs`
struct to include a new `ReproMode` boolean field.
* `cmd/internal/kube/daemonset/apidump_process.go`: Modified the
`StartApiDumpProcess` method to use the new `ReproMode` field from
`podArgs` instead of `d.InsightsReproModeEnabled`.
### Pod Environment Variables Inspection:
* `cmd/internal/kube/daemonset/kube_events_worker.go`:
* Introduced a new `containerConfig` struct to encapsulate the required
container configuration and the new `disableReproMode` field. Updated
the `inspectPodForEnvVars` function to populate and use this new struct.
* Set the pod level `reproMode` attribute based on the daemonset repro
mode and env variable from the pod
### Telemetry Logging:
* `cmd/internal/kube/daemonset/telemetry.go`: Enhanced the
`dumpPodsApiDumpProcessState` function to include the `ReproMode` status
in the log output.
0 commit comments