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
The JSON output for namespace-based results overwrites previous entries, leading to loss of data for different namespaces. This occurs because the namespace is not included in the JSON path.
Expected Behavior:
Each namespace-based result should be independently added to the JSON output without overwriting others.
Actual Behavior:
Only the last namespace-based result is retained in the JSON output.
Steps to Reproduce:
Generate a report with multiple namespace-based results.
Observe the JSON output.
Affected Version:
<=v0.10.4
Text Output:
│ applications │ argo │ Deploy horizontal pod autoscaler for deployments. │ argo-cd-argocd-applicationset-controller │ Deployment │ Link │
│ applications │ dynatrace │ Deploy horizontal pod autoscaler for deployments. │ dynatrace-operator │ Deployment │ Link │
│ applications │ port │ Deploy horizontal pod autoscaler for deployments. │ │ Deployment │ Link │
Problem:
The JSON output for namespace-based results overwrites previous entries, leading to loss of data for different namespaces. This occurs because the namespace is not included in the JSON path.
Expected Behavior:
Each namespace-based result should be independently added to the JSON output without overwriting others.
Actual Behavior:
Only the last namespace-based result is retained in the JSON output.
Steps to Reproduce:
Affected Version:
<=v0.10.4
Text Output:
JSON Output:
Proposed Solution:
Include the namespace in the JSON path to ensure unique addressing for each result. The modified code snippet is as follows:
hardeneks/hardeneks/__init__.py
Line 100 in b0451e9
bc6a1d5
This change ensures that results for different namespaces are stored under their respective namespace keys, preventing data overwrites.
The text was updated successfully, but these errors were encountered: