Skip to content
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

Do not requeue error when disableNonTLSListen is misconfigured #887

Merged
merged 1 commit into from
Nov 10, 2021

Conversation

ChunyiLyu
Copy link
Contributor

@ChunyiLyu ChunyiLyu commented Nov 3, 2021

This closes #884

Note to reviewers: remember to look at the commits in this PR and consider if they can be squashed

Summary Of Changes

  • do not requeue on error when disableNonTLSListen is set to true but TLS is not enabled; this is a user configuration error and need to be fixed by user updating rabbitmqcluster manifest which will trigger reconcile anyways
  • reconcileTLS() returns a special error disableNonTLSConfigErr. Reconcile() identifies the error and exit the reconcile so no k8s resource is created for the misconfigured rabbitmqcluster.

Additional Context

Local Testing

- true but TLS is not enabled; this is a user confguration
error and need to be fixed by user updating the
rabbitmqcluster
- reconcileTLS returns a special error so the controller
will exit
Copy link
Collaborator

@Zerpet Zerpet left a comment

Choose a reason for hiding this comment

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

🚀

@ChunyiLyu ChunyiLyu merged commit 5f8578d into main Nov 10, 2021
@ChunyiLyu ChunyiLyu deleted the disable-non-tls-listener branch November 10, 2021 16:41
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.

Improve UX when Disable non-TLS listeners is true and TLS is not configured
2 participants