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 an excludeAddresses option in DNSPolicy #869

Merged
merged 1 commit into from
Oct 5, 2024
Merged

Add an excludeAddresses option in DNSPolicy #869

merged 1 commit into from
Oct 5, 2024

Conversation

maleck13
Copy link
Collaborator

Signed-off-by: craig [email protected]

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED

Copy link

codecov bot commented Sep 23, 2024

Codecov Report

Attention: Patch coverage is 83.75000% with 13 lines in your changes missing coverage. Please review.

Project coverage is 81.45%. Comparing base (ece13e8) to head (66c232b).
Report is 220 commits behind head on main.

Files with missing lines Patch % Lines
controllers/dnspolicy_dnsrecords.go 72.00% 4 Missing and 3 partials ⚠️
controllers/dnspolicy_status.go 80.00% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #869      +/-   ##
==========================================
+ Coverage   80.20%   81.45%   +1.24%     
==========================================
  Files          64      101      +37     
  Lines        4492     7133    +2641     
==========================================
+ Hits         3603     5810    +2207     
- Misses        600      899     +299     
- Partials      289      424     +135     
Flag Coverage Δ
bare-k8s-integration 8.21% <0.00%> (?)
controllers-integration 73.08% <78.75%> (?)
envoygateway-integration 49.50% <0.00%> (?)
gatewayapi-integration 13.38% <0.00%> (?)
integration ?
istio-integration 53.42% <0.00%> (?)
unit 28.77% <31.25%> (-1.26%) ⬇️

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

Components Coverage Δ
api/v1beta1 (u) 90.90% <100.00%> (+19.48%) ⬆️
api/v1beta2 (u) 81.25% <75.17%> (-10.18%) ⬇️
pkg/common (u) 88.13% <ø> (-0.70%) ⬇️
pkg/istio (u) 71.51% <ø> (-2.40%) ⬇️
pkg/log (u) 94.73% <ø> (ø)
pkg/reconcilers (u) ∅ <ø> (∅)
pkg/rlptools (u) 85.39% <ø> (+5.93%) ⬆️
controllers (i) 82.90% <83.90%> (+6.10%) ⬆️
Files with missing lines Coverage Δ
api/v1alpha1/dnspolicy_types.go 73.73% <100.00%> (-8.09%) ⬇️
controllers/dns_helper.go 94.52% <100.00%> (+10.54%) ⬆️
controllers/dnspolicy_controller.go 83.95% <100.00%> (+0.47%) ⬆️
controllers/dnspolicy_status.go 81.73% <80.00%> (-4.64%) ⬇️
controllers/dnspolicy_dnsrecords.go 65.35% <72.00%> (-0.34%) ⬇️

... and 52 files with indirect coverage changes

@philbrookes
Copy link
Contributor

philbrookes commented Sep 24, 2024

LGTM, other than the failing checks. Nice to see we got CIDR ranges included.

@maleck13 maleck13 marked this pull request as ready for review September 24, 2024 08:47
@maleck13 maleck13 changed the title draft for add an excludeAddresses option in DNSPolicy Add an excludeAddresses option in DNSPolicy Sep 24, 2024
@maleck13
Copy link
Collaborator Author

ignore this for a bit

@maleck13
Copy link
Collaborator Author

maleck13 commented Oct 2, 2024

closes #496

@maleck13 maleck13 force-pushed the gh-496 branch 5 times, most recently from d1e23a6 to b44cbc0 Compare October 3, 2024 11:47
@@ -125,6 +130,9 @@ type DNSPolicyStatus struct {

// +optional
RecordConditions map[string][]metav1.Condition `json:"recordConditions,omitempty"`
// TotalRecords records the total number of individual DNSRecords managed by this DNSPolicy
// +optional
TotalRecords int32 `json:"totalRecords,omitempty"`
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@mikenairn added this maybe not needed? Thought it was a useful thing and planned to use it elsewhere

@maleck13 maleck13 force-pushed the gh-496 branch 7 times, most recently from 72bdb20 to c3aa8c7 Compare October 4, 2024 10:08
Signed-off-by: craig <[email protected]>

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED

add integration test for excludeAddresses

updates post rebase

add total records to status. Add additional status message info

fix-integration

update status and tests

add doc

update dnspolicy ref

helm
@maleck13 maleck13 merged commit ae1c402 into main Oct 5, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants