Skip to content
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

Add mandatory Gateway API label to the policy CRDs #295

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

guicassolato
Copy link
Contributor

@guicassolato guicassolato commented Nov 13, 2023

  • Add mandatory Gateway API gateway.networking.k8s.io/policy label to the RateLimitPolicy CRD
  • Fixes mandatory Gateway API gateway.networking.k8s.io/policy label in the AuthPolicy CRD

Ref.: https://github.com/youngnick/gateway-api/blob/main/geps/gep-713.md#standard-label-on-crd-objects

Closes #245.

Copy link

codecov bot commented Nov 13, 2023

Codecov Report

Merging #295 (495e494) into main (3136ed9) will decrease coverage by 0.11%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #295      +/-   ##
==========================================
- Coverage   64.50%   64.39%   -0.11%     
==========================================
  Files          35       35              
  Lines        3806     3806              
==========================================
- Hits         2455     2451       -4     
- Misses       1155     1159       +4     
  Partials      196      196              
Flag Coverage Δ
integration 69.79% <ø> (-0.20%) ⬇️
unit 58.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
api/v1beta1 (u) ∅ <ø> (∅)
pkg/common (u) 73.92% <ø> (ø)
pkg/istio (u) 30.24% <ø> (ø)
pkg/log (u) 31.81% <ø> (ø)
pkg/reconcilers (u) 33.68% <ø> (ø)
pkg/rlptools (u) 56.41% <ø> (ø)
controllers (i) 69.79% <ø> (-0.20%) ⬇️
Files Coverage Δ
api/v1beta2/authpolicy_types.go 77.57% <ø> (ø)
api/v1beta2/ratelimitpolicy_types.go 26.86% <ø> (ø)

... and 8 files with indirect coverage changes

@@ -6,6 +6,7 @@ metadata:
creationTimestamp: null
labels:
app: kuadrant
gateway.networking.k8s.io/policy: inherited
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inherited? Shouldn't be direct ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course! My distraction! Fixing it now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, I've just noticed that the one in the AuthPolicy is also wrong!!!

// +kubebuilder:metadata:labels="gateway.networking.k8s.io/policy=inherited"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed both, and rebased.

@guicassolato guicassolato changed the title Add mandatory Gateway API label to the RateLimitPolicy CRD Add mandatory Gateway API label to the policy CRDs Nov 14, 2023
@guicassolato guicassolato merged commit d6e0604 into main Nov 14, 2023
21 checks passed
@guicassolato guicassolato deleted the rlp-gwapi-policy-label branch November 14, 2023 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Changes user facing APIs size/small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add gateway.networking.k8s.io/policy label to the policy CRDs
2 participants