[VOL-2864] Include log_level parameter in BBSIM helm chart
[VOL-2856] Supporting defaults helm-chart arguments

Change-Id: Ibb507015fb50568aa126e5742af233177a65216e
diff --git a/bbsim/templates/deployment.yaml b/bbsim/templates/deployment.yaml
index 02434d5..3a5b91a 100644
--- a/bbsim/templates/deployment.yaml
+++ b/bbsim/templates/deployment.yaml
@@ -12,6 +12,7 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+{{- $log_level := tpl .Values.log_level . }}
 
 apiVersion: extensions/v1beta1
 kind: Deployment
@@ -39,8 +40,8 @@
       serviceAccountName: {{ .Values.serviceAccountName }}
       containers:
         - name: {{ .Chart.Name }}
-          image: {{ .Values.global.registry }}{{ .Values.images.bbsim.repository }}:{{ tpl .Values.images.bbsim.tag . }}
-          imagePullPolicy: {{ .Values.images.bbsim.pullPolicy }}
+          image: '{{ tpl .Values.images.bbsim.registry . }}{{ tpl .Values.images.bbsim.repository . }}:{{ tpl ( tpl .Values.images.bbsim.tag . ) . }}'
+          imagePullPolicy: {{ tpl .Values.images.bbsim.pullPolicy . }}
           securityContext:
             privileged: true
           command: [
@@ -49,6 +50,7 @@
             "-nni", "{{ .Values.nni }}",
             "-pon", "{{ .Values.pon }}",
             "-onu", "{{ .Values.onu }}",
+            "-logLevel", "{{ $log_level }}",
             {{ if .Values.auth -}}
             "-auth",
             {{ end -}}