Skip to content

Commit dba58df

Browse files
authored
refactor: moves filterapi under internal (envoyproxy#1179)
**Description** Previously, we put the configuration API for the AI Gateawy external processor as a public package because initially the ExtProc was designed to be able to work independent of the control plane ~v0.1. That was true only until before v0.2 where we fully started leveraging Envoy Gateway's extension server as well as the two phase filter architecture to be able to do more robust fallbacks, etc. As a result, it is nearly impossible to make it work outside our control plane, so there's no reason to keep the filterapi package in public. --------- Signed-off-by: Takeshi Yoneda <[email protected]>
1 parent 1ad38b2 commit dba58df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+41
-44
lines changed

cmd/aigw/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ import (
2929
"sigs.k8s.io/controller-runtime/pkg/client"
3030
"sigs.k8s.io/yaml"
3131

32-
"github.com/envoyproxy/ai-gateway/filterapi"
3332
"github.com/envoyproxy/ai-gateway/internal/controller"
3433
"github.com/envoyproxy/ai-gateway/internal/extensionserver"
34+
"github.com/envoyproxy/ai-gateway/internal/filterapi"
3535
)
3636

3737
var (

cmd/aigw/run_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"github.com/stretchr/testify/require"
2424

2525
"github.com/envoyproxy/ai-gateway/cmd/extproc/mainlib"
26-
"github.com/envoyproxy/ai-gateway/filterapi"
26+
"github.com/envoyproxy/ai-gateway/internal/filterapi"
2727
internaltesting "github.com/envoyproxy/ai-gateway/internal/testing"
2828
)
2929

cmd/extproc/mainlib/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"google.golang.org/grpc/health"
2727
"google.golang.org/grpc/health/grpc_health_v1"
2828

29-
"github.com/envoyproxy/ai-gateway/filterapi"
29+
"github.com/envoyproxy/ai-gateway/internal/filterapi"
3030
"github.com/envoyproxy/ai-gateway/internal/metrics"
3131
)
3232

internal/controller/gateway.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626
"sigs.k8s.io/yaml"
2727

2828
aigv1a1 "github.com/envoyproxy/ai-gateway/api/v1alpha1"
29-
"github.com/envoyproxy/ai-gateway/filterapi"
3029
"github.com/envoyproxy/ai-gateway/internal/controller/rotators"
30+
"github.com/envoyproxy/ai-gateway/internal/filterapi"
3131
"github.com/envoyproxy/ai-gateway/internal/internalapi"
3232
"github.com/envoyproxy/ai-gateway/internal/llmcostcel"
3333
)

internal/controller/gateway_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626
"sigs.k8s.io/yaml"
2727

2828
aigv1a1 "github.com/envoyproxy/ai-gateway/api/v1alpha1"
29-
"github.com/envoyproxy/ai-gateway/filterapi"
3029
"github.com/envoyproxy/ai-gateway/internal/controller/rotators"
30+
"github.com/envoyproxy/ai-gateway/internal/filterapi"
3131
)
3232

3333
func TestGatewayController_Reconcile(t *testing.T) {

internal/controller/rotators/gcp_oidc_token_rotator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323
"sigs.k8s.io/controller-runtime/pkg/client"
2424

2525
aigv1a1 "github.com/envoyproxy/ai-gateway/api/v1alpha1"
26-
"github.com/envoyproxy/ai-gateway/filterapi"
2726
"github.com/envoyproxy/ai-gateway/internal/controller/tokenprovider"
27+
"github.com/envoyproxy/ai-gateway/internal/filterapi"
2828
)
2929

3030
const (

internal/extproc/backendauth/api_key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
corev3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
1414
extprocv3 "github.com/envoyproxy/go-control-plane/envoy/service/ext_proc/v3"
1515

16-
"github.com/envoyproxy/ai-gateway/filterapi"
16+
"github.com/envoyproxy/ai-gateway/internal/filterapi"
1717
)
1818

1919
// apiKeyHandler implements [Handler] for api key authz.

internal/extproc/backendauth/api_key_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
extprocv3 "github.com/envoyproxy/go-control-plane/envoy/service/ext_proc/v3"
1313
"github.com/stretchr/testify/require"
1414

15-
"github.com/envoyproxy/ai-gateway/filterapi"
15+
"github.com/envoyproxy/ai-gateway/internal/filterapi"
1616
)
1717

1818
func TestNewAPIKeyHandler(t *testing.T) {

internal/extproc/backendauth/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
extprocv3 "github.com/envoyproxy/go-control-plane/envoy/service/ext_proc/v3"
1313

14-
"github.com/envoyproxy/ai-gateway/filterapi"
14+
"github.com/envoyproxy/ai-gateway/internal/filterapi"
1515
)
1616

1717
// Handler is the interface that deals with the backend auth for a specific backend.

internal/extproc/backendauth/auth_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/stretchr/testify/require"
1212

13-
"github.com/envoyproxy/ai-gateway/filterapi"
13+
"github.com/envoyproxy/ai-gateway/internal/filterapi"
1414
)
1515

1616
func TestNewHandler(t *testing.T) {

0 commit comments

Comments
 (0)