diff --git a/charts/scribe/Chart.yaml b/charts/scribe/Chart.yaml index 81ec065..e287248 100644 --- a/charts/scribe/Chart.yaml +++ b/charts/scribe/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 +version: 0.2.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/scribe/templates/deployment.yaml b/charts/scribe/templates/deployment.yaml index 72fb473..2938397 100644 --- a/charts/scribe/templates/deployment.yaml +++ b/charts/scribe/templates/deployment.yaml @@ -42,7 +42,18 @@ spec: value: "{{ .Values.secrets.mockDb }}" - name: MONGODB_SECRET_NAME value: "{{ .Values.secrets.secretName }}" - + {{- if .Values.secrets.kafkaAuth.enabled }} + - name: KAFKA_USERNAME + valueFrom: + secretKeyRef: + name: kafka-auth + key: username + - name: KAFKA_PASSWORD + valueFrom: + secretKeyRef: + name: kafka-auth + key: password + {{- end }} {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} diff --git a/charts/scribe/templates/secrets.yaml b/charts/scribe/templates/secrets.yaml new file mode 100644 index 0000000..12471ab --- /dev/null +++ b/charts/scribe/templates/secrets.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: Secret +metadata: + name: kafka-auth + namespace: {{ .Values.namespace }} +stringData: + username: {{ .Values.secrets.kafkaAuth.username }} + password: {{ .Values.secrets.kafkaAuth.password }} \ No newline at end of file diff --git a/charts/scribe/values.yaml b/charts/scribe/values.yaml index 2d43cad..210ed9d 100644 --- a/charts/scribe/values.yaml +++ b/charts/scribe/values.yaml @@ -54,3 +54,7 @@ secrets: mockDb: "True" #secretName: name of the secret stored in AWS Secret Manager containing MongoDB credentials secretName: "" + kafkaAuth: + enabled: false + username: "" + password: ""