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

Commit

Permalink
Merge pull request #117 from Revolyssup/master
Browse files Browse the repository at this point in the history
Changed filters for component generation according to meshkit changes
  • Loading branch information
leecalcote authored Oct 10, 2021
2 parents 160d7c0 + 523edbb commit ee7ce37
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replace github.com/kudobuilder/kuttl => github.com/layer5io/kuttl v0.4.1-0.20200

require (
github.com/layer5io/meshery-adapter-library v0.1.23
github.com/layer5io/meshkit v0.2.24
github.com/layer5io/meshkit v0.2.29
github.com/layer5io/service-mesh-performance v0.3.3
gopkg.in/yaml.v2 v2.4.0
k8s.io/apimachinery v0.18.12
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,10 @@ github.com/layer5io/meshery-adapter-library v0.1.23 h1:7eGxHJL4Ag6gU2ZBqsYrbBkQB
github.com/layer5io/meshery-adapter-library v0.1.23/go.mod h1:SLknhKksSoUtKzG2tvJKkN/DsMnGV+O+etmuj5Qew48=
github.com/layer5io/meshkit v0.2.24 h1:ILWDRmnDPtXyLiNGxn5OTu1iF/XyBDQLgz/Y8paVwsc=
github.com/layer5io/meshkit v0.2.24/go.mod h1:blHAWgbcsNJ3rjKr8YvYke8jQILV75vRaARXYwSh0YA=
github.com/layer5io/meshkit v0.2.26 h1:Q9JfB3Nzqat3mKB09S0vu4lPrtRLLUYurKpvLBT0+Uw=
github.com/layer5io/meshkit v0.2.26/go.mod h1:blHAWgbcsNJ3rjKr8YvYke8jQILV75vRaARXYwSh0YA=
github.com/layer5io/meshkit v0.2.29 h1:Sdp40Jmwq78i3NAaQb6+pkaaiBTfRD+oQhOz91SAxlc=
github.com/layer5io/meshkit v0.2.29/go.mod h1:blHAWgbcsNJ3rjKr8YvYke8jQILV75vRaARXYwSh0YA=
github.com/layer5io/service-mesh-performance v0.3.2-0.20210122142912-a94e0658b021/go.mod h1:W153amv8aHAeIWxO7b7d7Vibt9RhaEVh4Uh+RG+BumQ=
github.com/layer5io/service-mesh-performance v0.3.2/go.mod h1:W153amv8aHAeIWxO7b7d7Vibt9RhaEVh4Uh+RG+BumQ=
github.com/layer5io/service-mesh-performance v0.3.3 h1:KtouYXg64y+G0soPJwDeB0sM6PXolBpkV6Ke15aqwmk=
Expand Down
10 changes: 7 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,13 @@ func registerWorkloads(port string, log logger.Handler) {
Filter: manifests.CrdFilter{
RootFilter: []string{"$[?(@.kind==\"CustomResourceDefinition\")]"},
NameFilter: []string{"$..[\"spec\"][\"names\"][\"kind\"]"},
VersionFilter: []string{"$..spec.versions[0]", " --o-filter", "$[0]"},
GroupFilter: []string{"$..spec", " --o-filter", "$[]"},
SpecFilter: []string{"$..openAPIV3Schema.properties.spec", " --o-filter", "$[]"},
VersionFilter: []string{"$[0]..spec.versions[0]"},
GroupFilter: []string{"$[0]..spec"},
SpecFilter: []string{"$[0]..openAPIV3Schema.properties.spec"},
ItrFilter: []string{"$[?(@.spec.names.kind"},
ItrSpecFilter: []string{"$[?(@.spec.names.kind"},
VField: "name",
GField: "group",
},
},
Operation: internalconfig.OSMOperation,
Expand Down

0 comments on commit ee7ce37

Please sign in to comment.