-
Notifications
You must be signed in to change notification settings - Fork 330
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
fix(ho): honor deprecated global config fields #1631
fix(ho): honor deprecated global config fields #1631
Conversation
4dd4def
to
959c647
Compare
hypershift-operator/controllers/hostedcluster/hostedcluster_controller.go
Outdated
Show resolved
Hide resolved
74827cb
to
d99abfa
Compare
✅ Deploy Preview for hypershift-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
f565225
to
e736dad
Compare
/hold |
916e45b
to
fb93295
Compare
fb93295
to
c320791
Compare
/unhold |
if obj.Spec.Audit.Profile == "" { | ||
// Populate kubebuilder default for comparison | ||
// https://github.com/openshift/api/blob/f120778bee805ad1a7a4f05a6430332cf5811813/config/v1/types_apiserver.go#L57 | ||
obj.Spec.Audit.Profile = configv1.DefaultAuditProfileType | ||
} |
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.
Bit of explanation on this: Raw yaml is decoded as audit: {}
, but is compared against audit: { Profile: Default }
because of the default being set. Without this, reconciliation stalls later on.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng, hasueki The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@hasueki: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
What this PR does / why we need it:
Fixes #1630
Which issue(s) this PR fixes (optional, use
fixes #<issue_number>(, fixes #<issue_number>, ...)
format, where issue_number might be a GitHub issue, or a Jira story:Fixes #1630
Checklist