Skip to content

Commit 660e610

Browse files
author
zohar-arad
authored
feat(kspm-collector,node-analyzer): add support for NATS_MAX_RECONNECT variable (#1400)
1 parent cc34da2 commit 660e610

File tree

12 files changed

+215
-196
lines changed

12 files changed

+215
-196
lines changed

charts/kspm-collector/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ exclusively to fix incorrect entries and not to add new ones.
105105
# v0.1.35
106106
### New Features
107107
* **kspm-collector** [d1328c0](https://github.com/sysdiglabs/charts/commit/d1328c02976901a64d91f4e86a2a26035045496c): bumped KSPM Collector to latest version ([#921](https://github.com/sysdiglabs/charts/issues/921))
108-
# v0.1.34
108+
# v0.1.33
109109
### Bug Fixes
110110
* **node-analyzer,kspm-collector** [59543e8](https://github.com/sysdiglabs/charts/commit/59543e8da45e1e61f21b2489500fe5452906bca0): Fix security context permission for KSPM components ([#907](https://github.com/sysdiglabs/charts/issues/907))
111111
# v0.1.33

charts/kspm-collector/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: kspm-collector
33
description: Sysdig KSPM collector
44

5-
version: 0.8.3
5+
version: 0.8.4
66
appVersion: 1.30.0
77

88
keywords:

charts/kspm-collector/README.md

Lines changed: 56 additions & 55 deletions
Large diffs are not rendered by default.

charts/kspm-collector/templates/configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ data:
1717
excluded_workloads: {{ .Values.workloads.excluded | quote }}
1818
health_interval_minutes: {{ .Values.healthIntervalMin | default 5 | quote }}
1919
external_nats_url: {{ include "kspmCollector.natsUrl" . }}
20+
nats_max_reconnect: {{ .Values.natsMaxReconnect | default 0 | quote }}
2021
cluster_name: {{ required "A valid clusterName is required" (include "kspmCollector.clusterName" .) }}
2122
nats_insecure: {{ include "kspmCollector.natsInsecure" . }}
2223
{{- if (.Values.httpProxy | default .Values.global.proxy.httpProxy) }}

charts/kspm-collector/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ spec:
159159
key: nats_insecure
160160
name: {{ template "kspmCollector.fullname" . }}
161161
optional: true
162+
- name: NATS_MAX_RECONNECT
163+
valueFrom:
164+
configMapKeyRef:
165+
key: nats_max_reconnect
166+
name: {{ template "kspmCollector.fullname" . }}
167+
optional: true
162168
- name: AGENT_PORT
163169
valueFrom:
164170
configMapKeyRef:

charts/kspm-collector/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ httpProxy:
55
httpsProxy:
66
noProxy:
77
sslVerifyCertificate:
8+
natsMaxReconnect: 0
89
# Namespace to deploy to (Optional: Will default to release namespace)
910
namespace:
1011

@@ -76,7 +77,7 @@ clusterName: ""
7677

7778
image:
7879
repository: sysdig/kspm-collector
79-
tag: 1.32.0
80+
tag: 1.33.0
8081
digest:
8182
registry: quay.io
8283
pullPolicy:

charts/node-analyzer/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: node-analyzer
33
description: Sysdig Node Analyzer
44

55
# currently matching Sysdig's appVersion 1.14.34
6-
version: 1.17.7
6+
version: 1.17.8
77
appVersion: 12.8.0
88
keywords:
99
- monitoring

charts/node-analyzer/README.md

Lines changed: 134 additions & 133 deletions
Large diffs are not rendered by default.

charts/node-analyzer/templates/configmap-kspm-analyzer.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ data:
1414
{{ end}}
1515
environment: {{ $env }}
1616
external_nats_url: {{ include "nodeAnalyzer.natsUrl" . }}
17+
nats_max_reconnect: {{ .Values.nodeAnalyzer.natsMaxReconnect | default 0 | quote }}
1718
cluster_name: {{ required "A valid clusterName is required" (include "nodeAnalyzer.clusterName" .) }}
1819
agent_app_name: {{ include "nodeAnalyzer.name" . }}
1920
{{- if hasKey .Values.nodeAnalyzer "sslVerifyCertificate" }}

charts/node-analyzer/templates/daemonset-node-analyzer.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@ spec:
237237
name: {{ .Release.Name }}-kspm-analyzer
238238
key: agent_port
239239
optional: true
240+
- name: NATS_MAX_RECONNECT
241+
valueFrom:
242+
configMapKeyRef:
243+
name: {{ .Release.Name }}-kspm-analyzer
244+
key: nats_max_reconnect
245+
optional: true
240246
{{- if .Values.global.sysdig.tags }}
241247
- name: TAGS
242248
value: {{ include "agent.tags" . }}

0 commit comments

Comments
 (0)