From eac33de1a19fa6b5df19eba9089cbe6a4e7e2baa Mon Sep 17 00:00:00 2001
From: Valeri Fikov <valeri.fikov@vereign.com>
Date: Tue, 21 Jun 2022 14:01:33 +0300
Subject: [PATCH] initial commit

---
 templates/deployment.yaml | 14 +++++++-------
 templates/service.yaml    |  2 +-
 values.yaml               | 18 +++---------------
 3 files changed, 11 insertions(+), 23 deletions(-)

diff --git a/templates/deployment.yaml b/templates/deployment.yaml
index 4a1a5d2..7476c9b 100644
--- a/templates/deployment.yaml
+++ b/templates/deployment.yaml
@@ -41,15 +41,15 @@ spec:
           - name: LOG_ENCODING
             value: {{ .Values.log.encoding | default "json" }}
           - name: HTTP_HOST
-            value: {{ .Values.task.http.host | quote }}
+            value: {{ .Values.signer.http.host | quote }}
           - name: HTTP_PORT
-            value: {{ .Values.task.http.port | quote }}
+            value: {{ .Values.signer.http.port | quote }}
           - name: HTTP_IDLE_TIMEOUT
-            value: {{ .Values.task.http.timeout.idle | quote }}
+            value: {{ .Values.signer.http.timeout.idle | quote }}
           - name: HTTP_READ_TIMEOUT
-            value: {{ .Values.task.http.timeout.read | quote }}
+            value: {{ .Values.signer.http.timeout.read | quote }}
           - name: HTTP_WRITE_TIMEOUT
-            value: {{ .Values.task.http.timeout.write | quote }}
+            value: {{ .Values.signer.http.timeout.write | quote }}
           - name: MONGO_ADDR
             value: {{ .Values.mongo.addr | quote }}
           - name: MONGO_USER
@@ -75,11 +75,11 @@ spec:
           containerPort: {{ .Values.metrics.port }}
         {{- end }}
         - name: http
-          containerPort: {{ .Values.task.http.port }}
+          containerPort: {{ .Values.signer.http.port }}
         readinessProbe:
           httpGet:
             path: /readiness
-            port: {{ .Values.task.http.port }}
+            port: {{ .Values.signer.http.port }}
           initialDelaySeconds: 5
           periodSeconds: 5
           successThreshold: 2
diff --git a/templates/service.yaml b/templates/service.yaml
index 7a01132..980440e 100644
--- a/templates/service.yaml
+++ b/templates/service.yaml
@@ -10,6 +10,6 @@ spec:
   ports:
   - name: http
     targetPort: {{ .Values.service.port }}
-    port: {{ .Values.task.http.port }}
+    port: {{ .Values.signer.http.port }}
   selector:
     {{- include "app.selectorLabels" . | nindent 4 }}
diff --git a/values.yaml b/values.yaml
index 23c24d9..ae41ddc 100644
--- a/values.yaml
+++ b/values.yaml
@@ -1,14 +1,14 @@
 # -- Default number of instances to start 
 replicaCount: 1
 # -- Application name
-name: infohub
+name: signer
 # -- Ovverwrites application name
 nameOverride: ""
 
 image:
   repository: eu.gcr.io/vrgn-infra-prj
   # -- Image name
-  name: gaiax/infohub
+  name: gaiax/signer
   # -- Image tag
   # Uses .Chart.AppVersion if empty
   tag: ""
@@ -65,7 +65,7 @@ security:
 service:
   port: 8080
 
-task:
+signer:
   http:
     host: ""
     port: 8080
@@ -74,18 +74,6 @@ task:
       read: 10s
       write: 10s
 
-mongo:
-  addr: "mongodb://mongodb-mongodb-replicaset.infra:27017/infohub?replicaSet=rs0&authSource=admin&ssl=true"
-  user: ""
-  pass: ""
-  dbname: infohub
-
-addresses:
-  policy: http://policy:8080
-  cache: http://cache:8080
-  signer: http://signer:8080
-  issueruri: did:tsa:123
-
 ingress:
   enabled: true
   annotations:
-- 
GitLab