-
Notifications
You must be signed in to change notification settings - Fork 145
Remove circular dependency between apiserver and authentication #3761
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
Conversation
c108ebe
to
d903b87
Compare
secret := render.DexTLSSecretName | ||
certificate, err := certificateManager.GetCertificate(r.client, secret, common.OperatorNamespace()) | ||
if authenticationCR != nil && authenticationCR.Status.State == operatorv1.TigeraStatusReady { | ||
if !utils.IsDexDisabled(authenticationCR) { |
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.
Would you mind adding a utils.IsDexEnabled
function and remove this double negative (negating isDisabled)?
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.
Added a commit. Much better, I can't stand it either ;)
58975f4
to
e7d4a42
Compare
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.
LGTM
/merge-when-ready delete-branch |
OK, I will merge the pull request when it's ready, leave the commits as is when I merge it, and delete the branch after I've merged it. |
I'm sorry but I failed delete the branch after merging the pull request. |
…761-origin-release-v1.37 Automated cherry pick of #3761: Remove circular dependency between apiserver and
…iserver and (#3841) * Remove circular dependency between apiserver and authentication * Remove double negations by turning IsDexDisabled into DexEnabled * Fix copyright headers
No description provided.