From e5ee61f73ab4c22645e54cdb7b80affd665df1fb Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Mon, 25 Nov 2024 16:06:18 +0545 Subject: [PATCH] fix: resource selector docs for CRD --- types/resource_selector.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/types/resource_selector.go b/types/resource_selector.go index b4b1bdd9..5fbfe266 100644 --- a/types/resource_selector.go +++ b/types/resource_selector.go @@ -60,11 +60,15 @@ type ResourceSelector struct { ID string `yaml:"id,omitempty" json:"id,omitempty"` Name string `yaml:"name,omitempty" json:"name,omitempty"` Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty"` - Types Items `yaml:"types,omitempty" json:"types,omitempty"` - Statuses Items `yaml:"statuses,omitempty" json:"statuses,omitempty"` TagSelector string `yaml:"tagSelector,omitempty" json:"tagSelector,omitempty"` LabelSelector string `json:"labelSelector,omitempty" yaml:"labelSelector,omitempty"` FieldSelector string `json:"fieldSelector,omitempty" yaml:"fieldSelector,omitempty"` + + // Types filter resources by the type + Types Items `yaml:"types,omitempty" json:"types,omitempty"` + + // Statuses filter resources by the status + Statuses Items `yaml:"statuses,omitempty" json:"statuses,omitempty"` } func (c ResourceSelector) IsEmpty() bool {