[VOL-2778] Supporting required configuration for BBSim v1.0.0-dev
Change-Id: I26300dd3fb3a4b89bc09736760599c5bcff0d164
diff --git a/bbsim/templates/deployment.yaml b/bbsim/templates/deployment.yaml
index a908207..6c02543 100644
--- a/bbsim/templates/deployment.yaml
+++ b/bbsim/templates/deployment.yaml
@@ -60,20 +60,8 @@
"-pon", "{{ .Values.pon }}",
"-onu", "{{ .Values.onu }}",
"-logLevel", "{{ $log_level }}",
- {{ if .Values.auth -}}
- "-auth",
- {{ end -}}
- {{ if .Values.dhcp -}}
- "-dhcp",
- {{ end -}}
- {{ if .Values.igmp -}}
- "-igmp",
- {{ end -}}
- "-c_tag", "{{ .Values.c_tag }}",
- "-c_tag_allocation", "{{ .Values.c_tag_allocation }}",
- "-s_tag", "{{ .Values.s_tag }}",
- "-s_tag_allocation", "{{ .Values.s_tag_allocation }}",
"-delay", "{{ .Values.delay }}",
+ "-services", "configs/services.yaml",
{{ if .Values.enableEvents -}}
"-enableEvents",
"-kafkaAddress", "{{ .Values.kafkaAddress }}",
@@ -81,7 +69,6 @@
{{ if .Values.enablePerf -}}
"-enableperf",
{{ end -}}
- "-sadisFormat", "{{ .Values.sadisFormat }}",
"-kafkaEventTopic", "{{ .Values.kafkaEventTopic }}",
{{ if .Values.authRetry -}}
"-authRetry",
@@ -111,6 +98,17 @@
fieldPath: metadata.namespace
resources:
{{ toYaml .Values.resources | indent 12 }}
+ volumeMounts:
+ - name: bbsim-services-config
+ mountPath: /app/configs/services.yaml
+ subPath: services.yaml
+ volumes:
+ - name: bbsim-services-config
+ configMap:
+ name: bbsim-services-{{ .Values.olt_id }}
+ items:
+ - key: bbsimServicesConfig
+ path: services.yaml
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}