Skip to content

Commit

Permalink
Merge pull request #3725 from nelljerram/use-envoy-proxy-image
Browse files Browse the repository at this point in the history
Use our own build of the Envoy proxy image
  • Loading branch information
nelljerram authored Jan 28, 2025
2 parents 4ba1fcc + 8777e20 commit 1b5df50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions config/enterprise_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@ components:
image: tigera/envoy-gateway
version: master
gateway-api-envoy-proxy:
image: envoyproxy/envoy
version: distroless-v1.31.0
registry: docker.io/
image: tigera/envoy-proxy
version: master
gateway-api-envoy-ratelimit:
image: tigera/envoy-ratelimit
version: master
6 changes: 3 additions & 3 deletions pkg/components/enterprise.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ var (
}

ComponentGatewayAPIEnvoyProxy = Component{
Version: "distroless-v1.31.0",
Image: "envoyproxy/envoy",
Registry: "docker.io/",
Version: "master",
Image: "tigera/envoy-proxy",
Registry: "",
}

ComponentGatewayAPIEnvoyRatelimit = Component{
Expand Down
4 changes: 2 additions & 2 deletions pkg/render/gateway_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ var _ = Describe("Gateway API rendering tests", func() {
Expect(gatewayComp.ResolveImages(nil)).NotTo(HaveOccurred())
Expect(gatewayComp.(*gatewayAPIImplementationComponent).envoyGatewayImage).To(Equal("myregistry.io/tigera/envoy-gateway:" + components.ComponentGatewayAPIEnvoyGateway.Version))
Expect(gatewayComp.(*gatewayAPIImplementationComponent).envoyRatelimitImage).To(Equal("myregistry.io/tigera/envoy-ratelimit:" + components.ComponentGatewayAPIEnvoyRatelimit.Version))
Expect(gatewayComp.(*gatewayAPIImplementationComponent).envoyProxyImage).To(Equal("myregistry.io/envoyproxy/envoy:distroless-v1.31.0"))
Expect(gatewayComp.(*gatewayAPIImplementationComponent).envoyProxyImage).To(Equal("myregistry.io/tigera/envoy-proxy:" + components.ComponentGatewayAPIEnvoyProxy.Version))

objsToCreate, objsToDelete := gatewayComp.Objects()
Expect(objsToDelete).To(HaveLen(0))
Expand Down Expand Up @@ -297,7 +297,7 @@ var _ = Describe("Gateway API rendering tests", func() {

proxy, err := rtest.GetResourceOfType[*envoyapi.EnvoyProxy](objsToCreate, "envoy-proxy-config", "tigera-gateway")
Expect(err).NotTo(HaveOccurred())
Expect(*proxy.Spec.Provider.Kubernetes.EnvoyDeployment.Container.Image).To(Equal("myregistry.io/envoyproxy/envoy:distroless-v1.31.0"))
Expect(*proxy.Spec.Provider.Kubernetes.EnvoyDeployment.Container.Image).To(Equal("myregistry.io/tigera/envoy-proxy:" + components.ComponentGatewayAPIEnvoyProxy.Version))
Expect(proxy.Spec.Provider.Kubernetes.EnvoyDeployment.Pod.ImagePullSecrets).To(ContainElement(pullSecretRefs[0]))

gatewayCM, err := rtest.GetResourceOfType[*corev1.ConfigMap](objsToCreate, "envoy-gateway-config", "tigera-gateway")
Expand Down

0 comments on commit 1b5df50

Please sign in to comment.