From 65a7ffbed24531dbdb0c720c376a3674ec2890af Mon Sep 17 00:00:00 2001 From: "aravind.est" Date: Fri, 25 Jul 2025 11:55:50 +0100 Subject: [PATCH] Storage class used in the kong and topology-exposure-inventory deployments. smo-storage storage used in kong and topology-exposure-inventory deployments. Issue-ID: INT-170 Change-Id: I11c3ffc6022a4fcab3c6dfcf1603f8481cde5368 Signed-off-by: aravind.est --- smo-install/helm-override/default/oran-override.yaml | 12 +++++++++++- smo-install/oran_oom/kong/templates/00-kong-pv.yaml | 3 ++- smo-install/oran_oom/kong/templates/01-kongpvc.yaml | 3 ++- smo-install/oran_oom/kong/values.yaml | 1 + 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/smo-install/helm-override/default/oran-override.yaml b/smo-install/helm-override/default/oran-override.yaml index 939e66b5..b806b8c8 100644 --- a/smo-install/helm-override/default/oran-override.yaml +++ b/smo-install/helm-override/default/oran-override.yaml @@ -93,6 +93,8 @@ kong: # This should be set to false when there is a default storage class, Which lets the PVC provisions the PV dynamically. # In SMO installation, this is handled as part of smo-install/scripts/sub-scripts/install-nonrtric.sh script enabled: true + persistence: + storageClassName: *smo-sc controlpanel: ingress: @@ -151,6 +153,8 @@ dashboard: ######### SMO ######### smo: installTeiv: true + pgsqlvolume: + storageClassName: *smo-sc # List of secrets to be copied from ONAP namespace to SMO # Based on the dependsOn value, the secrets will be copied to the SMO namespace secrets: @@ -161,4 +165,10 @@ smo: - name: ncmp-to-teiv-adapter-ku dependsOn: smo.installTeiv - name: redpanda-console-ku - dependsOn: nonrtric.installRanpm \ No newline at end of file + dependsOn: nonrtric.installRanpm + +topology-exposure-inventory: + postgresql: + primary: + persistence: + storageClass: *smo-sc diff --git a/smo-install/oran_oom/kong/templates/00-kong-pv.yaml b/smo-install/oran_oom/kong/templates/00-kong-pv.yaml index a12ad6a9..30b29938 100644 --- a/smo-install/oran_oom/kong/templates/00-kong-pv.yaml +++ b/smo-install/oran_oom/kong/templates/00-kong-pv.yaml @@ -1,5 +1,5 @@ # ============LICENSE_START=============================================== -# Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved. +# Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. # ======================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,5 +29,6 @@ spec: - "{{ .Values.kongpv.persistence.accessMode }}" hostPath: path: "{{ .Values.kongpv.persistence.path }}" + storageClassName: {{ .Values.kongpv.persistence.storageClassName }} persistentVolumeReclaimPolicy: "{{ .Values.kongpv.persistence.volumeReclaimPolicy }}" {{- end }} diff --git a/smo-install/oran_oom/kong/templates/01-kongpvc.yaml b/smo-install/oran_oom/kong/templates/01-kongpvc.yaml index 5f631cf3..5972d638 100644 --- a/smo-install/oran_oom/kong/templates/01-kongpvc.yaml +++ b/smo-install/oran_oom/kong/templates/01-kongpvc.yaml @@ -1,5 +1,5 @@ # ============LICENSE_START=============================================== -# Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved. +# Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. # ======================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,4 +26,5 @@ spec: storage: "{{ .Values.kongpvc.persistence.size }}" {{- if .Values.kongpv.enabled }} volumeName: kongpv + storageClassName: {{ .Values.kongpv.persistence.storageClassName }} {{- end }} diff --git a/smo-install/oran_oom/kong/values.yaml b/smo-install/oran_oom/kong/values.yaml index b60fe81d..a9be33c3 100644 --- a/smo-install/oran_oom/kong/values.yaml +++ b/smo-install/oran_oom/kong/values.yaml @@ -24,6 +24,7 @@ kongpv: accessMode: ReadWriteOnce size: 2Gi path: "/tmp/kongpv" + storageClassName: kong-storage kongpvc: persistence: -- 2.16.6