Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit ee7ce37

Browse files
authored
Merge pull request #117 from Revolyssup/master
Changed filters for component generation according to meshkit changes
2 parents 160d7c0 + 523edbb commit ee7ce37

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ replace github.com/kudobuilder/kuttl => github.com/layer5io/kuttl v0.4.1-0.20200
66

77
require (
88
github.com/layer5io/meshery-adapter-library v0.1.23
9-
github.com/layer5io/meshkit v0.2.24
9+
github.com/layer5io/meshkit v0.2.29
1010
github.com/layer5io/service-mesh-performance v0.3.3
1111
gopkg.in/yaml.v2 v2.4.0
1212
k8s.io/apimachinery v0.18.12

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,10 @@ github.com/layer5io/meshery-adapter-library v0.1.23 h1:7eGxHJL4Ag6gU2ZBqsYrbBkQB
562562
github.com/layer5io/meshery-adapter-library v0.1.23/go.mod h1:SLknhKksSoUtKzG2tvJKkN/DsMnGV+O+etmuj5Qew48=
563563
github.com/layer5io/meshkit v0.2.24 h1:ILWDRmnDPtXyLiNGxn5OTu1iF/XyBDQLgz/Y8paVwsc=
564564
github.com/layer5io/meshkit v0.2.24/go.mod h1:blHAWgbcsNJ3rjKr8YvYke8jQILV75vRaARXYwSh0YA=
565+
github.com/layer5io/meshkit v0.2.26 h1:Q9JfB3Nzqat3mKB09S0vu4lPrtRLLUYurKpvLBT0+Uw=
566+
github.com/layer5io/meshkit v0.2.26/go.mod h1:blHAWgbcsNJ3rjKr8YvYke8jQILV75vRaARXYwSh0YA=
567+
github.com/layer5io/meshkit v0.2.29 h1:Sdp40Jmwq78i3NAaQb6+pkaaiBTfRD+oQhOz91SAxlc=
568+
github.com/layer5io/meshkit v0.2.29/go.mod h1:blHAWgbcsNJ3rjKr8YvYke8jQILV75vRaARXYwSh0YA=
565569
github.com/layer5io/service-mesh-performance v0.3.2-0.20210122142912-a94e0658b021/go.mod h1:W153amv8aHAeIWxO7b7d7Vibt9RhaEVh4Uh+RG+BumQ=
566570
github.com/layer5io/service-mesh-performance v0.3.2/go.mod h1:W153amv8aHAeIWxO7b7d7Vibt9RhaEVh4Uh+RG+BumQ=
567571
github.com/layer5io/service-mesh-performance v0.3.3 h1:KtouYXg64y+G0soPJwDeB0sM6PXolBpkV6Ke15aqwmk=

main.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,13 @@ func registerWorkloads(port string, log logger.Handler) {
171171
Filter: manifests.CrdFilter{
172172
RootFilter: []string{"$[?(@.kind==\"CustomResourceDefinition\")]"},
173173
NameFilter: []string{"$..[\"spec\"][\"names\"][\"kind\"]"},
174-
VersionFilter: []string{"$..spec.versions[0]", " --o-filter", "$[0]"},
175-
GroupFilter: []string{"$..spec", " --o-filter", "$[]"},
176-
SpecFilter: []string{"$..openAPIV3Schema.properties.spec", " --o-filter", "$[]"},
174+
VersionFilter: []string{"$[0]..spec.versions[0]"},
175+
GroupFilter: []string{"$[0]..spec"},
176+
SpecFilter: []string{"$[0]..openAPIV3Schema.properties.spec"},
177+
ItrFilter: []string{"$[?(@.spec.names.kind"},
178+
ItrSpecFilter: []string{"$[?(@.spec.names.kind"},
179+
VField: "name",
180+
GField: "group",
177181
},
178182
},
179183
Operation: internalconfig.OSMOperation,

0 commit comments

Comments
 (0)