Skip to content

GH-641 enforced condition on dnspolicy #449

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

Merged
merged 3 commits into from
Mar 22, 2024
Merged

Conversation

maksymvavilov
Copy link
Contributor

@maksymvavilov maksymvavilov commented Mar 5, 2024

What

Following recent changes with the auth policy and introducing DNS Policy to the enforced condition.
Also closes #454

How

The policy is used to create DNS Records and records are left with the controller owner annotation that mentions the policy. Listing DNS records and finding the one controlled by the policy should be sufficient to indicate that the policy was enforced, also including a tinny change to the test suite to reflect new logic.

Verification

Integration suite passing should be sufficient. One could go through the "typical installation" and observe policy getting enforced status.

@maksymvavilov maksymvavilov force-pushed the GH-641 branch 3 times, most recently from 0192ff9 to 8f0ce54 Compare March 5, 2024 14:19
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Merging #449 (99c9c1f) into main (e51ddaf) will decrease coverage by 51.29%.
The diff coverage is 0.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #449       +/-   ##
===========================================
- Coverage   81.21%   29.92%   -51.29%     
===========================================
  Files          64       58        -6     
  Lines        4492     4147      -345     
===========================================
- Hits         3648     1241     -2407     
- Misses        569     2837     +2268     
+ Partials      275       69      -206     
Flag Coverage Δ
integration ?
unit 29.92% <0.00%> (-0.11%) ⬇️

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

Components Coverage Δ
api/v1beta1 (u) ∅ <ø> (∅)
api/v1beta2 (u) 50.71% <ø> (-40.72%) ⬇️
pkg/common (u) 87.70% <ø> (-1.12%) ⬇️
pkg/istio (u) 41.61% <ø> (-33.55%) ⬇️
pkg/log (u) 36.84% <ø> (-57.90%) ⬇️
pkg/reconcilers (u) 38.20% <ø> (-25.85%) ⬇️
pkg/rlptools (u) 56.40% <ø> (-23.06%) ⬇️
controllers (i) 8.04% <0.00%> (-70.42%) ⬇️
Files Coverage Δ
controllers/dnspolicy_status.go 0.00% <0.00%> (-86.37%) ⬇️

... and 45 files with indirect coverage changes

@maksymvavilov maksymvavilov marked this pull request as ready for review March 11, 2024 11:09
@maksymvavilov maksymvavilov requested a review from a team as a code owner March 11, 2024 11:09
@maksymvavilov maksymvavilov changed the title [WIP] GH-641 enforced condition on dnspolicy GH-641 enforced condition on dnspolicy Mar 15, 2024
@maleck13
Copy link
Collaborator

Changes look good to me

@maleck13 maleck13 merged commit 9edaa67 into Kuadrant:main Mar 22, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dnspolicy: Aggregate DNSRecord status
2 participants