Skip to content

Commit

Permalink
fix: resource selector docs for CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Nov 25, 2024
1 parent 761f5c8 commit e5ee61f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions types/resource_selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e5ee61f

Please sign in to comment.