From 0f2d4008fb400f3183c795b148584df9257d0b42 Mon Sep 17 00:00:00 2001 From: salonichf5 <146118978+salonichf5@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:41:24 -0600 Subject: [PATCH] Add SnippetFilter CRD (#2472) Problem: User wants to define a CRD for snippetsFilter to apply custom nginx configurations Solution: Defined a CRD for snippetsFilter --- apis/v1alpha1/snippetsfilter_types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apis/v1alpha1/snippetsfilter_types.go b/apis/v1alpha1/snippetsfilter_types.go index decb6190a4..4912ff533c 100644 --- a/apis/v1alpha1/snippetsfilter_types.go +++ b/apis/v1alpha1/snippetsfilter_types.go @@ -52,7 +52,10 @@ type Snippet struct { Context NginxContext `json:"context"` // Value is the NGINX configuration snippet. +<<<<<<< HEAD // +kubebuilder:validation:MinLength=1 +======= +>>>>>>> 88885187 (Add SnippetFilter CRD (#2472)) Value string `json:"value"` }