[AAF SMS] Use certInitializer for certificates 38/109038/2
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 5 Jun 2020 13:19:22 +0000 (15:19 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Thu, 11 Jun 2020 12:43:40 +0000 (12:43 +0000)
AAF SMS was hardcoding its certificates in the container.
This patch makes use of certInitializer in order to retrieve "fresh"
certificates.
In order to use certInitiliazer in a sub component, we had to move
charts to component and add the right requirements.

Issue-ID: AAF-1159
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I6ec55eddffd54dd56b03cea1a6f0b437f8bfa299
(cherry picked from commit 0de302ad6212185c842ce7232319e19d994dd520)

138 files changed:
docs/oom_hardcoded_certificates.rst
kubernetes/aaf/Makefile [new file with mode: 0644]
kubernetes/aaf/components/Makefile [new file with mode: 0644]
kubernetes/aaf/components/aaf-cass/.helmignore [moved from kubernetes/aaf/charts/aaf-cass/.helmignore with 100% similarity]
kubernetes/aaf/components/aaf-cass/Chart.yaml [moved from kubernetes/aaf/charts/aaf-cass/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-cass/requirements.yaml [new file with mode: 0644]
kubernetes/aaf/components/aaf-cass/templates/NOTES.txt [moved from kubernetes/aaf/charts/aaf-cass/templates/NOTES.txt with 100% similarity]
kubernetes/aaf/components/aaf-cass/templates/deployment.yaml [moved from kubernetes/aaf/charts/aaf-cass/templates/deployment.yaml with 100% similarity]
kubernetes/aaf/components/aaf-cass/templates/pv.yaml [moved from kubernetes/aaf/charts/aaf-cass/templates/pv.yaml with 100% similarity]
kubernetes/aaf/components/aaf-cass/templates/pvc.yaml [moved from kubernetes/aaf/charts/aaf-cass/templates/pvc.yaml with 100% similarity]
kubernetes/aaf/components/aaf-cass/templates/service.yaml [moved from kubernetes/aaf/charts/aaf-cass/templates/service.yaml with 100% similarity]
kubernetes/aaf/components/aaf-cass/values.yaml [moved from kubernetes/aaf/charts/aaf-cass/values.yaml with 78% similarity]
kubernetes/aaf/components/aaf-cert-service/.helmignore [moved from kubernetes/aaf/charts/aaf-cert-service/.helmignore with 100% similarity]
kubernetes/aaf/components/aaf-cert-service/Chart.yaml [moved from kubernetes/aaf/charts/aaf-cert-service/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-cert-service/requirements.yaml [new file with mode: 0644]
kubernetes/aaf/components/aaf-cert-service/resources/certServiceClient-keystore.jks [moved from kubernetes/aaf/charts/aaf-cert-service/resources/certServiceClient-keystore.jks with 100% similarity]
kubernetes/aaf/components/aaf-cert-service/resources/certServiceServer-keystore.jks [moved from kubernetes/aaf/charts/aaf-cert-service/resources/certServiceServer-keystore.jks with 100% similarity]
kubernetes/aaf/components/aaf-cert-service/resources/certServiceServer-keystore.p12 [moved from kubernetes/aaf/charts/aaf-cert-service/resources/certServiceServer-keystore.p12 with 100% similarity]
kubernetes/aaf/components/aaf-cert-service/resources/default/cmpServers.json [moved from kubernetes/aaf/charts/aaf-cert-service/resources/default/cmpServers.json with 100% similarity]
kubernetes/aaf/components/aaf-cert-service/resources/root.crt [moved from kubernetes/aaf/charts/aaf-cert-service/resources/root.crt with 100% similarity]
kubernetes/aaf/components/aaf-cert-service/resources/test/cmpServers.json [moved from kubernetes/aaf/charts/aaf-cert-service/resources/test/cmpServers.json with 100% similarity]
kubernetes/aaf/components/aaf-cert-service/resources/truststore.jks [moved from kubernetes/aaf/charts/aaf-cert-service/resources/truststore.jks with 100% similarity]
kubernetes/aaf/components/aaf-cert-service/templates/deployment.yaml [moved from kubernetes/aaf/charts/aaf-cert-service/templates/deployment.yaml with 100% similarity]
kubernetes/aaf/components/aaf-cert-service/templates/secret.yaml [moved from kubernetes/aaf/charts/aaf-cert-service/templates/secret.yaml with 100% similarity]
kubernetes/aaf/components/aaf-cert-service/templates/service.yaml [moved from kubernetes/aaf/charts/aaf-cert-service/templates/service.yaml with 100% similarity]
kubernetes/aaf/components/aaf-cert-service/values.yaml [moved from kubernetes/aaf/charts/aaf-cert-service/values.yaml with 87% similarity]
kubernetes/aaf/components/aaf-cm/.helmignore [moved from kubernetes/aaf/charts/aaf-cm/.helmignore with 100% similarity]
kubernetes/aaf/components/aaf-cm/Chart.yaml [moved from kubernetes/aaf/charts/aaf-cm/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-cm/requirements.yaml [new file with mode: 0644]
kubernetes/aaf/components/aaf-cm/templates/NOTES.txt [moved from kubernetes/aaf/charts/aaf-cm/templates/NOTES.txt with 100% similarity]
kubernetes/aaf/components/aaf-cm/templates/deployment.yaml [moved from kubernetes/aaf/charts/aaf-cm/templates/deployment.yaml with 100% similarity]
kubernetes/aaf/components/aaf-cm/templates/ingress.yaml [moved from kubernetes/aaf/charts/aaf-cm/templates/ingress.yaml with 100% similarity]
kubernetes/aaf/components/aaf-cm/templates/service.yaml [moved from kubernetes/aaf/charts/aaf-cm/templates/service.yaml with 100% similarity]
kubernetes/aaf/components/aaf-cm/values.yaml [moved from kubernetes/aaf/charts/aaf-cm/values.yaml with 72% similarity]
kubernetes/aaf/components/aaf-fs/.helmignore [moved from kubernetes/aaf/charts/aaf-fs/.helmignore with 100% similarity]
kubernetes/aaf/components/aaf-fs/Chart.yaml [moved from kubernetes/aaf/charts/aaf-fs/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-fs/requirements.yaml [new file with mode: 0644]
kubernetes/aaf/components/aaf-fs/templates/NOTES.txt [moved from kubernetes/aaf/charts/aaf-fs/templates/NOTES.txt with 100% similarity]
kubernetes/aaf/components/aaf-fs/templates/deployment.yaml [moved from kubernetes/aaf/charts/aaf-fs/templates/deployment.yaml with 100% similarity]
kubernetes/aaf/components/aaf-fs/templates/ingress.yaml [moved from kubernetes/aaf/charts/aaf-fs/templates/ingress.yaml with 100% similarity]
kubernetes/aaf/components/aaf-fs/templates/service.yaml [moved from kubernetes/aaf/charts/aaf-fs/templates/service.yaml with 100% similarity]
kubernetes/aaf/components/aaf-fs/values.yaml [moved from kubernetes/aaf/charts/aaf-fs/values.yaml with 74% similarity]
kubernetes/aaf/components/aaf-gui/.helmignore [moved from kubernetes/aaf/charts/aaf-gui/.helmignore with 100% similarity]
kubernetes/aaf/components/aaf-gui/Chart.yaml [moved from kubernetes/aaf/charts/aaf-gui/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-gui/requirements.yaml [new file with mode: 0644]
kubernetes/aaf/components/aaf-gui/templates/NOTES.txt [moved from kubernetes/aaf/charts/aaf-gui/templates/NOTES.txt with 100% similarity]
kubernetes/aaf/components/aaf-gui/templates/deployment.yaml [moved from kubernetes/aaf/charts/aaf-gui/templates/deployment.yaml with 100% similarity]
kubernetes/aaf/components/aaf-gui/templates/ingress.yaml [moved from kubernetes/aaf/charts/aaf-gui/templates/ingress.yaml with 100% similarity]
kubernetes/aaf/components/aaf-gui/templates/service.yaml [moved from kubernetes/aaf/charts/aaf-gui/templates/service.yaml with 100% similarity]
kubernetes/aaf/components/aaf-gui/values.yaml [moved from kubernetes/aaf/charts/aaf-gui/values.yaml with 73% similarity]
kubernetes/aaf/components/aaf-hello/.helmignore [moved from kubernetes/aaf/charts/aaf-hello/.helmignore with 100% similarity]
kubernetes/aaf/components/aaf-hello/Chart.yaml [moved from kubernetes/aaf/charts/aaf-hello/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-hello/requirements.yaml [new file with mode: 0644]
kubernetes/aaf/components/aaf-hello/templates/NOTES.txt [moved from kubernetes/aaf/charts/aaf-hello/templates/NOTES.txt with 100% similarity]
kubernetes/aaf/components/aaf-hello/templates/deployment.yaml [moved from kubernetes/aaf/charts/aaf-hello/templates/deployment.yaml with 100% similarity]
kubernetes/aaf/components/aaf-hello/templates/ingress.yaml [moved from kubernetes/aaf/charts/aaf-hello/templates/ingress.yaml with 100% similarity]
kubernetes/aaf/components/aaf-hello/templates/secret.yaml [moved from kubernetes/aaf/charts/aaf-hello/templates/secret.yaml with 100% similarity]
kubernetes/aaf/components/aaf-hello/templates/service.yaml [moved from kubernetes/aaf/charts/aaf-hello/templates/service.yaml with 100% similarity]
kubernetes/aaf/components/aaf-hello/values.yaml [moved from kubernetes/aaf/charts/aaf-hello/values.yaml with 100% similarity]
kubernetes/aaf/components/aaf-locate/.helmignore [moved from kubernetes/aaf/charts/aaf-locate/.helmignore with 100% similarity]
kubernetes/aaf/components/aaf-locate/Chart.yaml [moved from kubernetes/aaf/charts/aaf-locate/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-locate/requirements.yaml [new file with mode: 0644]
kubernetes/aaf/components/aaf-locate/templates/NOTES.txt [moved from kubernetes/aaf/charts/aaf-locate/templates/NOTES.txt with 100% similarity]
kubernetes/aaf/components/aaf-locate/templates/deployment.yaml [moved from kubernetes/aaf/charts/aaf-locate/templates/deployment.yaml with 100% similarity]
kubernetes/aaf/components/aaf-locate/templates/ingress.yaml [moved from kubernetes/aaf/charts/aaf-locate/templates/ingress.yaml with 100% similarity]
kubernetes/aaf/components/aaf-locate/templates/service.yaml [moved from kubernetes/aaf/charts/aaf-locate/templates/service.yaml with 100% similarity]
kubernetes/aaf/components/aaf-locate/values.yaml [moved from kubernetes/aaf/charts/aaf-locate/values.yaml with 72% similarity]
kubernetes/aaf/components/aaf-oauth/.helmignore [moved from kubernetes/aaf/charts/aaf-oauth/.helmignore with 100% similarity]
kubernetes/aaf/components/aaf-oauth/Chart.yaml [moved from kubernetes/aaf/charts/aaf-oauth/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-oauth/requirements.yaml [new file with mode: 0644]
kubernetes/aaf/components/aaf-oauth/templates/NOTES.txt [moved from kubernetes/aaf/charts/aaf-oauth/templates/NOTES.txt with 100% similarity]
kubernetes/aaf/components/aaf-oauth/templates/deployment.yaml [moved from kubernetes/aaf/charts/aaf-oauth/templates/deployment.yaml with 100% similarity]
kubernetes/aaf/components/aaf-oauth/templates/ingress.yaml [moved from kubernetes/aaf/charts/aaf-oauth/templates/ingress.yaml with 100% similarity]
kubernetes/aaf/components/aaf-oauth/templates/service.yaml [moved from kubernetes/aaf/charts/aaf-oauth/templates/service.yaml with 100% similarity]
kubernetes/aaf/components/aaf-oauth/values.yaml [moved from kubernetes/aaf/charts/aaf-oauth/values.yaml with 73% similarity]
kubernetes/aaf/components/aaf-service/.helmignore [moved from kubernetes/aaf/charts/aaf-service/.helmignore with 100% similarity]
kubernetes/aaf/components/aaf-service/Chart.yaml [moved from kubernetes/aaf/charts/aaf-service/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-service/requirements.yaml [new file with mode: 0644]
kubernetes/aaf/components/aaf-service/templates/deployment.yaml [moved from kubernetes/aaf/charts/aaf-service/templates/deployment.yaml with 100% similarity]
kubernetes/aaf/components/aaf-service/templates/ingress.yaml [moved from kubernetes/aaf/charts/aaf-service/templates/ingress.yaml with 100% similarity]
kubernetes/aaf/components/aaf-service/templates/service.yaml [moved from kubernetes/aaf/charts/aaf-service/templates/service.yaml with 100% similarity]
kubernetes/aaf/components/aaf-service/values.yaml [moved from kubernetes/aaf/charts/aaf-service/values.yaml with 73% similarity]
kubernetes/aaf/components/aaf-sms/Chart.yaml [moved from kubernetes/aaf/charts/aaf-sms/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/charts/aaf-sms-quorumclient/Chart.yaml [moved from kubernetes/aaf/charts/aaf-sms/charts/aaf-sms-quorumclient/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/charts/aaf-sms-quorumclient/resources/config/config.json [moved from kubernetes/aaf/charts/aaf-sms/charts/aaf-sms-quorumclient/resources/config/config.json with 100% similarity]
kubernetes/aaf/components/aaf-sms/charts/aaf-sms-quorumclient/templates/configmap.yaml [moved from kubernetes/aaf/charts/aaf-sms/charts/aaf-sms-quorumclient/templates/configmap.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/charts/aaf-sms-quorumclient/templates/pv.yaml [moved from kubernetes/aaf/charts/aaf-sms/charts/aaf-sms-quorumclient/templates/pv.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/charts/aaf-sms-quorumclient/templates/statefulset.yaml [moved from kubernetes/aaf/charts/aaf-sms/charts/aaf-sms-quorumclient/templates/statefulset.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/charts/aaf-sms-quorumclient/values.yaml [moved from kubernetes/aaf/charts/aaf-sms/charts/aaf-sms-quorumclient/values.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/charts/aaf-sms-vault/Chart.yaml [moved from kubernetes/aaf/charts/aaf-sms/charts/aaf-sms-vault/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/charts/aaf-sms-vault/templates/configmap.yaml [moved from kubernetes/aaf/charts/aaf-sms/charts/aaf-sms-vault/templates/configmap.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/charts/aaf-sms-vault/templates/pv.yaml [moved from kubernetes/aaf/charts/aaf-sms/charts/aaf-sms-vault/templates/pv.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/charts/aaf-sms-vault/templates/service.yaml [moved from kubernetes/aaf/charts/aaf-sms/charts/aaf-sms-vault/templates/service.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/charts/aaf-sms-vault/templates/statefulset.yaml [moved from kubernetes/aaf/charts/aaf-sms/charts/aaf-sms-vault/templates/statefulset.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/charts/aaf-sms-vault/values.yaml [moved from kubernetes/aaf/charts/aaf-sms/charts/aaf-sms-vault/values.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/requirements.yaml [new file with mode: 0644]
kubernetes/aaf/components/aaf-sms/resources/certs/intermediate_root_ca.pem [new file with mode: 0644]
kubernetes/aaf/components/aaf-sms/resources/config/has.json [moved from kubernetes/aaf/charts/aaf-sms/resources/config/has.json with 100% similarity]
kubernetes/aaf/components/aaf-sms/resources/config/osdf.json [moved from kubernetes/aaf/charts/aaf-sms/resources/config/osdf.json with 100% similarity]
kubernetes/aaf/components/aaf-sms/templates/configmap.yaml [moved from kubernetes/aaf/charts/aaf-sms/templates/configmap.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/templates/deployment.yaml [moved from kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml with 76% similarity]
kubernetes/aaf/components/aaf-sms/templates/job.yaml [moved from kubernetes/aaf/charts/aaf-sms/templates/job.yaml with 96% similarity]
kubernetes/aaf/components/aaf-sms/templates/pv.yaml [moved from kubernetes/aaf/charts/aaf-sms/templates/pv.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/templates/pvc.yaml [moved from kubernetes/aaf/charts/aaf-sms/templates/pvc.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/templates/secret.yaml [new file with mode: 0644]
kubernetes/aaf/components/aaf-sms/templates/service.yaml [moved from kubernetes/aaf/charts/aaf-sms/templates/service.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sms/values.yaml [moved from kubernetes/aaf/charts/aaf-sms/values.yaml with 83% similarity]
kubernetes/aaf/components/aaf-sshsm/Chart.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/README.md [moved from kubernetes/aaf/charts/aaf-sshsm/README.md with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-abrmd/Chart.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-abrmd/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-abrmd/templates/configmap.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-abrmd/templates/configmap.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-abrmd/templates/job.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-abrmd/templates/job.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-abrmd/templates/statefulset.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-abrmd/templates/statefulset.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-abrmd/values.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-abrmd/values.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-distcenter/Chart.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-distcenter/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-distcenter/templates/configmap.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-distcenter/templates/configmap.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-distcenter/templates/job.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-distcenter/templates/job.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-distcenter/templates/pv.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-distcenter/templates/pv.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-distcenter/templates/pvc.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-distcenter/templates/pvc.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-distcenter/values.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-distcenter/values.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-testca/Chart.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-testca/Chart.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-testca/templates/job.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-testca/templates/job.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/charts/aaf-sshsm-testca/values.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/charts/aaf-sshsm-testca/values.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/requirements.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/requirements.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/resources/config/prk_passwd [moved from kubernetes/aaf/charts/aaf-sshsm/resources/config/prk_passwd with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/resources/config/srk_handle [moved from kubernetes/aaf/charts/aaf-sshsm/resources/config/srk_handle with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/templates/pv-data.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/templates/pv-data.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/templates/pv-dbus.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/templates/pv-dbus.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/templates/pvc-data.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/templates/pvc-data.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/templates/pvc-dbus.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/templates/pvc-dbus.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/templates/secret.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/templates/secret.yaml with 100% similarity]
kubernetes/aaf/components/aaf-sshsm/values.yaml [moved from kubernetes/aaf/charts/aaf-sshsm/values.yaml with 75% similarity]
kubernetes/aaf/components/aaf-templates/Chart.yaml [new file with mode: 0644]
kubernetes/aaf/components/aaf-templates/requirements.yaml [new file with mode: 0644]
kubernetes/aaf/components/aaf-templates/templates/_deployment.tpl [moved from kubernetes/aaf/templates/_deployment.tpl with 100% similarity]
kubernetes/aaf/components/aaf-templates/templates/_initContainers.tpl [moved from kubernetes/aaf/templates/_initContainers.tpl with 100% similarity]
kubernetes/aaf/components/aaf-templates/values.yaml [moved from kubernetes/aaf/charts/aaf-sms/templates/secret.yaml with 86% similarity]
kubernetes/aaf/requirements.yaml

index 46d74cd..085beaa 100644 (file)
@@ -16,6 +16,8 @@ Here's the list of these certificates:
  +==================+==================+==================+============================================================================================+
  | AAF              | No               | Yes              | No              | aaf/charts/aaf-cert-service/resources/                                   |
  +------------------+------------------+------------------+--------------------------------------------------------------------------------------------+
+ | AAF              | Yes              | No               | No              | aaf/components/aaf-sms/resources/certs/intermediate_root_ca.pem          |
+ +------------------+------------------+------------------+--------------------------------------------------------------------------------------------+
  | AAI              | Yes              | No               | No              | aai/oom/resources/config/haproxy/aai.pem                                 |
  +------------------+------------------+------------------+--------------------------------------------------------------------------------------------+
  | AAI              | Yes              | No               | No              | aai/oom/resources/config/aai/aai_keystore                                |
diff --git a/kubernetes/aaf/Makefile b/kubernetes/aaf/Makefile
new file mode 100644 (file)
index 0000000..9396001
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright © 2020 Samsung Electronics, Orange
+#
+# 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.
+
+ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
+OUTPUT_DIR := $(ROOT_DIR)/../dist
+PACKAGE_DIR := $(OUTPUT_DIR)/packages
+SECRET_DIR := $(OUTPUT_DIR)/secrets
+
+EXCLUDES := dist resources templates charts
+HELM_CHARTS := $(filter-out $(EXCLUDES), $(sort $(patsubst %/.,%,$(wildcard */.))))
+
+.PHONY: $(EXCLUDES) $(HELM_CHARTS)
+
+all: $(HELM_CHARTS)
+
+$(HELM_CHARTS):
+       @echo "\n[$@]"
+       @make package-$@
+
+make-%:
+       @if [ -f $*/Makefile ]; then make -C $*; fi
+
+dep-%: make-%
+       @if [ -f $*/requirements.yaml ]; then helm dep up $*; fi
+
+lint-%: dep-%
+       @if [ -f $*/Chart.yaml ]; then helm lint $*; fi
+
+package-%: lint-%
+       @mkdir -p $(PACKAGE_DIR)
+       @if [ -f $*/Chart.yaml ]; then helm package -d $(PACKAGE_DIR) $*; fi
+       @helm repo index $(PACKAGE_DIR)
+
+clean:
+       @rm -f */requirements.lock
+       @rm -f *tgz */charts/*tgz
+       @rm -rf $(PACKAGE_DIR)
+%:
+       @:
diff --git a/kubernetes/aaf/components/Makefile b/kubernetes/aaf/components/Makefile
new file mode 100644 (file)
index 0000000..2fc0cbe
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright © 2020 Samsung Electronics
+#
+# 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.
+
+ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
+OUTPUT_DIR := $(ROOT_DIR)/../../dist
+PACKAGE_DIR := $(OUTPUT_DIR)/packages
+SECRET_DIR := $(OUTPUT_DIR)/secrets
+
+EXCLUDES :=
+HELM_CHARTS := $(filter-out $(EXCLUDES), $(sort $(patsubst %/.,%,$(wildcard */.))))
+
+.PHONY: $(EXCLUDES) $(HELM_CHARTS)
+
+all: $(HELM_CHARTS)
+
+$(HELM_CHARTS):
+       @echo "\n[$@]"
+       @make package-$@
+
+make-%:
+       @if [ -f $*/Makefile ]; then make -C $*; fi
+
+dep-%: make-%
+       @if [ -f $*/requirements.yaml ]; then helm dep up $*; fi
+
+lint-%: dep-%
+       @if [ -f $*/Chart.yaml ]; then helm lint $*; fi
+
+package-%: lint-%
+       @mkdir -p $(PACKAGE_DIR)
+       @if [ -f $*/Chart.yaml ]; then helm package -d $(PACKAGE_DIR) $*; fi
+       @helm repo index $(PACKAGE_DIR)
+
+clean:
+       @rm -f */requirements.lock
+       @rm -f *tgz */charts/*tgz
+       @rm -rf $(PACKAGE_DIR)
+%:
+       @:
diff --git a/kubernetes/aaf/components/aaf-cass/requirements.yaml b/kubernetes/aaf/components/aaf-cass/requirements.yaml
new file mode 100644 (file)
index 0000000..6afaa06
--- /dev/null
@@ -0,0 +1,18 @@
+ # Copyright © 2020 Orange
+#
+# 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.
+
+ dependencies:
+  - name: common
+    version: ~6.x-0
+    repository: '@local'
similarity index 78%
rename from kubernetes/aaf/charts/aaf-cass/values.yaml
rename to kubernetes/aaf/components/aaf-cass/values.yaml
index ec7dcbb..c5e5811 100644 (file)
 # 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.
+global:
+  nodePortPrefix: 302
+  # Readiness image
+  readinessRepository: oomk8s
+  readinessImage: readiness-check:2.0.2
+  # Ubuntu Init image
+  ubuntuInitRepository: registry.hub.docker.com
+  ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
+  # Logging image
+  loggingRepository: docker.elastic.co
+  loggingImage: beats/filebeat:5.5.0
+  # BusyBox image
+  busyboxRepository: registry.hub.docker.com
+  busyboxImage: library/busybox:1.31
+  persistence:
+    enabled: true
+  # Standard OOM
+  pullPolicy: "Always"
+  repository: "nexus3.onap.org:10001"
 
 flavor: small
 
diff --git a/kubernetes/aaf/components/aaf-cert-service/requirements.yaml b/kubernetes/aaf/components/aaf-cert-service/requirements.yaml
new file mode 100644 (file)
index 0000000..6afaa06
--- /dev/null
@@ -0,0 +1,18 @@
+ # Copyright © 2020 Orange
+#
+# 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.
+
+ dependencies:
+  - name: common
+    version: ~6.x-0
+    repository: '@local'
@@ -1,5 +1,5 @@
 # Copyright © 2020, Nokia
-# Modifications Copyright  © 2020, Nordix Foundation
+# Modifications Copyright  © 2020, Nordix Foundation, Orange
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # Global
 global:
   envsubstImage: dibi/envsubst
+  nodePortPrefix: 302
+  # Readiness image
+  readinessRepository: oomk8s
+  readinessImage: readiness-check:2.0.2
+  # Ubuntu Init image
+  ubuntuInitRepository: registry.hub.docker.com
+  ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
+  # Logging image
+  loggingRepository: docker.elastic.co
+  loggingImage: beats/filebeat:5.5.0
+  # BusyBox image
+  busyboxRepository: registry.hub.docker.com
+  busyboxImage: library/busybox:1.31
+  persistence:
+    enabled: true
+  # Standard OOM
+  pullPolicy: "Always"
+  repository: "nexus3.onap.org:10001"
+
 
 # Service configuration
 service:
diff --git a/kubernetes/aaf/components/aaf-cm/requirements.yaml b/kubernetes/aaf/components/aaf-cm/requirements.yaml
new file mode 100644 (file)
index 0000000..08ef7fe
--- /dev/null
@@ -0,0 +1,21 @@
+ # Copyright © 2020 Orange
+#
+# 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.
+
+ dependencies:
+  - name: common
+    version: ~6.x-0
+    repository: '@local'
+  - name: aaf-templates
+    version: ~6.x-0
+    repository: 'file://../aaf-templates'
similarity index 72%
rename from kubernetes/aaf/charts/aaf-cm/values.yaml
rename to kubernetes/aaf/components/aaf-cm/values.yaml
index c391369..0997c7d 100644 (file)
@@ -1,5 +1,5 @@
 # Copyright © 2017 Amdocs, Bell Canada
-# Modifications © 2020 AT&T
+# Modifications © 2020 AT&T, Orange
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+global:
+  nodePortPrefix: 302
+  # Readiness image
+  readinessRepository: oomk8s
+  readinessImage: readiness-check:2.0.2
+  # Ubuntu Init image
+  ubuntuInitRepository: registry.hub.docker.com
+  ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
+  # Logging image
+  loggingRepository: docker.elastic.co
+  loggingImage: beats/filebeat:5.5.0
+  # BusyBox image
+  busyboxRepository: registry.hub.docker.com
+  busyboxImage: library/busybox:1.31
+  persistence:
+    enabled: true
+  # Standard OOM
+  pullPolicy: "Always"
+  repository: "nexus3.onap.org:10001"
+
+  aaf:
+    config:
+      image: onap/aaf/aaf_config:2.1.23
+
+
 flavor: small
 
 #################################################################
diff --git a/kubernetes/aaf/components/aaf-fs/requirements.yaml b/kubernetes/aaf/components/aaf-fs/requirements.yaml
new file mode 100644 (file)
index 0000000..08ef7fe
--- /dev/null
@@ -0,0 +1,21 @@
+ # Copyright © 2020 Orange
+#
+# 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.
+
+ dependencies:
+  - name: common
+    version: ~6.x-0
+    repository: '@local'
+  - name: aaf-templates
+    version: ~6.x-0
+    repository: 'file://../aaf-templates'
similarity index 74%
rename from kubernetes/aaf/charts/aaf-fs/values.yaml
rename to kubernetes/aaf/components/aaf-fs/values.yaml
index 6ddc072..9bffb95 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+global:
+  nodePortPrefix: 302
+  # Readiness image
+  readinessRepository: oomk8s
+  readinessImage: readiness-check:2.0.2
+  # Ubuntu Init image
+  ubuntuInitRepository: registry.hub.docker.com
+  ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
+  # Logging image
+  loggingRepository: docker.elastic.co
+  loggingImage: beats/filebeat:5.5.0
+  # BusyBox image
+  busyboxRepository: registry.hub.docker.com
+  busyboxImage: library/busybox:1.31
+  persistence:
+    enabled: true
+  # Standard OOM
+  pullPolicy: "Always"
+  repository: "nexus3.onap.org:10001"
+
+  aaf:
+    config:
+      image: onap/aaf/aaf_config:2.1.23
+
 flavor: small
 
 #################################################################
diff --git a/kubernetes/aaf/components/aaf-gui/requirements.yaml b/kubernetes/aaf/components/aaf-gui/requirements.yaml
new file mode 100644 (file)
index 0000000..08ef7fe
--- /dev/null
@@ -0,0 +1,21 @@
+ # Copyright © 2020 Orange
+#
+# 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.
+
+ dependencies:
+  - name: common
+    version: ~6.x-0
+    repository: '@local'
+  - name: aaf-templates
+    version: ~6.x-0
+    repository: 'file://../aaf-templates'
similarity index 73%
rename from kubernetes/aaf/charts/aaf-gui/values.yaml
rename to kubernetes/aaf/components/aaf-gui/values.yaml
index f418fd5..8639d6c 100644 (file)
@@ -1,5 +1,5 @@
 # Copyright © 2017 Amdocs, Bell Canada
-# Modifications © 2020 AT&T
+# Modifications © 2020 AT&T, Orange
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+global:
+  nodePortPrefix: 302
+  # Readiness image
+  readinessRepository: oomk8s
+  readinessImage: readiness-check:2.0.2
+  # Ubuntu Init image
+  ubuntuInitRepository: registry.hub.docker.com
+  ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
+  # Logging image
+  loggingRepository: docker.elastic.co
+  loggingImage: beats/filebeat:5.5.0
+  # BusyBox image
+  busyboxRepository: registry.hub.docker.com
+  busyboxImage: library/busybox:1.31
+  persistence:
+    enabled: true
+  # Standard OOM
+  pullPolicy: "Always"
+  repository: "nexus3.onap.org:10001"
+
+  aaf:
+    config:
+      image: onap/aaf/aaf_config:2.1.23
+
 flavor: small
 #################################################################
 # Application configuration defaults.
diff --git a/kubernetes/aaf/components/aaf-hello/requirements.yaml b/kubernetes/aaf/components/aaf-hello/requirements.yaml
new file mode 100644 (file)
index 0000000..08ef7fe
--- /dev/null
@@ -0,0 +1,21 @@
+ # Copyright © 2020 Orange
+#
+# 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.
+
+ dependencies:
+  - name: common
+    version: ~6.x-0
+    repository: '@local'
+  - name: aaf-templates
+    version: ~6.x-0
+    repository: 'file://../aaf-templates'
diff --git a/kubernetes/aaf/components/aaf-locate/requirements.yaml b/kubernetes/aaf/components/aaf-locate/requirements.yaml
new file mode 100644 (file)
index 0000000..08ef7fe
--- /dev/null
@@ -0,0 +1,21 @@
+ # Copyright © 2020 Orange
+#
+# 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.
+
+ dependencies:
+  - name: common
+    version: ~6.x-0
+    repository: '@local'
+  - name: aaf-templates
+    version: ~6.x-0
+    repository: 'file://../aaf-templates'
@@ -1,5 +1,5 @@
 # Copyright © 2017 Amdocs, Bell Canada
-# Modifications © 2020 AT&T
+# Modifications © 2020 AT&T, Orange
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+global:
+  nodePortPrefix: 302
+  # Readiness image
+  readinessRepository: oomk8s
+  readinessImage: readiness-check:2.0.2
+  # Ubuntu Init image
+  ubuntuInitRepository: registry.hub.docker.com
+  ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
+  # Logging image
+  loggingRepository: docker.elastic.co
+  loggingImage: beats/filebeat:5.5.0
+  # BusyBox image
+  busyboxRepository: registry.hub.docker.com
+  busyboxImage: library/busybox:1.31
+  persistence:
+    enabled: true
+  # Standard OOM
+  pullPolicy: "Always"
+  repository: "nexus3.onap.org:10001"
+
+  aaf:
+    config:
+      image: onap/aaf/aaf_config:2.1.23
+
+
 flavor: small
 #################################################################
 # Application configuration defaults.
diff --git a/kubernetes/aaf/components/aaf-oauth/requirements.yaml b/kubernetes/aaf/components/aaf-oauth/requirements.yaml
new file mode 100644 (file)
index 0000000..08ef7fe
--- /dev/null
@@ -0,0 +1,21 @@
+ # Copyright © 2020 Orange
+#
+# 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.
+
+ dependencies:
+  - name: common
+    version: ~6.x-0
+    repository: '@local'
+  - name: aaf-templates
+    version: ~6.x-0
+    repository: 'file://../aaf-templates'
@@ -1,5 +1,5 @@
 # Copyright © 2017 Amdocs, Bell Canada
-# Modifications © 2020 AT&T
+# Modifications © 2020 AT&T, Orange
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+global:
+  nodePortPrefix: 302
+  # Readiness image
+  readinessRepository: oomk8s
+  readinessImage: readiness-check:2.0.2
+  # Ubuntu Init image
+  ubuntuInitRepository: registry.hub.docker.com
+  ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
+  # Logging image
+  loggingRepository: docker.elastic.co
+  loggingImage: beats/filebeat:5.5.0
+  # BusyBox image
+  busyboxRepository: registry.hub.docker.com
+  busyboxImage: library/busybox:1.31
+  persistence:
+    enabled: true
+  # Standard OOM
+  pullPolicy: "Always"
+  repository: "nexus3.onap.org:10001"
+
+  aaf:
+    config:
+      image: onap/aaf/aaf_config:2.1.23
+
+
 flavor: small
 
 #################################################################
diff --git a/kubernetes/aaf/components/aaf-service/requirements.yaml b/kubernetes/aaf/components/aaf-service/requirements.yaml
new file mode 100644 (file)
index 0000000..08ef7fe
--- /dev/null
@@ -0,0 +1,21 @@
+ # Copyright © 2020 Orange
+#
+# 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.
+
+ dependencies:
+  - name: common
+    version: ~6.x-0
+    repository: '@local'
+  - name: aaf-templates
+    version: ~6.x-0
+    repository: 'file://../aaf-templates'
@@ -1,5 +1,5 @@
 # Copyright © 2017 Amdocs, Bell Canada
-# Modifications © 2020 AT&T
+# Modifications © 2020 AT&T, Orange
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+global:
+  nodePortPrefix: 302
+  # Readiness image
+  readinessRepository: oomk8s
+  readinessImage: readiness-check:2.0.2
+  # Ubuntu Init image
+  ubuntuInitRepository: registry.hub.docker.com
+  ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
+  # Logging image
+  loggingRepository: docker.elastic.co
+  loggingImage: beats/filebeat:5.5.0
+  # BusyBox image
+  busyboxRepository: registry.hub.docker.com
+  busyboxImage: library/busybox:1.31
+  persistence:
+    enabled: true
+  # Standard OOM
+  pullPolicy: "Always"
+  repository: "nexus3.onap.org:10001"
+
+  aaf:
+    config:
+      image: onap/aaf/aaf_config:2.1.23
+
+
 flavor: small
 
 #################################################################
diff --git a/kubernetes/aaf/components/aaf-sms/requirements.yaml b/kubernetes/aaf/components/aaf-sms/requirements.yaml
new file mode 100644 (file)
index 0000000..7152c37
--- /dev/null
@@ -0,0 +1,21 @@
+ # Copyright © 2020 Orange
+#
+# 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.
+
+ dependencies:
+  - name: common
+    version: ~6.x-0
+    repository: '@local'
+  - name: certInitializer
+    version: ~6.x-0
+    repository: '@local'
diff --git a/kubernetes/aaf/components/aaf-sms/resources/certs/intermediate_root_ca.pem b/kubernetes/aaf/components/aaf-sms/resources/certs/intermediate_root_ca.pem
new file mode 100644 (file)
index 0000000..7939846
--- /dev/null
@@ -0,0 +1,26 @@
+-----BEGIN CERTIFICATE-----
+MIIEdTCCAl2gAwIBAgIBBzANBgkqhkiG9w0BAQsFADAsMQ4wDAYDVQQLDAVPU0FB
+RjENMAsGA1UECgwET05BUDELMAkGA1UEBhMCVVMwHhcNMTgwODE3MTg1MTM3WhcN
+MjMwODE3MTg1MTM3WjBHMQswCQYDVQQGEwJVUzENMAsGA1UECgwET05BUDEOMAwG
+A1UECwwFT1NBQUYxGTAXBgNVBAMMEGludGVybWVkaWF0ZUNBXzkwggEiMA0GCSqG
+SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCv0HHUkba3uNtNI3jPKimUcd6RNwmhSCJL
+neMWpnjqp5/A+HCKyNsEaT4y177hNLmCm/aMm1u2JIfikc+8wEqLCSBBPz+P0h+d
+o+sZ7U+4oeQizdYYpEdzHJ2SieHHa8vtu80rU3nO2NEIkuYC20HcKSEtl8fFKsk3
+nqlhY+tGfYJPTXcDOQAO40BTcgat3C3uIJHkWJJ4RivunE4LEuRv9QyKgAw7rkJV
+v+f7guqpZlXy6dzAkuU7XULWcgo55MkZlssoiErMvEZJad5aWKvRY3g7qUjaQ6wO
+15wOAUoRBW96eeZZbytgn8kybcBy++Ue49gPtgm1MF/KlAsp0MD5AgMBAAGjgYYw
+gYMwHQYDVR0OBBYEFIH3mVsQuciM3vNSXupOaaBDPqzdMB8GA1UdIwQYMBaAFFNV
+M/JL69BRscF4msEoMXvv6u1JMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYDVR0PAQH/
+BAQDAgGGMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjANBgkqhkiG9w0B
+AQsFAAOCAgEADxNymiCNr2e37iLReoaxKmZvwox0cTiNAaj7iafRzmwIoY3VXO8Q
+ix5IYcp4FaQ7fV1jyp/AmaSnyHf6Osl0sx8PxsQkO7ALttxKUrjfbvNSVUA2C/vl
+u5m7UVJLIUtFDZBWanzUSmkTsYLHpiANFQKd2c/cU1qXcyzgJVFEFVyyHNkF7Is+
++pjG9M1hwQHOoTnEuU013P7X1mHek+RXEfhJWwe7UsZnBKZaZKbQZu7hEtqKWYp/
+QsHgnjoLYXsh0WD5rz/mBxdTdDLGpFqWDzDqb8rsYnqBzoowvsasV8X8OSkov0Ht
+8Yka0ckFH9yf8j1Cwmbl6ttuonOhky3N/gwLEozuhy7TPcZGVyzevF70kXy7g1CX
+kpFGJyEHXoprlNi8FR4I+NFzbDe6a2cFow1JN19AJ9Z5Rk5m7M0mQPaQ4RcikjB3
+aoLsASCJTm1OpOFHfxEKiBW4Lsp3Uc5/Rb9ZNbfLrwqWZRM7buW1e3ekLqntgbky
+uKKISHqVJuw/vXHl1jNibEo9+JuQ88VNuAcm7WpGUogeCa2iAlPTckPZei+MwZ8w
+tpvxTyYlZEC8DWzY1VC29+W2N5cvh01e2E3Ql08W1zL63dqrgdEZ3VWjzooYi4ep
+BmMXTvouW+Flyvcw/0oTcfN0biDIt0mCkZ5CQVjfGL9DTOYteR5hw+k=
+-----END CERTIFICATE-----
@@ -31,8 +31,25 @@ spec:
         app: {{ include "common.name" . }}
         release: {{ include "common.release" . }}
     spec:
-      initContainers:
-        - name: fix-permission
+      initContainers: {{ include "common.certInitializer.initContainer" . | nindent 8 }}
+        # Currently intermediate certificate is not given by AAF CM so we need
+        # to give it "by hand"
+        {{- if .Values.global.aafEnabled }}
+        - name: {{ include "common.fullname" . }}-add-intermediate-cert
+          command:
+            - /bin/sh
+          args:
+            - -c
+            - |
+              cat /int-certs/intermediate_root_ca.pem >> {{ .Values.certInitializer.mountPath }}/local/org.onap.aaf-sms.crt
+          image: "{{ .Values.global.busyboxRepository }}/{{ .Values.global.busyboxImage }}"
+          imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+          volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 12 }}
+            - mountPath: /int-certs
+              name: {{ include "common.fullname" . }}-int-certs
+              readOnly: true
+        {{- end }}
+        - name: {{ include "common.fullname" . }}-fix-permission
           command:
             - /bin/sh
           args:
@@ -85,7 +102,7 @@ spec:
             path: /v1/sms/quorum/status
           initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
           periodSeconds: {{ .Values.readiness.periodSeconds }}
-        volumeMounts:
+        volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
           - mountPath: /etc/localtime
             name: localtime
             readOnly: true
@@ -104,13 +121,18 @@ spec:
         affinity:
 {{ toYaml .Values.affinity | indent 10 }}
         {{- end }}
-      volumes:
+      volumes: {{ include "common.certInitializer.volumes" . | nindent 6 }}
       - name: localtime
         hostPath:
           path: /etc/localtime
       - name : {{ include "common.name" . }}
         configMap:
           name: {{ include "common.fullname" . }}
+      {{- if .Values.global.aafEnabled }}
+      - name: {{ include "common.fullname" . }}-int-certs
+        secret:
+          secretName: {{ include "common.fullname" . }}-int-certs
+      {{- end }}
       - name: {{ include "common.fullname" . }}-auth
       {{- if .Values.persistence.enabled }}
         persistentVolumeClaim:
@@ -32,7 +32,7 @@ spec:
         app: {{ include "common.name" . }}
         release: {{ include "common.release" . }}
     spec:
-      initContainers:
+      initContainers: {{ include "common.certInitializer.initContainer" . | nindent 6 }}
       - command:
         - sh
         args:
@@ -163,7 +163,7 @@ spec:
         command:
           - "/sms/bin/preload"
           - "-cacert"
-          - "/sms/certs/aaf_root_ca.cer"
+          - "{{ .Values.certInitializer.mountPath }}/local/{{ .Values.certInitializer.root_ca_name }}"
           - "-jsondir"
           - "/preload/config"
           - "-serviceport"
@@ -171,7 +171,7 @@ spec:
           - "-serviceurl"
           - "https://aaf-sms.{{ include "common.namespace" . }}"
         workingDir: /sms
-        volumeMounts:
+        volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
           - mountPath: /etc/localtime
             name: localtime
             readOnly: true
@@ -187,7 +187,7 @@ spec:
         affinity:
 {{ toYaml .Values.affinity | indent 10 }}
         {{- end }}
-      volumes:
+      volumes: {{ include "common.certInitializer.volumes" . | nindent 6 }}
       - name: localtime
         hostPath:
           path: /etc/localtime
diff --git a/kubernetes/aaf/components/aaf-sms/templates/secret.yaml b/kubernetes/aaf/components/aaf-sms/templates/secret.yaml
new file mode 100644 (file)
index 0000000..7a0213f
--- /dev/null
@@ -0,0 +1,32 @@
+{{/*
+# Copyright © 2020 Samsung Electronics, Orange
+#
+# 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.
+*/}}
+
+{{ include "common.secretFast" . }}
+---
+{{- if .Values.global.aafEnabled }}
+apiVersion: v1
+kind: Secret
+metadata:
+  name: {{ include "common.fullname" . }}-int-certs
+  namespace: {{ include "common.namespace" . }}
+  labels:
+    app: {{ include "common.name" . }}
+    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+    release: {{ .Release.Name }}
+    heritage: {{ .Release.Service }}
+data:
+{{ tpl (.Files.Glob "resources/certs/*").AsSecrets . | indent 2 }}
+{{- end }}
similarity index 83%
rename from kubernetes/aaf/charts/aaf-sms/values.yaml
rename to kubernetes/aaf/components/aaf-sms/values.yaml
index 7e0aa5c..dccf57c 100644 (file)
@@ -1,5 +1,5 @@
 # Copyright 2018 Intel Corporation, Inc
-# Modifications © 2020 AT&T
+# Modifications © 2020 AT&T, Orange
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -22,8 +22,38 @@ global:
   loggingImage: beats/filebeat:5.5.0
   persistence: {}
   envsubstImage: dibi/envsubst
+  aafEnabled: true
 
 flavor: small
+
+#################################################################
+# AAF part
+#################################################################
+certInitializer:
+  nameOverride: aaf-sms-cert-init
+  aafDeployFqi: deployer@people.osaaf.org
+  aafDeployPass: demo123456!
+  # aafDeployCredsExternalSecret: some secret
+  fqdn: aaf-sms
+  fqi: aaf-sms@aaf-sms.onap.org
+  public_fqdn: aaf-sms.onap.org
+  cadi_longitude: "0.0"
+  cadi_latitude: "0.0"
+  app_ns: org.osaaf.aaf
+  mountPath: /opt/app/osaaf
+  keystore: truststoreONAPall.jks
+  keystore_pass: changeit
+  root_ca_alias: onaptestca
+  root_ca_name: aaf_root_ca.cer
+  permission_user: 1000
+  permission_group: 1000
+  aaf_add_config: >
+    cd {{ .Values.mountPath }}/local;
+    keytool -exportcert -rfc -file {{ .Values.root_ca_name }} -keystore {{ .Values.keystore }}
+    -alias {{ .Values.root_ca_alias }} -storepass {{ .Values.keystore_pass }};
+    chown -R {{.Values.permission_user}}:{{.Values.permission_group}}
+    {{ .Values.mountPath }};
+
 #################################################################
 # Application configuration defaults.
 #################################################################
@@ -39,9 +69,9 @@ debugEnabled: false
 # Example:
 config:
   smsdbaddress: "http://aaf-sms-db:8200"
-  cafile: "/sms/certs/aaf_root_ca.cer"
-  servercert: "/sms/certs/aaf-sms.pub"
-  serverkey: "/sms/certs/aaf-sms.pr"
+  cafile: "/opt/app/osaaf/local/aaf_root_ca.cer"
+  servercert: "/opt/app/osaaf/local/org.onap.aaf-sms.crt"
+  serverkey: "/opt/app/osaaf/local/org.onap.aaf-sms.key"
   password: "c2VjcmV0bWFuYWdlbWVudHNlcnZpY2VzZWNyZXRwYXNzd29yZA=="
 
 # subchart configuration
@@ -1,4 +1,5 @@
 # Copyright 2018 Intel Corporation, Inc
+# Modifications © 2020 Orange
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # Global configuration defaults.
 #################################################################
 global:
+  nodePortPrefix: 302
+  # Readiness image
+  readinessRepository: oomk8s
+  readinessImage: readiness-check:2.0.2
+  # Ubuntu Init image
+  ubuntuInitRepository: registry.hub.docker.com
+  ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
+  # Logging image
+  loggingRepository: docker.elastic.co
+  loggingImage: beats/filebeat:5.5.0
+  # BusyBox image
+  busyboxRepository: registry.hub.docker.com
+  busyboxImage: library/busybox:1.31
+  # Standard OOM
+  pullPolicy: "Always"
+  repository: "nexus3.onap.org:10001"
+
   tpm:
     enabled: false
     # if enabled, nodeselector will use the below
diff --git a/kubernetes/aaf/components/aaf-templates/Chart.yaml b/kubernetes/aaf/components/aaf-templates/Chart.yaml
new file mode 100644 (file)
index 0000000..c8739e0
--- /dev/null
@@ -0,0 +1,19 @@
+# Copyright © 2020 Orange
+# Modifications Copyright © 2018 AT&T, 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: v1
+description: ONAP Application Authorization Framework Templates
+name: aaf-templates
+version: 6.0.0
diff --git a/kubernetes/aaf/components/aaf-templates/requirements.yaml b/kubernetes/aaf/components/aaf-templates/requirements.yaml
new file mode 100644 (file)
index 0000000..6afaa06
--- /dev/null
@@ -0,0 +1,18 @@
+ # Copyright © 2020 Orange
+#
+# 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.
+
+ dependencies:
+  - name: common
+    version: ~6.x-0
+    repository: '@local'
@@ -1,5 +1,4 @@
-{{/*
-# Copyright © 2020 Samsung Electronics
+# Copyright © 2020 Orange
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -12,6 +11,3 @@
 # 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.
-*/}}
-
-{{ include "common.secretFast" . }}
index 6a61926..ccbe14c 100644 (file)
@@ -1,4 +1,6 @@
 # Copyright © 2017 Amdocs, Bell Canada
+# Modifications Copyright © 2018 AT&T
+# Modifications Copyright © 2020 Orange
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # limitations under the License.
 
 dependencies:
-  - name: common
+  - name: aaf-cass
     version: ~6.x-0
-    repository: '@local'
\ No newline at end of file
+    repository: 'file://components/aaf-cass'
+  - name: aaf-cert-service
+    version: ~6.x-0
+    repository: 'file://components/aaf-cert-service'
+  - name: aaf-cm
+    version: ~6.x-0
+    repository: 'file://components/aaf-cm'
+  - name: aaf-fs
+    version: ~6.x-0
+    repository: 'file://components/aaf-fs'
+  - name: aaf-gui
+    version: ~6.x-0
+    repository: 'file://components/aaf-gui'
+  - name: aaf-hello
+    version: ~6.x-0
+    repository: 'file://components/aaf-hello'
+  - name: aaf-locate
+    version: ~6.x-0
+    repository: 'file://components/aaf-locate'
+  - name: aaf-oauth
+    version: ~6.x-0
+    repository: 'file://components/aaf-oauth'
+  - name: aaf-service
+    version: ~6.x-0
+    repository: 'file://components/aaf-service'
+  - name: aaf-sms
+    version: ~6.x-0
+    repository: 'file://components/aaf-sms'
+  - name: aaf-sshsm
+    version: ~6.x-0
+    repository: 'file://components/aaf-sshsm'