Skip to content

Commit 385ccfa

Browse files
ajasnoszomrozowicz-splunksrv-rr-github-tokencwadhwani-splunk
authored
fix: release 1.12.3 (#1196)
* fix: redis headless service (#1181) * fix: use redis-master instead of redis-headless * fix: add support for sentinel * fix: celery broker env * fix: add CHANGELOG * chore(release): 1.12.3-beta.1 ## [1.12.3-beta.1](v1.12.2...v1.12.3-beta.1) (2025-05-20) ### Bug Fixes * redis headless service ([#1181](#1181)) ([b238872](b238872)) * fix: update mongodb for microk8s (#1180) * fix: update mongo dependecy, create pre-upgrade job to increase FCV of mongo * fix: run pre-upgrade only if upgrade is run (not init install) * fix: check for the correct config name * fix: add CHANGELOG and documentation * fix: address PR comments * chore(release): 1.12.3-beta.2 ## [1.12.3-beta.2](v1.12.3-beta.1...v1.12.3-beta.2) (2025-05-22) ### Bug Fixes * update mongodb for microk8s ([#1180](#1180)) ([9cfb01e](9cfb01e)) * docs: update documents about improved polling (#1185) * docs: update documents about improved polling * docs: update pdu image * fix: update mongo version in docker-compose to be the same as microk8s updated docker version (#1182) * chore(release): 1.12.3-beta.3 ## [1.12.3-beta.3](v1.12.3-beta.2...v1.12.3-beta.3) (2025-05-26) ### Bug Fixes * update mongo version in docker-compose to be the same as microk8s updated docker version ([#1182](#1182)) ([6e70498](6e70498)) * fix: fixed the sim pod creation issue when sim.secret.name was set (#1184) * fix: Fixed the sim pod creation issue when sim.secret.name was set * fix: Corrected the indentation * fix: updated Changelog.md mentioning the fix * chore(release): 1.12.3-beta.4 ## [1.12.3-beta.4](v1.12.3-beta.3...v1.12.3-beta.4) (2025-05-26) ### Bug Fixes * fixed the sim pod creation issue when sim.secret.name was set ([#1184](#1184)) ([21d8b9a](21d8b9a)) * fix: schema validation external traps (#1190) * fix: missing externalTrafficPolicy in traps service * fix: update CHANGELOG * chore(release): 1.12.3-beta.5 ## [1.12.3-beta.5](v1.12.3-beta.4...v1.12.3-beta.5) (2025-05-27) ### Bug Fixes * schema validation external traps ([#1190](#1190)) ([f9fab7b](f9fab7b)) * fix: update dependencies (#1191) * chore(release): 1.12.3-beta.6 ## [1.12.3-beta.6](v1.12.3-beta.5...v1.12.3-beta.6) (2025-05-28) ### Bug Fixes * update dependencies ([#1191](#1191)) ([65615b5](65615b5)) * fix: update mibserver (#1194) * fix: update mibserver * fix: update CHANGELOG * chore(release): 1.12.3-beta.7 ## [1.12.3-beta.7](v1.12.3-beta.6...v1.12.3-beta.7) (2025-06-04) ### Bug Fixes * update mibserver ([#1194](#1194)) ([abb29eb](abb29eb)) * chore: update changelog (#1198) * chore: update changelog typo --------- Co-authored-by: Olga <86965961+omrozowicz-splunk@users.noreply.github.com> Co-authored-by: srv-rr-github-token <94607705+srv-rr-github-token@users.noreply.github.com> Co-authored-by: cwadhwani-splunk <cwadhwani@splunk.com>
1 parent f157f31 commit 385ccfa

File tree

62 files changed

+1330
-1021
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1330
-1021
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Changed
6+
7+
### Fixed
8+
9+
10+
## [1.12.3]
11+
12+
### Changed
13+
- change redis service name workers call from redis-headless to redis-master
14+
- migrate MongoDB subchart to 15.6.26
15+
- update MongoDB docker image to 7.0.14 for SC4SNMP docker installation
16+
17+
### Fixed
18+
- Ensured `.Values.secret.name` is used during secret creation to prevent mismatched secret references in deployments
19+
- lack of `externalTrafficPolicy` in `values.schema.json`
20+
- update `mibserver` to 1.15.21 to fix problems with rendering pvc in case of local mibs compilation
21+
22+
323
## [1.12.2]
424

525
### Changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
dependencies:
22
- name: mongodb
33
repository: https://charts.bitnami.com/bitnami
4-
version: 13.18.5
4+
version: 15.6.26
55
- name: redis
66
repository: https://charts.bitnami.com/bitnami
77
version: 20.2.2
88
- name: mibserver
99
repository: https://pysnmp.github.io/mibs/charts/
10-
version: 1.15.15
11-
digest: sha256:a72daee1041b9160c0faa5789f86f17e2e27e8a86f41dc2eb829a63331a5f51f
12-
generated: "2025-01-27T14:53:57.90014427Z"
10+
version: 1.15.21
11+
digest: sha256:389e85827643b1799c9a08abe987403eeb5965bd0f1567339e4975f0460c78d3
12+
generated: "2025-06-03T15:48:49.0332+02:00"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ type: application
1414
# to the chart and its templates, including the app version.
1515
# Versions are expected to follow Semantic Versioning (https://semver.org/)
1616

17-
version: 1.12.2
17+
version: 1.12.3-beta.7
1818
# This is the version number of the application being deployed. This version number should be
1919
# incremented each time you make changes to the application. Versions are not expected to
2020
# follow Semantic Versioning. They should reflect the version the application is using.
2121
# It is recommended to use it with quotes.
22-
appVersion: "1.12.2"
22+
appVersion: "1.12.3-beta.7"
2323
#
2424
dependencies:
2525
- name: mongodb
26-
version: ~13.18.0
26+
version: ~15.6.0
2727
repository: https://charts.bitnami.com/bitnami
2828
- name: redis
2929
version: ~20.2.0

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,28 @@
66
{{- end }}
77
{{- end }}
88

9+
{{- define "splunk-connect-for-snmp.mongodbHost" -}}
10+
{{- if .Values.mongodbHost }}
11+
{{- .Values.mongodbHost | quote }}
12+
{{- else }}
13+
{{- printf "%s-mongodb.%s.svc.cluster.local" .Release.Name .Release.Namespace }}
14+
{{- end }}
15+
{{- end }}
16+
917
{{- define "splunk-connect-for-snmp.celery_url" -}}
10-
{{- printf "redis://%s-redis-headless:6379/0" .Release.Name }}
18+
{{- if and ( eq .Values.redis.architecture "replication" ) .Values.redis.sentinel.enabled }}
19+
{{- printf "redis://%s-redis:6379/0" .Release.Name }}
20+
{{- else }}
21+
{{- printf "redis://%s-redis-master:6379/0" .Release.Name }}
22+
{{- end }}
1123
{{- end }}
1224

1325
{{- define "splunk-connect-for-snmp.redis_url" -}}
14-
{{- printf "redis://%s-redis-headless:6379/1" .Release.Name }}
26+
{{- if and ( eq .Values.redis.architecture "replication" ) .Values.redis.sentinel.enabled }}
27+
{{- printf "redis://%s-redis:6379/1" .Release.Name }}
28+
{{- else }}
29+
{{- printf "redis://%s-redis-master:6379/1" .Release.Name }}
30+
{{- end }}
1531
{{- end }}
1632

1733
{{/*

charts/splunk-connect-for-snmp/templates/common/sim-secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v1
33
kind: Secret
44
metadata:
5-
name: {{ include "splunk-connect-for-snmp.name" . }}-sim
5+
name: {{ include "splunk-connect-for-snmp.sim.secret" . }}
66
type: Opaque
77
data:
88
signalfxToken: {{ .Values.sim.signalfxToken | b64enc | quote }}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{{- $configMapName := printf "%s-config" (include "splunk-connect-for-snmp.name" .) }}
2+
{{- $existingRelease := (lookup "v1" "ConfigMap" .Release.Namespace $configMapName) }}
3+
{{- if $existingRelease }}
4+
apiVersion: batch/v1
5+
kind: Job
6+
metadata:
7+
name: mongo-fcv-upgrade-to-6
8+
annotations:
9+
"helm.sh/hook": pre-upgrade
10+
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
11+
spec:
12+
backoffLimit: 1
13+
ttlSecondsAfterFinished: 60
14+
template:
15+
spec:
16+
containers:
17+
- name: mongo-fcv-check
18+
image: {{ .Values.mongodb.image.repository }}:{{ .Values.mongodb.image.tag }}
19+
command:
20+
- /bin/bash
21+
- -c
22+
- |
23+
echo "Checking current mongo FCV"
24+
FCV=$(mongosh --host {{ include "splunk-connect-for-snmp.mongodbHost" . | quote }} --quiet --eval 'db.adminCommand({ getParameter: 1, featureCompatibilityVersion: 1 }).featureCompatibilityVersion.version')
25+
echo "Current Mongo Feature Compatibility Version: $FCV"
26+
27+
if [[ "$FCV" < "6.0" ]]; then
28+
echo "FCV < 6.0, setting to 6.0"
29+
mongosh --host {{ include "splunk-connect-for-snmp.mongodbHost" . | quote }} --eval 'db.adminCommand({ setFeatureCompatibilityVersion: "6.0" })'
30+
else
31+
echo "FCV >= 6.0, nothing to be changed"
32+
fi
33+
restartPolicy: Never
34+
{{- end }}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ Return full image for thr UI back end.
105105
{{- end }}
106106

107107
{{- define "splunk-connect-for-snmp-ui.celery_url" -}}
108-
{{- printf "redis://%s-redis-headless:6379/2" .Release.Name }}
108+
{{- printf "redis://%s-redis-master:6379/2" .Release.Name }}
109109
{{- end }}
110110

111111
{{- define "splunk-connect-for-snmp-ui.redis_url" -}}
112-
{{- printf "redis://%s-redis-headless:6379/3" .Release.Name }}
112+
{{- printf "redis://%s-redis-master:6379/3" .Release.Name }}
113113
{{- end }}
114114

115115
{{- define "splunk-connect-for-snmp-ui.hostMountPath" -}}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,9 @@
746746
},
747747
"nodePort": {
748748
"type": "integer"
749+
},
750+
"externalTrafficPolicy": {
751+
"type": "string"
749752
}
750753
}
751754
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ mongodb:
491491
type: Recreate
492492
initdbScripts:
493493
setFeatureCompatibilityVersion.js: |
494-
db.adminCommand({ setFeatureCompatibilityVersion: "5.0" });
494+
db.adminCommand({ setFeatureCompatibilityVersion: "6.0" });
495495
496496
## @section Global parameters
497497
## Global Docker image parameters

docker_compose/.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Deployment configuration
22
SC4SNMP_IMAGE=ghcr.io/splunk/splunk-connect-for-snmp/container
3-
SC4SNMP_TAG="1.12.2"
3+
SC4SNMP_TAG="1.12.3-beta.7"
44
SCHEDULER_CONFIG_FILE_ABSOLUTE_PATH=
55
TRAPS_CONFIG_FILE_ABSOLUTE_PATH=
66
INVENTORY_FILE_ABSOLUTE_PATH=
77
COREFILE_ABS_PATH=
8-
SC4SNMP_VERSION="1.12.2"
8+
SC4SNMP_VERSION="1.12.3-beta.7"
99

1010
# Network configuration
1111
COREDNS_ADDRESS=172.28.0.255
@@ -24,7 +24,7 @@ MIBSERVER_TAG=latest
2424
REDIS_IMAGE=docker.io/bitnami/redis
2525
REDIS_TAG=7.2.1-debian-11-r0
2626
MONGO_IMAGE=docker.io/bitnami/mongodb
27-
MONGO_TAG=6.0.9-debian-11-r5
27+
MONGO_TAG=7.0.14-debian-12-r3
2828

2929
# Splunk instance configuration
3030
SPLUNK_HEC_HOST=

0 commit comments

Comments
 (0)