charts/templates/configmap.yaml
{{ if (not .Values.general.configurationConfigMap) }}
{{- $fullName := include "backend-java-patterns.fullname" . -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ $fullName }}
namespace: {{ .Release.Namespace | quote }}
labels:
{{- include "backend-java-patterns.labels" . | nindent 4 }}
{{- if .Values.general.labels }}
{{- with .Values.general.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- if .Values.general.annotations }}
{{- with .Values.general.annotations }}
annotations:
{{- toYaml . | indent 4 }}
{{- end }}
{{- end }}
data:
DEBUG: {{ default "" .Values.configMaps.data.debug | quote }}
SERVER_PORT: {{ default "" .Values.configMaps.data.serverPort | quote }}
APP_NAME: {{ default "" .Values.configMaps.data.appName | quote }}
{{- end }}
credentials: |
#!/bin/bash
echo username=$GIT_TOKEN
echo password=""