PV creation is handling using the storageclass smo-storage.
This change removes file based PV creation and utilize the storageclass properties.
Issue-ID: NONRTRIC-1082
Change-Id: Ied290e8b19a85450f64463d970aeff49e42fcb2a
Signed-off-by: aravind.est <aravindhan.a@est.tech>
+++ /dev/null
-# ============LICENSE_START===============================================
-# 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.
-# 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.
-# ============LICENSE_END=================================================
-#
-
-{{- if .Values.kongpv.enabled }}
-apiVersion: v1
-kind: PersistentVolume
-metadata:
- name: kongpv
- labels:
- type: local
-spec:
- capacity:
- storage: "{{ .Values.kongpv.persistence.size }}"
- accessModes:
- - "{{ .Values.kongpv.persistence.accessMode }}"
- hostPath:
- path: "{{ .Values.kongpv.persistence.path }}"
- storageClassName: {{ .Values.kongpv.persistence.storageClassName }}
- persistentVolumeReclaimPolicy: "{{ .Values.kongpv.persistence.volumeReclaimPolicy }}"
-{{- end }}
requests:
storage: "{{ .Values.kongpvc.persistence.size }}"
{{- if .Values.kongpv.enabled }}
- volumeName: kongpv
storageClassName: {{ .Values.kongpv.persistence.storageClassName }}
{{- end }}
kongpv:
enabled: true # Disabled for Minikube
persistence:
- volumeReclaimPolicy: Delete
- accessMode: ReadWriteOnce
- size: 2Gi
- path: "/tmp/kongpv"
storageClassName: kong-storage
kongpvc:
+++ /dev/null
-###############################################################################
-# Copyright (c) 2021 Nordix Foundation. #
-# #
-# 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. #
-################################################################################
-
-{{- if .Values.nonrtric.volume1.size }}
-
-kind: PersistentVolume
-apiVersion: v1
-metadata:
- name: nonrtric-pv1
- namespace: {{ include "common.namespace" . }}
-spec:
- capacity:
- storage: {{ .Values.nonrtric.volume1.size}}
- accessModes:
- - ReadWriteOnce
- - ReadWriteMany
- persistentVolumeReclaimPolicy: Retain
- hostPath:
- path: {{ .Values.nonrtric.persistence.mountPath }}/nonrtric/volume1
- storageClassName: {{ .Values.nonrtric.volume1.storageClassName }}
-
-{{- end }}
+++ /dev/null
-###############################################################################
-# Copyright (c) 2021 Nordix Foundation. #
-# #
-# 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. #
-################################################################################
-
-{{- if .Values.nonrtric.volume2.size }}
-
-kind: PersistentVolume
-apiVersion: v1
-metadata:
- name: nonrtric-pv2
- namespace: {{ include "common.namespace" . }}
-spec:
- capacity:
- storage: {{ .Values.nonrtric.volume2.size }}
- accessModes:
- - ReadWriteOnce
- - ReadWriteMany
- persistentVolumeReclaimPolicy: Retain
- hostPath:
- path: {{ .Values.nonrtric.persistence.mountPath }}/nonrtric/volume2
- storageClassName: {{ .Values.nonrtric.volume2.storageClassName }}
-
-{{- end }}
-
+++ /dev/null
-# ============LICENSE_START===============================================
-# Copyright (C) 2024 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.
-# 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.
-# ============LICENSE_END=================================================
-#
-kind: PersistentVolume
-apiVersion: v1
-metadata:
- name: pgsql-volume
-spec:
- capacity:
- storage: {{ .Values.smo.pgsqlvolume.size}}
- accessModes:
- - ReadWriteOnce
- - ReadWriteMany
- persistentVolumeReclaimPolicy: Retain
- hostPath:
- path: {{ .Values.smo.persistence.mountPath }}/smo/pgsql-volume
- storageClassName: {{ .Values.smo.pgsqlvolume.storageClassName }}
\ No newline at end of file
smo:
installTeiv: true
- persistence:
- mountPath: /dockerdata-nfs
- pgsqlvolume:
- size: 1Gi
- storageClassName: pgsql-sc
common:
enabled: true
password: teiv
persistence:
size: 1Gi
- volumeName: pgsql-volume
storageClass: pgsql-sc
topology-exposure: