Skip to content

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

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

rene-dekker
Copy link
Member

No description provided.

secret := render.DexTLSSecretName
certificate, err := certificateManager.GetCertificate(r.client, secret, common.OperatorNamespace())
if authenticationCR != nil && authenticationCR.Status.State == operatorv1.TigeraStatusReady {
if !utils.IsDexDisabled(authenticationCR) {
Copy link
Member

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)?

Copy link
Member Author

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 ;)

Copy link
Member

@tmjd tmjd left a comment

Choose a reason for hiding this comment

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

LGTM

@rene-dekker
Copy link
Member Author

/merge-when-ready delete-branch

@marvin-tigera
Copy link
Contributor

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.

@marvin-tigera marvin-tigera merged commit d334553 into tigera:master Feb 6, 2025
5 checks passed
@marvin-tigera
Copy link
Contributor

I'm sorry but I failed delete the branch after merging the pull request.

marvin-tigera added a commit that referenced this pull request Feb 6, 2025
…761-origin-release-v1.37

Automated cherry pick of #3761: Remove circular dependency between apiserver and
@rene-dekker rene-dekker deleted the TSLA-8741 branch February 6, 2025 20:58
rene-dekker added a commit that referenced this pull request Mar 28, 2025
…iserver and (#3841)

* Remove circular dependency between apiserver and authentication

* Remove double negations by turning IsDexDisabled into DexEnabled

* Fix copyright headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants