Skip to content

Commit

Permalink
Handle initial timing issue through init containers (#54)
Browse files Browse the repository at this point in the history
* Handle initial timing issue through init containers

Signed-off-by: Ajay Lotan Thakur <[email protected]>

* Updating sdcore helm chart version, 5g-control plane helm chart version

Signed-off-by: Ajay Lotan Thakur <[email protected]>

---------

Signed-off-by: Ajay Lotan Thakur <[email protected]>
  • Loading branch information
thakurajayL authored Sep 1, 2024
1 parent 935f7d0 commit 3ba4b7b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 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.0.11
version: 1.0.12

dependencies:
- name: mongodb
Expand Down
8 changes: 7 additions & 1 deletion 5g-control-plane/templates/deployment-amf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@ spec:
imagePullSecrets:
{{ toYaml .Values.images.pullSecrets | indent 8 }}
{{- end }}
{{- if .Values.config.coreDump.enabled }}
initContainers:
{{- if .Values.kafka.deploy }}
- name: wait-kafka-module
image: {{ .Values.images.repository }}{{ .Values.images.tags.init }}
imagePullPolicy: {{ .Values.images.pullPolicy }}
command: ['sh', '-c', 'until nslookup kafka; do echo waiting for kafka; sleep 4; done;']
{{- end }}
{{- if .Values.config.coreDump.enabled }}
{{ tuple "amf" . | include "5g-control-plane.coredump_init" | indent 6 }}
{{- end }}
containers:
Expand Down
12 changes: 7 additions & 5 deletions 5g-control-plane/templates/deployment-smf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ spec:
{{ toYaml .Values.images.pullSecrets | indent 8 }}
{{- end }}
initContainers:
- name: wait-smf-module
{{- if .Values.kafka.deploy }}
- name: wait-kafka-module
image: {{ .Values.images.repository }}{{ .Values.images.tags.init }}
imagePullPolicy: {{ .Values.images.pullPolicy }}
command: ['sh', '-c', 'until nslookup smf; do echo waiting for smf; sleep 4; done;']
{{- if .Values.config.coreDump.enabled }}
{{ tuple "smf" . | include "5g-control-plane.coredump_init" | indent 6 }}
{{- end }}
command: ['sh', '-c', 'until nslookup kafka; do echo waiting for kafka; sleep 4; done;']
{{- end }}
{{- if .Values.config.coreDump.enabled }}
{{ tuple "smf" . | include "5g-control-plane.coredump_init" | indent 6 }}
{{- end }}
containers:
- name: smf
image: {{ .Values.images.repository }}{{ .Values.images.tags.smf }}
Expand Down
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.0.16
version: 1.0.17
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.0.11
version: 1.0.12
repository: "file://../5g-control-plane"
condition: 5g-control-plane.enable5G

Expand Down

0 comments on commit 3ba4b7b

Please sign in to comment.