# Copyright © 2017 Amdocs, Bell Canada
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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.

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: {{ include "common.fullname" . }}
  namespace: {{ include "common.namespace" . }}
  labels:
    app: {{ include "common.name" . }}
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  replicas: {{ .Values.replicaCount }}
  selector:
    matchLabels:
      app: {{ include "common.name" . }}
  template:
    metadata:
      labels:
        app: {{ include "common.name" . }}
        release: {{ .Release.Name }}
      name: {{ include "common.name" . }}
    spec:
      containers:
      - name: {{ include "common.name" . }}
        image: "{{ include "common.repository" . }}/{{ .Values.image }}"
        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
        env:
        - name: CONFIG_HOME
          value: /opt/app/sparky/appconfig/
        - name: KEYSTORE_ALIAS_PASSWORD
          value: {{ .Values.config.keystoreAliasPassword }}
        - name: KEYSTORE_PASSWORD
          value: {{ .Values.config.keyStorePassword }}
        - name: SPARKY_SSL_ENABLED
          value: 'false'
        - name: SPARKY_PORTAL_ENABLED
          value: 'false'
        volumeMounts:
        - mountPath: /etc/localtime
          name: localtime
          readOnly: true
        - mountPath: /opt/app/sparky/appconfig/auth/
          name: {{ include "common.fullname" . }}-auth-config
        - mountPath: /opt/app/sparky/appconfig/camel-rests/
          name: {{ include "common.fullname" . }}-camel-rests-config
        - mountPath: /opt/app/sparky/appconfig/descriptors/
          name: {{ include "common.fullname" . }}-descriptors-config
        - mountPath: /opt/app/sparky/appconfig/filters/
          name: {{ include "common.fullname" . }}-filters-config
        - mountPath: /opt/app/sparky/appconfig/
          name: {{ include "common.fullname" . }}-config
        - mountPath: /opt/app/sparky/appconfig/portal
          name: {{ include "common.fullname" . }}-portal-config
        - mountPath: /opt/app/sparky/appconfig/portal/BOOT-INF/classes
          name: {{ include "common.fullname" . }}-portal-boot-inf-config
        - mountPath: /opt/app/sparky/appconfig/schemas
          name: {{ include "common.fullname" . }}-schemas-config
        - mountPath: /opt/app/sparky/appconfig/spring-beans/
          name: {{ include "common.fullname" . }}-spring-beans-config
        - mountPath: /var/log/onap
          name: {{ include "common.fullname" . }}-logs
        - mountPath: /opt/app/sparky/appconfig/logging/
          name: {{ include "common.fullname" . }}-log-conf
        ports:
        - containerPort: {{ .Values.service.internalPort }}
        - containerPort: {{ .Values.service.internalPort2 }}
        # disable liveness probe when breakpoints set in debugger
        # so K8s doesn't restart unresponsive container
        {{- if eq .Values.liveness.enabled true }}
        livenessProbe:
          tcpSocket:
            port: {{ .Values.service.internalPort }}
          initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
          periodSeconds: {{ .Values.liveness.periodSeconds }}
        {{ end -}}
        readinessProbe:
          tcpSocket:
            port: {{ .Values.service.internalPort }}
          initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
          periodSeconds: {{ .Values.readiness.periodSeconds }}
        resources:
{{ toYaml .Values.resources | indent 10 }}
      {{- if .Values.nodeSelector }}
      nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
      {{- end -}}
      {{- if .Values.affinity }}
      affinity:
{{ toYaml .Values.affinity | indent 8 }}
      {{- end }}

      # side car containers
      - name: filebeat-onap
        image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
        volumeMounts:
        - mountPath: /usr/share/filebeat/filebeat.yml
          subPath: filebeat.yml
          name: filebeat-conf
        - mountPath: /var/log/onap
          name: {{ include "common.fullname" . }}-logs
        - mountPath: /usr/share/filebeat/data
          name: aai-sparky-filebeat

      volumes:
      - name: localtime
        hostPath:
          path: /etc/localtime
      - name: {{ include "common.fullname" . }}-config
        configMap:
          name: {{ include "common.fullname" . }}
      - name: {{ include "common.fullname" . }}-auth-config
        secret:
          secretName: {{ include "common.fullname" . }}
      - name: {{ include "common.fullname" . }}-camel-rests-config
        configMap:
          name: {{ include "common.fullname" . }}-camel-rests
      - name: {{ include "common.fullname" . }}-descriptors-config
        configMap:
          name: {{ include "common.fullname" . }}-descriptors
      - name: {{ include "common.fullname" . }}-filters-config
        configMap:
          name: {{ include "common.fullname" . }}-filters
      - name: {{ include "common.fullname" . }}-portal-config
        configMap:
          name: {{ include "common.fullname" . }}-portal
      - name: {{ include "common.fullname" . }}-portal-boot-inf-config
        configMap:
          name: {{ include "common.fullname" . }}-boot-inf
      - name: {{ include "common.fullname" . }}-schemas-config
        configMap:
          name: {{ include "common.fullname" . }}-schemas
      - name: {{ include "common.fullname" . }}-spring-beans-config
        configMap:
          name: {{ include "common.fullname" . }}-spring-beans
      - name: filebeat-conf
        configMap:
          name: aai-filebeat
      - name: {{ include "common.fullname" . }}-logs
        emptyDir: {}
      - name: aai-sparky-filebeat
        emptyDir: {}
      - name: {{ include "common.fullname" . }}-log-conf
        configMap:
          name: {{ include "common.fullname" . }}-log
      restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
      imagePullSecrets:
      - name: "{{ include "common.namespace" . }}-docker-registry-key"
