Conform to helm standards 01/39801/4
authorDaniel Silverthorn <daniel.silverthorn@amdocs.com>
Wed, 28 Mar 2018 19:18:19 +0000 (19:18 +0000)
committerDaniel Silverthorn <daniel.silverthorn@amdocs.com>
Tue, 3 Apr 2018 13:43:53 +0000 (13:43 +0000)
Change-Id: I6cda4dbc168ae6cb110deca5596e5d96f517e7fe
Issue-ID: OOM-790
Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>
31 files changed:
kubernetes/aai/charts/aai-champ/Chart.yaml [moved from kubernetes/aai/charts/champ/Chart.yaml with 91% similarity]
kubernetes/aai/charts/aai-champ/requirements.yaml [moved from kubernetes/aai/charts/champ/requirements.yaml with 100% similarity]
kubernetes/aai/charts/aai-champ/resources/config/appconfig/auth/champ_policy.json [moved from kubernetes/aai/charts/champ/resources/config/appconfig/auth/champ_policy.json with 100% similarity]
kubernetes/aai/charts/aai-champ/resources/config/appconfig/auth/tomcat_keystore [moved from kubernetes/aai/charts/champ/resources/config/appconfig/auth/tomcat_keystore with 100% similarity]
kubernetes/aai/charts/aai-champ/resources/config/appconfig/champ-api.properties [moved from kubernetes/aai/charts/champ/resources/config/appconfig/champ-api.properties with 100% similarity]
kubernetes/aai/charts/aai-champ/resources/config/dynamic/conf/champ-beans.xml [moved from kubernetes/aai/charts/champ/resources/config/dynamic/conf/champ-beans.xml with 97% similarity]
kubernetes/aai/charts/aai-champ/templates/configmap.yaml [moved from kubernetes/aai/charts/champ/templates/configmap.yaml with 89% similarity]
kubernetes/aai/charts/aai-champ/templates/deployment.yaml [moved from kubernetes/aai/charts/champ/templates/deployment.yaml with 87% similarity]
kubernetes/aai/charts/aai-champ/templates/secrets.yaml [moved from kubernetes/aai/charts/champ/templates/secrets.yaml with 58% similarity]
kubernetes/aai/charts/aai-champ/templates/service.yaml [moved from kubernetes/aai/charts/champ/templates/service.yaml with 100% similarity]
kubernetes/aai/charts/aai-champ/values.yaml [moved from kubernetes/aai/charts/champ/values.yaml with 88% similarity]
kubernetes/aai/charts/aai-gizmo/.helmignore [moved from kubernetes/aai/charts/gizmo/.helmignore with 100% similarity]
kubernetes/aai/charts/aai-gizmo/Chart.yaml [moved from kubernetes/aai/charts/gizmo/Chart.yaml with 95% similarity]
kubernetes/aai/charts/aai-gizmo/resources/config/README.txt [moved from kubernetes/aai/charts/gizmo/resources/config/README.txt with 100% similarity]
kubernetes/aai/charts/aai-gizmo/resources/config/auth/champ-cert.p12 [moved from kubernetes/aai/charts/gizmo/resources/config/auth/champ-cert.p12 with 100% similarity]
kubernetes/aai/charts/aai-gizmo/resources/config/auth/crud_policy.json [moved from kubernetes/aai/charts/gizmo/resources/config/auth/crud_policy.json with 100% similarity]
kubernetes/aai/charts/aai-gizmo/resources/config/auth/datarouter-cert.p12 [moved from kubernetes/aai/charts/gizmo/resources/config/auth/datarouter-cert.p12 with 100% similarity]
kubernetes/aai/charts/aai-gizmo/resources/config/auth/tomcat_keystore [moved from kubernetes/aai/charts/gizmo/resources/config/auth/tomcat_keystore with 100% similarity]
kubernetes/aai/charts/aai-gizmo/resources/config/crud-api.properties [moved from kubernetes/aai/charts/gizmo/resources/config/crud-api.properties with 100% similarity]
kubernetes/aai/charts/aai-gizmo/resources/config/crud-beans.xml [moved from kubernetes/aai/charts/gizmo/resources/config/crud-beans.xml with 95% similarity]
kubernetes/aai/charts/aai-gizmo/resources/config/log/filebeat/filebeat.yml [moved from kubernetes/aai/charts/gizmo/resources/config/log/filebeat/filebeat.yml with 100% similarity]
kubernetes/aai/charts/aai-gizmo/resources/config/log/logback.xml [moved from kubernetes/aai/charts/gizmo/resources/config/log/logback.xml with 100% similarity]
kubernetes/aai/charts/aai-gizmo/resources/config/model/edge_properties_v11.json [moved from kubernetes/aai/charts/gizmo/resources/config/model/edge_properties_v11.json with 100% similarity]
kubernetes/aai/charts/aai-gizmo/resources/config/model/edge_properties_v12.json [moved from kubernetes/aai/charts/gizmo/resources/config/model/edge_properties_v12.json with 100% similarity]
kubernetes/aai/charts/aai-gizmo/resources/config/model/edge_properties_v13.json [moved from kubernetes/aai/charts/gizmo/resources/config/model/edge_properties_v13.json with 100% similarity]
kubernetes/aai/charts/aai-gizmo/templates/NOTES.txt [moved from kubernetes/aai/charts/gizmo/templates/NOTES.txt with 100% similarity]
kubernetes/aai/charts/aai-gizmo/templates/configmap.yaml [moved from kubernetes/aai/charts/gizmo/templates/configmap.yaml with 100% similarity]
kubernetes/aai/charts/aai-gizmo/templates/deployment.yaml [moved from kubernetes/aai/charts/gizmo/templates/deployment.yaml with 100% similarity]
kubernetes/aai/charts/aai-gizmo/templates/secrets.yaml [moved from kubernetes/aai/charts/gizmo/templates/secrets.yaml with 100% similarity]
kubernetes/aai/charts/aai-gizmo/templates/service.yaml [moved from kubernetes/aai/charts/gizmo/templates/service.yaml with 100% similarity]
kubernetes/aai/charts/aai-gizmo/values.yaml [moved from kubernetes/aai/charts/gizmo/values.yaml with 100% similarity]

similarity index 91%
rename from kubernetes/aai/charts/champ/Chart.yaml
rename to kubernetes/aai/charts/aai-champ/Chart.yaml
index a4ee888..1704337 100644 (file)
@@ -13,6 +13,6 @@
 # limitations under the License.
 
 apiVersion: v1
-description: Champ microservice
-name: champ
+description: ONAP AAI Champ microservice
+name: aai-champ
 version: 2.0.0
@@ -23,7 +23,7 @@ xsi:schemaLocation="
 
         <entry key="graph.name" value="aaigraph.dev"/>
         <entry key="storage.backend" value="hbase"/>
-        <entry key="storage.hostname" value="hbase.{{.Release.Namespace}}"/>
+        <entry key="storage.hostname" value="aai-hbase.{{.Release.Namespace}}"/>
 
         <!-- Hbase Config -->
         <entry key="storage.hbase.ext.hbase.zookeeper.property.clientPort" value="2181"/>
@@ -15,7 +15,7 @@
 apiVersion: v1
 kind: ConfigMap
 metadata:
-  name: {{ include "common.fullname" . }}-configmap
+  name: {{ include "common.fullname" . }}
   namespace: {{ include "common.namespace" . }}
 data:
 {{ tpl (.Files.Glob "resources/config/appconfig/*").AsConfig . | indent 2 }}
@@ -23,7 +23,7 @@ data:
 apiVersion: v1
 kind: ConfigMap
 metadata:
-  name: {{ include "common.fullname" . }}-dynamic-configmap
+  name: {{ include "common.fullname" . }}-dynamic
   namespace: {{ include "common.namespace" . }}
 data:
 {{ tpl (.Files.Glob "resources/config/dynamic/conf/*").AsConfig . | indent 2 }}
@@ -55,6 +55,16 @@ spec:
               value: "/opt/app/champ-service/appconfig"
             - name: GRAPHIMPL
               value: "janus-deps"
+            - name: KEY_STORE_PASSWORD
+              valueFrom:
+                secretKeyRef:
+                  name: {{ template "common.fullname" . }}-pass
+                  key: KEY_STORE_PASSWORD
+            - name: KEY_MANAGER_PASSWORD
+              valueFrom:
+                secretKeyRef:
+                  name: {{ template "common.fullname" . }}-pass
+                  key: KEY_MANAGER_PASSWORD
             - name: SERVICE_BEANS
               value: "/opt/app/champ-service/dynamic/conf"
           volumeMounts:
@@ -88,16 +98,16 @@ spec:
             path: /etc/localtime
         - name: {{ include "common.fullname" . }}-config
           configMap:
-            name: {{ include "common.fullname" . }}-configmap
+            name: {{ include "common.fullname" . }}
             items:
             - key: champ-api.properties
               path: champ-api.properties
         - name: {{ include "common.fullname" . }}-secrets
           secret:
-            secretName: {{ include "common.fullname" . }}-champ-secrets
+            secretName: {{ include "common.fullname" . }}-champ
         - name: {{ include "common.fullname" . }}-dynamic-config
           configMap:
-            name: {{ include "common.fullname" . }}-dynamic-configmap
+            name: {{ include "common.fullname" . }}-dynamic
             items:
             - key: champ-beans.xml
               path: champ-beans.xml
 apiVersion: v1
 kind: Secret
 metadata:
-  name: {{ include "common.fullname" . }}-champ-secrets
+  name: {{ include "common.fullname" . }}-champ
   namespace: {{ include "common.namespace" . }}
 type: Opaque
 data:
 {{ tpl (.Files.Glob "resources/config/appconfig/auth/*").AsSecrets . | indent 2 }}
+---
+apiVersion: v1
+kind: Secret
+metadata:
+  name: {{ include "common.fullname" . }}-pass
+  namespace: {{ include "common.namespace" . }}
+  labels:
+    app: {{ include "common.name" . }}
+    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+    release: {{ .Release.Name }}
+    heritage: {{ .Release.Service }}
+type: Opaque
+data:
+  KEY_STORE_PASSWORD: {{ .Values.config.keyStorePassword | b64enc | quote }}
+  KEY_MANAGER_PASSWORD: {{ .Values.config.keyManagerPassword | b64enc | quote }}
+
similarity index 88%
rename from kubernetes/aai/charts/champ/values.yaml
rename to kubernetes/aai/charts/aai-champ/values.yaml
index 91a1e52..d5d9b39 100644 (file)
@@ -24,7 +24,12 @@ global:
 #################################################################
 
 # application image
-image: onap/champ:1.2.0
+image: onap/champ:1.2-STAGING-latest
+
+# application configuration
+config:
+  keyStorePassword: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
+  keyManagerPassword: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
 
 # default number of instances
 replicaCount: 1
@@ -48,7 +53,6 @@ readiness:
 service:
   type: NodePort
   name: champ
-  externalPort: 78
   internalPort: 9522
   nodePort: 78
 
similarity index 95%
rename from kubernetes/aai/charts/gizmo/Chart.yaml
rename to kubernetes/aai/charts/aai-gizmo/Chart.yaml
index 4633b06..86f3643 100644 (file)
@@ -14,5 +14,5 @@
 
 apiVersion: v1
 description: Gizmo service
-name: gizmo
-version: 2.0.0
\ No newline at end of file
+name: aai-gizmo
+version: 2.0.0
@@ -9,7 +9,7 @@
                 ">
 
      <bean id="champDao" class="org.onap.crud.dao.champ.ChampDao">
-         <constructor-arg name="champUrl" value="https://{{.Release.Name}}-champ.{{.Release.Namespace}}:9522/services/champ-service/v1/"/>
+         <constructor-arg name="champUrl" value="https://{{.Release.Name}}-aai-champ.{{.Release.Namespace}}:9522/services/champ-service/v1/"/>
          <constructor-arg name="certPassword" value="OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10"/>
      </bean>
 
@@ -32,4 +32,4 @@
          <constructor-arg name="graphDataService" ref="graphDataService" />
      </bean>
 
-</beans>
\ No newline at end of file
+</beans>