[bitnami/apisix] Fix disable tls on controlPlane and dataPlane (#24600)

* Fix disable tls on controlPlane

Signed-off-by: Jorge Navea <j.navea.llorente@gmail.com>

* Fix certs volumeMount when dataPlane tls is disabled

Signed-off-by: Jorge Navea <j.navea.llorente@gmail.com>

---------

Signed-off-by: Jorge Navea <j.navea.llorente@gmail.com>
This commit is contained in:
jorgenll
2024-03-22 09:07:50 +01:00
committed by GitHub
parent a1402f2bf8
commit 0a85409d3a
3 changed files with 6 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ SPDX-License-Identifier: APACHE-2.0
*/}}
{{- $ca := genCA "apisix-ca" 365 }}
{{- if and .Values.controlPlane.enabled (not .Values.controlPlane.tls.existingSecret) }}
{{- if and .Values.controlPlane.enabled .Values.controlPlane.tls.enabled (not .Values.controlPlane.tls.existingSecret) }}
{{/* For the control plane, it is mandatory to have TLS for the config server */}}
apiVersion: v1
kind: Secret