Skip to content

Commit

Permalink
Cleaning up Kafka config
Browse files Browse the repository at this point in the history
Cleaning up kafka config and adding kafka config for upf-adapter
  • Loading branch information
thakurajayL committed Oct 20, 2024
1 parent 49d83a2 commit 241efd1
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion 5g-control-plane/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: SD-Core 5G control plane services
name: 5g-control-plane
icon: https://guide.opencord.org/logos/cord.svg

version: 1.1.0
version: 1.1.1

dependencies:
- name: mongodb
Expand Down
2 changes: 1 addition & 1 deletion 5g-control-plane/templates/bin/_upf-adapter-run.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ cd /aether

cat config/config.yaml

GOTRACEBACK=crash ./upfadapter config/config.yaml
GOTRACEBACK=crash ./upfadapter -config config/config.yaml
5 changes: 0 additions & 5 deletions 5g-control-plane/templates/configmap-amf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
{{- $_ := .Values.config.sctplb.deploy | set $amfcfg.configuration "enableSctpLb" -}}
{{- end }}

{{- if not (hasKey $amfcfg.configuration "nfKafka") -}}
{{- $_ := .Values.kafka.nfKafka | set $amfcfg.configuration "nfKafka" -}}
{{- $_ := .Values.kafka.deploy | set $amfcfg.configuration.nfKafka "enable" -}}
{{- end }}

{{- if not (hasKey $amfcfg.configuration.kafkaInfo "enableKafka") -}}
{{- $_ := .Values.kafka.deploy | set $amfcfg.configuration.kafkaInfo "enableKafka" -}}
{{- end }}
Expand Down
4 changes: 0 additions & 4 deletions 5g-control-plane/templates/configmap-smf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
{{- if not (hasKey $smfcfg.configuration "enableUPFAdapter") -}}
{{- $_ := .Values.config.upfadapter.deploy | set $smfcfg.configuration "enableUPFAdapter" -}}
{{- end }}
{{- if not (hasKey $smfcfg.configuration "nfKafka") -}}
{{- $_ := .Values.kafka.nfKafka | set $smfcfg.configuration "nfKafka" -}}
{{- $_ := .Values.kafka.deploy | set $smfcfg.configuration.nfKafka "enable" -}}
{{- end }}
{{- if not (hasKey $smfcfg.configuration.kafkaInfo "enableKafka") -}}
{{- $_ := .Values.kafka.deploy | set $smfcfg.configuration.kafkaInfo "enableKafka" -}}
{{- end }}
Expand Down
6 changes: 6 additions & 0 deletions 5g-control-plane/templates/configmap-upf-adapter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
{{- if not (hasKey $upfadaptercfg "mongodb") -}}
{{- $_ := dict "name" .Values.config.mongodb.name "url" .Values.config.mongodb.url | set $upfadaptercfg "mongodb" -}}
{{- end }}
{{- if not (hasKey $upfadaptercfg "logger") -}}
{{- $_ := .Values.config.logger | set $upfadaptercfg "logger" -}}
{{- end }}
{{- if not (hasKey $upfadaptercfg.configuration.kafkaInfo "enableKafka") -}}
{{- $_ := .Values.kafka.deploy | set $upfadaptercfg.configuration.kafkaInfo "enableKafka" -}}
{{- end }}

{{- end }}

Expand Down
9 changes: 5 additions & 4 deletions 5g-control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ kafka:
enabled: false
persistence:
enabled: false
nfKafka:
urls:
- "kafka-headless:9092"
topic: "sdcore-nf-data-source"

mongodb:
deploy: true
Expand Down Expand Up @@ -748,3 +744,8 @@ config:
description: UPF Adapter initial local configuration
logger:
level: info
configuration:
kafkaInfo:
brokerUri: "kafka-headless"
brokerPort: 9092
topicName: "sdcore-data-source-smf"
4 changes: 2 additions & 2 deletions sdcore-helm-charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: sd-core
description: SD-Core control plane services
icon: https://guide.opencord.org/logos/cord.svg
type: application
version: 1.1.1
version: 1.1.2
home: https://opennetworking.org/sd-core/
maintainers:
- name: SD-Core Support
Expand All @@ -28,7 +28,7 @@ dependencies:
condition: omec-sub-provision.enable

- name: 5g-control-plane
version: 1.1.0
version: 1.1.1
repository: "file://../5g-control-plane"
condition: 5g-control-plane.enable5G

Expand Down

0 comments on commit 241efd1

Please sign in to comment.