summaryrefslogtreecommitdiffstats
path: root/jjb/so/so.yaml
blob: 50af632d6aa6446605381e052bf54c5aabe07346 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---

- project:
    name: so
    project-name: 'so'
    jobs:
      - '{project-name}-{stream}-verify-profile-java':
          mvn-profile: 'with-integration-tests'
          build-node: 'ubuntu1604-docker-8c-8g'
          archive-artifacts: 'packages/arquillian-unit-tests/target/**/*'
      - '{project-name}-{stream}-merge-profile-java':
          mvn-profile: 'with-integration-tests'
          build-node: 'ubuntu1604-docker-8c-8g'
          archive-artifacts: 'packages/arquillian-unit-tests/target/**/*'
      - '{project-name}-{stream}-release-version-profile-java-daily':
          mvn-profile: 'with-integration-tests'
          build-node: 'ubuntu1604-docker-8c-8g'
      - '{project-name}-{stream}-docker-version-java-daily':
          docker-pom: 'pom.xml'
          mvn-profile: 'docker'
      - '{project-name}-{stream}-stage-site-java':
          site-pom: 'pom.xml'
          trigger-job: '{project-name}-{stream}-release-version-java-daily'
          build-node: 'ubuntu1604-basebuild-8c-8g'

    project: 'so'
    stream:
      - 'master':
          branch: 'master'
      - 'amsterdam':
          branch: 'amsterdam'
    mvn-settings: 'so-settings'
    files: '**'
    archive-artifacts: ''
    build-node: ubuntu1604-basebuild-4c-4g
- project:
    name: so-sonar
    jobs:
      - gerrit-maven-sonar
    java-version: ''
    project: 'so'
    project-name: 'so'
    branch: 'master'
    mvn-settings: 'so-settings'
    mvn-goals: 'clean install'
    mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m'
span>}} apiVersion: apps/v1 kind: Deployment metadata: {{- include "common.resourceMetadata" . | nindent 2 }} spec: selector: {{- include "common.selectors" . | nindent 4 }} replicas: {{ .Values.replicaCount }} template: metadata: {{- include "common.templateMetadata" . | nindent 6 }} spec: initContainers: - command: ["/bin/sh", "-cx"] args: - JAASLOGIN=`echo $JAASLOGIN | tr -d '"'`; cd /config-input && for PFILE in `ls -1`; do envsubst <${PFILE} >/config/${PFILE}; done env: - name: RESTSERVER_USER {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-creds" "key" "login") | indent 10 }} - name: RESTSERVER_PASSWORD {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-creds" "key" "password") | indent 10 }} - name: JAASLOGIN valueFrom: secretKeyRef: name: {{ include "common.name" . }}-ku key: sasl.jaas.config - name: KAFKA_URL value: {{ include "common.release" . }}-{{ .Values.global.kafkaBootstrap }} - name: SASL value: {{ .Values.kafkaUser.authenticationType | upper }} - name: GROUP_ID value: {{ .Values.config.kafka.consumer.groupId }} - name: PAP_TOPIC value: {{ .Values.config.app.listener.policyPdpPapTopic }} volumeMounts: - mountPath: /config-input name: apexconfig-input - mountPath: /config name: apexconfig image: {{ include "repositoryGenerator.image.envsubst" . }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} name: {{ include "common.name" . }}-update-config containers: - name: {{ include "common.name" . }} image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} command: [ "/bin/sh", "-cx" ] args: - id apexuser; cat /home/apexuser/config/OnapPfConfig.json; /opt/app/policy/apex-pdp/bin/apexOnapPf.sh -c /home/apexuser/config/OnapPfConfig.json ports: {{ include "common.containerPorts" . | nindent 12 }} {{- 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 }} env: - name: REPLICAS value: "{{ .Values.replicaCount }}" volumeMounts: - mountPath: /etc/localtime name: localtime readOnly: true - mountPath: /var/log/onap name: policy-logs - mountPath: /home/apexuser/config name: apexconfig resources: {{ include "common.resources" . | nindent 12 }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 10 }} {{- end -}} {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | indent 10 }} {{- end }} serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: - name: localtime hostPath: path: /etc/localtime - name: policy-logs emptyDir: {} - name: apexconfig-input configMap: name: {{ include "common.fullname" . }}-configmap defaultMode: 0755 - name: apexconfig emptyDir: medium: Memory {{- include "common.imagePullSecrets" . | nindent 6 }}