-
Notifications
You must be signed in to change notification settings - Fork 33
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
RLP Defaults #456
RLP Defaults #456
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #456 +/- ##
==========================================
+ Coverage 30.03% 30.10% +0.06%
==========================================
Files 58 58
Lines 4132 4136 +4
==========================================
+ Hits 1241 1245 +4
Misses 2822 2822
Partials 69 69
Flags with carried forward coverage won't be shown. Click here to find out more.
|
906dc2c
to
6de620e
Compare
Defaults: kuadrantv1beta2.CommonSpec{ | ||
Limits: map[string]kuadrantv1beta2.Limit{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other places such as limitador_cluster_envoyfilter_controller_test.go
still use implicit limits to test the implicit path still works as intended
Not sure what do we want to do with the guides, they still use the implicit default fields for RLP. Not sure do we want to update them to use the explicit default field instead 🤔 |
cdc58b7
to
30a820e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TL:DR code works as expected.
The function of the code seems to be working as expected, however I do have a local issue with writing the RLP spec into the isisto gateway. Happens on main also. This meant that I could not follow the linked guide.
What I did observe was the limitador CR being update with the implicit or explicit defaults, which was expected. My assumption the kuadrant operator did write these changes to the wasm shim.
953ce0a
to
5b04f4e
Compare
Rebased and resolved conflicts |
@@ -393,7 +393,7 @@ run: generate fmt vet ## Run a controller from your host. | |||
go run ./main.go | |||
|
|||
docker-build: ## Build docker image with the manager. | |||
docker build -t $(IMG) . | |||
docker build -t $(IMG) . --load |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If using podman runtime with docker cli also, there was the following warning locally for me:
=> CACHED [stage-1 2/3] COPY --from=builder /workspace/manager . 0.0s
WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
This can cause the cluster to use an old build image as the newly built image is kept in cache only
* feat: rlp default field * refactor: rlp GetLimits based on implicit or default rules * feat: rlp validation to prevent both implicit and explicit default rules * refactor: CEL for validation of RLP implicit and explicit default mutual exclusivity * refactor: use default limits field for rlp controller tests * docs: update rlp reference * refactor: common spec validation * test: RLP atomic default integration test * refactor: remove unneccessary getters * fix: use common spec limits for wasm rules * docs: address comments with new defaults field * fix: load image for docker use explicitly
Description
Closes: #455
defaults
field for full atomic explicit defaultsbare rules
(i.e. implict defaults "spec.limits") is kept, but is now mutually exclusive with the above via CELVerification
Functionality is already tested by integration tests but if you want to verify functionality:
defaults
field for defining limits instead: