Skip to content

Commit

Permalink
refactor(prose/filter): rename compiled golang filters
Browse files Browse the repository at this point in the history
  • Loading branch information
qlonik committed Apr 28, 2024
1 parent 80b125b commit cc7c809
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions docker/istio-proxyv2.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ COPY ./privacy-profile-composer/go.mod ./privacy-profile-composer/go.sum ./
RUN go mod download

COPY ./privacy-profile-composer/ ./
RUN go build -o dist/simple.so -buildmode=c-shared ./cmd/envoy-filter
RUN go build -o dist/passthrough.so -buildmode=c-shared ./cmd/envoy-filter-passthrough
RUN go build -o dist/traces-opa-singleton.so -buildmode=c-shared ./cmd/envoy-filter-traces-opa-singleton
RUN go build -o dist/prose.so -buildmode=c-shared ./cmd/prose-filter
RUN go build -o dist/passthrough.so -buildmode=c-shared ./cmd/passthrough-filter
RUN go build -o dist/tooling.so -buildmode=c-shared ./cmd/tooling-filter

# This version needs to match the deployed istiod helmrelease version
FROM istio/proxyv2:1.20.3@sha256:f4e94588a14eee4f053a80a767128ffc482a219f6c6e23039b7db1b6a6081a77
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: List
extra:
filterName: &filterName simple
filterName: &filterName prose
name: &name bookinfo-with-prose-filter

baseSpec: &baseSpec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: List
extra:
filterName: &filterName traces-opa-singleton
filterName: &filterName tooling
name: &name bookinfo-with-tooling-filter

baseSpec: &baseSpec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"github.com/envoyproxy/envoy/contrib/golang/filters/http/source/go/pkg/http"

"privacy-profile-composer/pkg/envoyfilter"
"privacy-profile-composer/pkg/envoyfilter/passthrough"
"privacy-profile-composer/pkg/envoyfilter/passthrough_filter"
)

const Name = "passthrough"

func init() {
http.RegisterHttpFilterConfigFactoryAndParser(Name, passthrough.FilterFactory, &envoyfilter.ConfigParser{})
http.RegisterHttpFilterConfigFactoryAndParser(Name, passthrough_filter.FilterFactory, &envoyfilter.ConfigParser{})
}

func main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"privacy-profile-composer/pkg/envoyfilter"
)

const Name = "simple"
const Name = "prose"

func init() {
http.RegisterHttpFilterConfigFactoryAndParser(Name, envoyfilter.ConfigFactory, &envoyfilter.ConfigParser{})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import (
"github.com/envoyproxy/envoy/contrib/golang/filters/http/source/go/pkg/http"

"privacy-profile-composer/pkg/envoyfilter"
"privacy-profile-composer/pkg/envoyfilter/passthrough_buffer_traces_opa_singleton"
"privacy-profile-composer/pkg/envoyfilter/tooling_filter"
)

const Name = "traces-opa-singleton"
const Name = "tooling"

func init() {
http.RegisterHttpFilterConfigFactoryAndParser(
Name,
passthrough_buffer_traces_opa_singleton.FilterFactory,
tooling_filter.FilterFactory,
&envoyfilter.ConfigParser{},
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package passthrough
package passthrough_filter

import "github.com/envoyproxy/envoy/contrib/golang/common/go/api"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package passthrough_buffer_traces_opa_singleton
package tooling_filter

import (
"strconv"
Expand Down

0 comments on commit cc7c809

Please sign in to comment.