-
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
Partially Enforced sets Enforced status to true #679
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #679 +/- ##
==========================================
+ Coverage 80.20% 82.43% +2.22%
==========================================
Files 64 72 +8
Lines 4492 5414 +922
==========================================
+ Hits 3603 4463 +860
- Misses 600 639 +39
- Partials 289 312 +23
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@makslion, shall we close #677? |
29ae6a5
to
b53d4d8
Compare
@guicassolato I wanted to wait until checks have passed before posting it in the Slack discussion. For me, it would make sense to close #677 as we don't really want to revert the change. What was fixed in that PR is still valid - it just revealed another issue. I'm using the old gh issue (#611) just for tracking purposes. A brief recap of the conversation that lead to this: What was discussed in the Slack thread makes more sense tbh. With this change, we will mark the DNS Policy as not enforced only if we fail to retrieve the list of DNS Records or if there is no single DNS Record controlled by the policy and in a ready state. In all other cases the |
Thanks @makslion. I'll close #677 then. |
} | ||
cond := &metav1.Condition{ | ||
Type: string(PolicyConditionEnforced), | ||
Status: status, | ||
Status: metav1.ConditionTrue, | ||
Reason: string(PolicyReasonEnforced), | ||
Message: message, | ||
} |
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.
From what i understand this was the important bit to revert from https://github.com/Kuadrant/kuadrant-operator/pull/677/files#diff-c62f06c8c31cd4ef9b0a3f839225773a42ea10c75dff00563b42b413ec425107, but we still need this https://github.com/Kuadrant/kuadrant-operator/pull/677/files#diff-06c8a42ee2952e17c9b90724b17324a7dfb178dbea00e606ce3c6eb62b3bd73eR118, so i think this is fine.
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.
Yes, just the Status
is the problem. The rest should stay
Redo of the change made earlier about the partially enforced state.
Not the "Partially Enforced" will count as Enforced (will set the Enforced Status to true)