From c17e3d4c0cf36191f5a00c3ff15df2f00e77a2f8 Mon Sep 17 00:00:00 2001 From: Gabriel Bernal Date: Wed, 18 Oct 2023 15:37:35 +0200 Subject: [PATCH] add file extension validation Signed-off-by: Gabriel Bernal --- api/v1alpha1/perses_types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/v1alpha1/perses_types.go b/api/v1alpha1/perses_types.go index 9d77f63..71bb4a5 100644 --- a/api/v1alpha1/perses_types.go +++ b/api/v1alpha1/perses_types.go @@ -22,6 +22,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) +// +kubebuilder:validation:Enum=json,yaml type FileExtension string type File struct {