Skip to content

Commit

Permalink
ratelimit: Change rate limit service type to cluster (#1578)
Browse files Browse the repository at this point in the history
* Allow other service types in the rate limit service

Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>

* make gen-check

Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>

* Revert "make gen-check"

This reverts commit 55538c4.

Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>

* Change default service type to Cluster

Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>

* restore default func

Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>

* update test

Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>

---------

Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
  • Loading branch information
cnvergence authored Jun 27, 2023
1 parent 4e6786a commit 155f75f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (r *ResourceRender) Service() (*corev1.Service, error) {

labels := rateLimitLabels()

serviceSpec := resource.ExpectedServiceSpec(egcfgv1a1.DefaultKubernetesServiceType())
serviceSpec := resource.ExpectedServiceSpec(egcfgv1a1.GetKubernetesServiceType(egcfgv1a1.ServiceTypeClusterIP))
serviceSpec.Ports = ports
serviceSpec.Selector = resource.GetSelector(labels).MatchLabels

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ metadata:
name: envoy-ratelimit
namespace: envoy-gateway-system
spec:
type: LoadBalancer
type: ClusterIP
sessionAffinity: None
ExternalTrafficPolicy: Local
ports:
- name: http
port: 8081
Expand Down

0 comments on commit 155f75f

Please sign in to comment.