From b89421421dda260097fb2827b17d5a1380b3eea1 Mon Sep 17 00:00:00 2001 From: Abbas Gheydi Date: Sat, 13 Apr 2024 16:18:23 +0330 Subject: [PATCH 1/2] expose rls parser --- rls_parser.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 rls_parser.go diff --git a/rls_parser.go b/rls_parser.go new file mode 100644 index 0000000..d64c093 --- /dev/null +++ b/rls_parser.go @@ -0,0 +1,14 @@ +package main + +import ( + contourv1 "github.com/projectcontour/contour/apis/projectcontour/v1" + "github.com/snapp-incubator/contour-global-ratelimit-operator/internal/parser" +) + +// RLSParser is used to extract rate limit configs from httpproxy. +type RlsParser struct{} + +// ExtractRlsDescriptors is a wrapper around the internal parser package. +func (r *RlsParser) ExtractRlsDescriptors(httpProxy *contourv1.HTTPProxy) (hasRateLimitConfig bool, policies parser.HTTPProxyGlobalRateLimitPolicy, err error) { + return parser.ExtractDescriptorsFromHTTPProxy(httpProxy) +} From 36c83933390bf3033ce8c4a656e65f43c0d85461 Mon Sep 17 00:00:00 2001 From: Abbas Gheydi Date: Sat, 13 Apr 2024 16:24:19 +0330 Subject: [PATCH 2/2] release v1.0.0 --- deploy/charts/rls-operator/Chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/charts/rls-operator/Chart.yaml b/deploy/charts/rls-operator/Chart.yaml index aec96b4..f7c7689 100644 --- a/deploy/charts/rls-operator/Chart.yaml +++ b/deploy/charts/rls-operator/Chart.yaml @@ -13,9 +13,9 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 +version: 1.0.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.1.0" +appVersion: "1.0.0"