#============LICENSE_START========================================================
# ================================================================================
# Copyright (c) 2021 Nokia. All rights reserved.
+# Modifications Copyright © 2023 Nordix Foundation.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
{{ end }}
env:
- name: SDC_ADDRESS
- value: {{ .Values.externalServices.sdc_be_https }}
+ value: sdc-be.{{include "common.namespace" .}}:8080
- name: SCHEMA_MAP_PATH
value: {{ .Values.schemaMap.directory }}/{{ .Values.schemaMap.filename }}
- - name: SECURITY_PROTOCOL
- value: {{ .Values.config.kafka.securityProtocol }}
- - name: SASL_MECHANISM
- value: {{ .Values.config.kafka.saslMechanism }}
- name: SASL_JAAS_CONFIG
- {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "ves-openapi-kafka-secret" "key" "sasl.jaas.config") | indent 12 }}
+ valueFrom:
+ secretKeyRef:
+ name: {{ include "common.name" . }}-ku
+ key: sasl.jaas.config
volumeMounts:
- name: schema-map
mountPath: {{ .Values.schemaMap.directory }}
+ - name: app-config
+ mountPath: /app/config/
serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes:
- name: schema-map
items:
- key: {{ .Values.schemaMap.filename }}
path: {{ .Values.schemaMap.filename }}
- imagePullSecrets:
- - name: "{{ include "common.namespace" . }}-docker-registry-key"
\ No newline at end of file
+ - name: app-config
+ configMap:
+ name: {{ include "common.fullname" . }}-application-config-configmap
+ defaultMode: 420
+ optional: true
+ {{- include "common.imagePullSecrets" . | nindent 6 }}