From f5149f824537ba809707c733b9af074ae47b52e8 Mon Sep 17 00:00:00 2001 From: Martin Schuppert <mschuppert@redhat.com> Date: Thu, 9 Nov 2023 10:32:29 +0100 Subject: [PATCH] [tls] update DeplomentResources type --- modules/common/tls/tls.go | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/modules/common/tls/tls.go b/modules/common/tls/tls.go index 6d179a41..a551438f 100644 --- a/modules/common/tls/tls.go +++ b/modules/common/tls/tls.go @@ -62,15 +62,24 @@ type TLS struct { // +kubebuilder:object:generate:=false // DeplomentResources - holding information to be passed in to any deployment require tls certificates type DeplomentResources struct { + // VolumeMounts - - VolumeMounts []corev1.VolumeMount + //VolumeMounts []corev1.VolumeMount // Volumes - - Volumes []corev1.Volume + Volumes []Volume // CAVolumeMounts - - CAVolumeMounts []corev1.VolumeMount + //CAVolumeMounts []corev1.VolumeMount // CAVolumes - - CAVolumes []corev1.Volume + //CAVolumes []corev1.Volume +} + +// +kubebuilder:object:generate:=false +// Volume - +type Volume struct { + IsCA bool + Volume corev1.Volume + VolumeMount corev1.VolumeMount } // NewTLS - initialize and return a TLS struct