Creating PV for kongstorage may not be necessary in all the target environments.
Kong storage PV should be created only when there is no default storage class is configured in the cluster
Issue-ID: NONRTRIC-1020
Change-Id: I180fdb7c634293869b8b22f8036b00109557c511
Signed-off-by: aravind.est <aravindhan.a@est.tech>
# ============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.
# limitations under the License.
# ============LICENSE_END=================================================
#
+{{- if .Values.kongpv.enabled }}
apiVersion: v1
kind: PersistentVolume
metadata:
hostPath:
path: "{{ .Values.kongpv.persistence.path }}"
persistentVolumeReclaimPolicy: "{{ .Values.kongpv.persistence.volumeReclaimPolicy }}"
+{{- end }}
\ No newline at end of file
# ============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.
resources:
requests:
storage: "{{ .Values.kongpvc.persistence.size }}"
+{{- if .Values.kongpv.enabled }}
volumeName: kongpv
+{{- end }}
# ============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.
# Default values for Kong PV and PVC
kongpv:
- enabled: true # Disabled for Minikube
+ # This enables/disables the PV creation for kong
+ # PV creation is necessary when there is no default storage class
+ # This should be set to false when there is a default storage class, Which lets the PVC provisions the PV dynamically.
+ enabled: true
persistence:
volumeReclaimPolicy: Delete
accessMode: ReadWriteOnce
installCRDs: false
admin:
enabled: true
+ kongpv:
+ # This enables/disables the PV creation for kong
+ # PV creation is necessary when there is no default storage class
+ # This should be set to false when there is a default storage class, Which lets the PVC provisions the PV dynamically.
+ enabled: true
controlpanel:
ingress: