Skip to content

Commit

Permalink
initial plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
npolshakova committed Feb 14, 2025
1 parent 3f932af commit 96a90b4
Show file tree
Hide file tree
Showing 20 changed files with 756 additions and 517 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ require (
github.com/google/go-cmp v0.6.0
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
github.com/kelseyhightower/envconfig v1.4.0
github.com/mitchellh/hashstructure v1.0.0
github.com/onsi/ginkgo/v2 v2.20.2
github.com/onsi/gomega v1.35.0
github.com/pkg/errors v0.9.1
Expand Down Expand Up @@ -157,7 +158,6 @@ require (
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/hashstructure v1.0.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/moby/locker v1.0.1 // indirect
Expand Down
1 change: 1 addition & 0 deletions hack/utils/oss_compliance/osa_provided.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name|Version|License
[google/go-cmp](https://github.com/google/go-cmp)|v0.6.0|BSD 3-clause "New" or "Revised" License
[grpc-ecosystem/go-grpc-middleware](https://github.com/grpc-ecosystem/go-grpc-middleware)|v1.4.0|Apache License 2.0
[kelseyhightower/envconfig](https://github.com/kelseyhightower/envconfig)|v1.4.0|MIT License
[mitchellh/hashstructure](https://github.com/mitchellh/hashstructure)|v1.0.0|MIT License
[ginkgo/v2](https://github.com/onsi/ginkgo)|v2.20.2|MIT License
[onsi/gomega](https://github.com/onsi/gomega)|v1.35.0|MIT License
[pkg/errors](https://github.com/pkg/errors)|v0.9.1|BSD 2-clause "Simplified" License
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ func (d *directResponse) Equals(in any) bool {
type directResponseGwPass struct {
}

func (p *directResponseGwPass) ApplyForBackend(ctx context.Context, pCtx *ir.RouteBackendContext, in ir.HttpBackend, out *envoy_config_route_v3.Route) error {
// no op
return nil
}

func registerTypes(ourCli versioned.Interface) {
skubeclient.Register[*v1alpha1.DirectResponse](
v1alpha1.DirectResponseGVK.GroupVersion().WithResource("directresponses"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ func (d *listenerOptsPlugin) Equals(in any) bool {
type listenerOptsPluginGwPass struct {
}

func (p *listenerOptsPluginGwPass) ApplyForBackend(ctx context.Context, pCtx *ir.RouteBackendContext, in ir.HttpBackend, out *envoy_config_route_v3.Route) error {
// no op
return nil
}

func NewPlugin(ctx context.Context, commoncol *common.CommonCollections) extensionplug.Plugin {

col := krtutil.SetupCollectionDynamic[v1alpha1.ListenerPolicy](
Expand Down
Loading

0 comments on commit 96a90b4

Please sign in to comment.