Skip to content

Commit 57d44ae

Browse files
authored
fix: add ipv6 flag for worker poller (#1218)
1 parent 859c84d commit 57d44ae

File tree

12 files changed

+27
-0
lines changed

12 files changed

+27
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Fixed
1212
- fix text SNMP values with numbers and 'E' being interpreted as scientific notation
13+
- added missing `ipv6Enabled` flag in poller
1314

1415

1516
## [1.12.3]

charts/splunk-connect-for-snmp/templates/worker/_helpers.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ Common labels
181181
value: {{ .Values.worker.poller.concurrency | default "4" | quote }}
182182
- name: PREFETCH_COUNT
183183
value: {{ .Values.worker.poller.prefetch | default "1" | quote }}
184+
- name: IPv6_ENABLED
185+
value: {{ .Values.poller.ipv6Enabled | default "false" | quote }}
184186
{{- end }}
185187

186188
{{- define "environmental-variables-sender" -}}

charts/splunk-connect-for-snmp/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@
371371
"logLevel": {
372372
"type": "string"
373373
},
374+
"ipv6Enabled": {
375+
"type": "boolean"
376+
},
374377
"enableFullWalk": {
375378
"type": "boolean"
376379
}

charts/splunk-connect-for-snmp/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ poller:
258258
# example_group_1,,2c,public,,,3000,static_profile,t,
259259
logLevel: "INFO"
260260

261+
ipv6Enabled: false
261262
worker:
262263
# workers are responsible for the actual execution of polling, processing trap messages, and sending data to Splunk.
263264
# More: https://splunk.github.io/splunk-connect-for-snmp/main/microk8s/configuration/worker-configuration/

docs/microk8s/configuration/values-params-description.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ Detailed documentation about configuring poller can be found in [Poller](poller-
9898
| `splunkMetricNameHyphenToUnderscore` | Replaces hyphens with underscores in generated metric names to ensure compatibility with Splunk's metric schema | `false` |
9999
| `pollBaseProfiles` | Enables polling base profiles | `true` |
100100
| `maxOidToProcess` | Maximum number of OIDs requested from SNMP Agent at once | `70` |
101+
| `ipv6Enabled` | Enables polling for IPv6 addresses | `false` |
102+
| `enableFullWalk` | Enables full walk of OIDs from device | `false` |
101103
| `usernameSecrets` | List of kubernetes secrets name that will be used for polling | |
102104
| `inventory` | List of configuration for polling | |
103105
| `logLevel` | Log level for a poller pod | `INFO` |

docs/microk8s/enable-ipv6.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,9 @@ traps:
6363
ipFamilyPolicy: RequireDualStack
6464
ipFamilies: ["IPv4", "IPv6"]
6565
```
66+
67+
To configure poller to poll IPv4 and IPv6 addresses, you need to add the following configuration to the `values.yaml` file:
68+
```
69+
poller:
70+
ipv6Enabled: true
71+
```

rendered/manifests/tests/splunk-connect-for-snmp/templates/worker/poller/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ spec:
109109
value: "4"
110110
- name: PREFETCH_COUNT
111111
value: "1"
112+
- name: IPv6_ENABLED
113+
value: "false"
112114
volumeMounts:
113115
- name: config
114116
mountPath: "/app/config"

rendered/manifests/tests_autoscaling_enabled/splunk-connect-for-snmp/templates/worker/poller/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ spec:
108108
value: "4"
109109
- name: PREFETCH_COUNT
110110
value: "1"
111+
- name: IPv6_ENABLED
112+
value: "false"
111113
volumeMounts:
112114
- name: config
113115
mountPath: "/app/config"

rendered/manifests/tests_autoscaling_enabled_deprecated/splunk-connect-for-snmp/templates/worker/poller/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ spec:
108108
value: "4"
109109
- name: PREFETCH_COUNT
110110
value: "1"
111+
- name: IPv6_ENABLED
112+
value: "false"
111113
volumeMounts:
112114
- name: config
113115
mountPath: "/app/config"

rendered/manifests/tests_enable_ui/splunk-connect-for-snmp/templates/worker/poller/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ spec:
109109
value: "4"
110110
- name: PREFETCH_COUNT
111111
value: "1"
112+
- name: IPv6_ENABLED
113+
value: "false"
112114
volumeMounts:
113115
- name: config
114116
mountPath: "/app/config"

0 commit comments

Comments
 (0)