Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into GHSA-8r3f-844c-mc37
Browse files Browse the repository at this point in the history
  • Loading branch information
shahar-h committed Apr 25, 2024
2 parents afb43da + fdb47dd commit 8c7d6d7
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 13 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/ratelimit_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ type RateLimitSelectCondition struct {
SourceCIDR *SourceMatch `json:"sourceCIDR,omitempty"`
}

// +kubebuilder:validation:Enum=Exact;Distinct
type SourceMatchType string

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,9 @@ spec:
properties:
type:
default: Exact
enum:
- Exact
- Distinct
type: string
value:
description: |-
Expand Down Expand Up @@ -701,6 +704,9 @@ spec:
properties:
type:
default: Exact
enum:
- Exact
- Distinct
type: string
value:
description: |-
Expand Down
7 changes: 3 additions & 4 deletions proto/extension/context.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions proto/extension/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion proto/extension/service_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/e2e/testdata/ratelimit-cidr-match.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
- clientSelectors:
- sourceCIDR:
value: 0.0.0.0/0
type: distinct
type: Distinct
limit:
requests: 3
unit: Hour
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/testdata/ratelimit-multiple-listeners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
- clientSelectors:
- sourceCIDR:
value: 0.0.0.0/0
type: distinct
type: Distinct
limit:
requests: 3
unit: Hour
4 changes: 2 additions & 2 deletions tools/make/lint.mk
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ lint.shellcheck: $(tools/shellcheck)
$(tools/shellcheck) tools/hack/*.sh

.PHONY: gen-check
gen-check: generate manifests go.testdata.complete
gen-check: generate manifests protos go.testdata.complete
@$(LOG_TARGET)
@if [ ! -z "`git status --porcelain`" ]; then \
$(call errorlog, ERROR: Some files need to be updated, please run 'make generate' and 'make manifests' to include any changed files to your PR); \
$(call errorlog, ERROR: Some files need to be updated, please run 'make generate', 'make manifests' and 'make protos' to include any changed files to your PR); \
git diff --exit-code; \
fi

Expand Down

0 comments on commit 8c7d6d7

Please sign in to comment.