Skip to content

Commit

Permalink
[rlp-v2] Sync RLPv2 base branch with main (Kuadrant#202)
Browse files Browse the repository at this point in the history
* Build images with replaces image (Kuadrant#193)

* [makefile] Updating the `replaces` directive in CSV

* [gh workflow] Adding `replacesVersion` as input for workflow_dispatch

* [config] Adding default replaces operator value

* [bundle] Updated bundle

* Building the catalog with the replaces directive (Kuadrant#194)

* [catalog] Building the catalog with the replaces directive

* [catalog] Setting default replaces version to `0.0.0-alpha`

* [bundle] Updating config and bundle with new default release version

* upgrade operator-sdk v1.28.1

* fix verify-bundle task

* Create a ServiceMeshMember, rather than mutating the ServiceMeshMemberRoll

* Fixed access to servicemeshmember

* [test] Unit-tests for common/k8s_utils.go (part 2 of 3) (Kuadrant#191)

* test: Add unit-tests to StatusConditionsMarshalJSON (Kuadrant#167)

* test: Add unit-tests to IsOwnedBy (Kuadrant#167)

* refactor: Add comment to IsOwnedBy (Kuadrant#167)

* test: Add unit-test to GetServicePortNumber (Kuadrant#167)

* Update gateway-api module to v0.6.2 (Kuadrant#153)

* Update gateway api dep to v0.6.2
Update controller runtime
Set go version 1.19
Use github.com/onsi/ginkgo/v2 which is used by the latest version if controller-runtime (envtest).

* Update GatewayClass, Gateway and HTTPRoute to v1beta1

Since v0.6.0 GatewayClass, Gateway and HTTPRoute have moved to the
v1beta1 version of the API and support in v1alpha2 will be removed
eventually. All references to these APIS are now updated to use v1beta1.

PolicyTargetReference are still v1alpha2.

* [test] Unit-tests for common/k8s_utils.go (part 3 of 3) & Unit-tests and improvements for common/yaml_decoder.go (Kuadrant#195)

* test: Add test-case to TestObjectKeyListDifference (Kuadrant#167)

- when inputA and inputB have no common elements then return inputA as the result

* refactor: Rename tests for ObjectKeyListDifference (Kuadrant#167)

* test: Add unit-tests to ContainsObjectKey (Kuadrant#167)

* test: Add unit-tests to FindObjectKey (Kuadrant#167)

* test: Add unit-tests to FindDeploymentStatusCondition (Kuadrant#167)

* refactor: Clarify test name in TestStatusConditionsMarshalJSON (Kuadrant#167)

* test: Add unit-tests to DecodeFile (Kuadrant#167)

* refactor, improvements: DecodeFile YAML decoder (Kuadrant#167)

- Refactor logger initialisation and document decoding to fail fast and return errors immediately
- Enhanced empty doc check
- Add comment to the function

---------

Co-authored-by: dd di cesare <[email protected]>
Co-authored-by: Eguzki Astiz Lezaun <[email protected]>
Co-authored-by: Alex Snaps <[email protected]>
Co-authored-by: artem_tiupin <[email protected]>
Co-authored-by: Michael Nairn <[email protected]>
  • Loading branch information
6 people authored and KevFan committed Aug 14, 2023
1 parent 70d61c0 commit ceec73a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/ratelimitpolicy_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func testBuildBasicRoutePolicy(policyName, ns, routeName string) *kuadrantv1beta
Name: gatewayapiv1beta1.ObjectName(routeName),
},
Limits: map[string]kuadrantv1beta2.Limit{
"l1": kuadrantv1beta2.Limit{
"l1": {
Rates: []kuadrantv1beta2.Rate{
{
Limit: 1, Duration: 3, Unit: kuadrantv1beta2.TimeUnit("minute"),
Expand Down Expand Up @@ -146,7 +146,7 @@ func testBuildGatewayPolicy(policyName, ns, gwName string) *kuadrantv1beta2.Rate
Name: gatewayapiv1beta1.ObjectName(gwName),
},
Limits: map[string]kuadrantv1beta2.Limit{
"l1": kuadrantv1beta2.Limit{
"l1": {
Rates: []kuadrantv1beta2.Rate{
{
Limit: 1, Duration: 3, Unit: kuadrantv1beta2.TimeUnit("minute"),
Expand Down

0 comments on commit ceec73a

Please sign in to comment.