[CORD-2909] Flatten and parameterize charts
Change-Id: I695c1df063b0f6f6ccf280254d54cc701292348f
diff --git a/xos-core/templates/core-configmap.yaml b/xos-core/templates/core-configmap.yaml
index 20fd143..b9d1e7d 100644
--- a/xos-core/templates/core-configmap.yaml
+++ b/xos-core/templates/core-configmap.yaml
@@ -1,3 +1,4 @@
+---
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -20,4 +21,31 @@
{{- include "xos-core.release_labels" . | indent 4 }}
data:
config: |
-{{ toYaml .Values.configs.core_config | indent 4 }}
+{{ include "xos-core.config" . | indent 4 }}
+
+...
+---
+
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: xos-initial-data
+ labels:
+ {{- include "xos-core.release_labels" . | indent 4 }}
+data:
+ config: |
+{{ include "xos-core.initial_data" . | indent 4 }}
+
+...
+---
+
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: ca-certificates
+ labels:
+ {{- include "xos-core.release_labels" . | indent 4 }}
+data:
+ chain: |
+{{ include "xos-core.ca_cert_chain" . | indent 4 }}
+