Skip to content

Commit

Permalink
added edge host filter for PEM-5001
Browse files Browse the repository at this point in the history
  • Loading branch information
MGamya committed Jun 26, 2024
1 parent 4af332c commit 6be8a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/cluster_edge_native.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (h *V1Client) ListEdgeHosts() ([]*models.V1EdgeHostsMetadata, error) {
func (h *V1Client) GetEdgeHostsByTags(tags map[string]string) ([]*models.V1EdgeHostsMetadata, error) {
continueToken := ""
var items []*models.V1EdgeHostsMetadata
filter := getEdgeFilter(nil, tags)
filter := GetEdgeFilter(nil, tags)
for ok := true; ok; ok = (continueToken != "") {
params := clientV1.NewV1DashboardEdgehostsSearchParamsWithContext(h.ctx).
WithBody(&models.V1SearchFilterSummarySpec{
Expand All @@ -90,7 +90,7 @@ func (h *V1Client) GetEdgeHostsByTags(tags map[string]string) ([]*models.V1EdgeH
return items, nil
}

func getEdgeFilter(extraFilters []*models.V1SearchFilterItem, tags map[string]string) *models.V1SearchFilterSpec {
func GetEdgeFilter(extraFilters []*models.V1SearchFilterItem, tags map[string]string) *models.V1SearchFilterSpec {
filter := &models.V1SearchFilterSpec{
Conjunction: and(),
FilterGroups: []*models.V1SearchFilterGroup{
Expand Down

0 comments on commit 6be8a0c

Please sign in to comment.