Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes Image field from AIGatewayFilterConfigExternalProcess #124

Merged
merged 3 commits into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions api/v1alpha1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,6 @@ type AIGatewayFilterConfigExternalProcess struct {
//
// +optional
Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
// Image is the image of the external process container.
//
// This defaults to the ghcr.io/envoyproxy/ai-gateway/extproc:${VERSION} image where
// ${VERSION} is the version of the Envoy AI Gateway controller.
//
// +optional
Image string `json:"image,omitempty"`
// TODO: maybe adding the option not to deploy the external process filter and let the user deploy it manually?
// Not sure if it is worth it as we are migrating to dynamic modules.
}
Expand Down
3 changes: 0 additions & 3 deletions internal/controller/ai_gateway_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,4 @@ func applyExtProcDeploymentConfigUpdate(d *appsv1.DeploymentSpec, filterConfig *
if replica := extProc.Replicas; replica != nil {
d.Replicas = replica
}
if image := extProc.Image; image != "" {
d.Template.Spec.Containers[0].Image = image
}
}
2 changes: 0 additions & 2 deletions internal/controller/ai_gateway_route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,11 @@ func Test_applyExtProcDeploymentConfigUpdate(t *testing.T) {
ExternalProcess: &aigv1a1.AIGatewayFilterConfigExternalProcess{
Resources: &req,
Replicas: ptr.To[int32](123),
Image: "some-image",
},
},
)
require.Equal(t, req, dep.Template.Spec.Containers[0].Resources)
require.Equal(t, int32(123), *dep.Replicas)
require.Equal(t, "some-image", dep.Template.Spec.Containers[0].Image)
})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,6 @@ spec:
ExternalProcess is the configuration for the external process filter.
This is optional, and if not set, the default values of Deployment spec will be used.
properties:
image:
description: |-
Image is the image of the external process container.

This defaults to the ghcr.io/envoyproxy/ai-gateway/extproc:${VERSION} image where
${VERSION} is the version of the Envoy AI Gateway controller.
type: string
replicas:
description: Replicas is the number of desired pods of the
external process deployment.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
- containerPort: 9090
args:
- -zap-log-level={{ .Values.controller.logLevel }}
- --extprocImage={{ .Values.extProcImage.repository }}:{{ .Values.extProcImage.tag | default .Chart.AppVersion }}
livenessProbe:
grpc:
port: 1063
Expand Down
4 changes: 0 additions & 4 deletions manifests/charts/ai-gateway-helm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Default values for ai-gateway-helm.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

# ExtProc resource will be configured at CRD level, so we only need to specify the image here.
# TODO: this also might be moved to a CRD level as in https://github.com/envoyproxy/ai-gateway/issues/82
extProcImage:
mathetake marked this conversation as resolved.
Show resolved Hide resolved
repository: ghcr.io/envoyproxy/ai-gateway/extproc
# Overrides the image tag whose default is the chart appVersion.
Expand Down
Loading