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

Vault svc reference #1031

Merged
merged 2 commits into from
May 13, 2022
Merged

Vault svc reference #1031

merged 2 commits into from
May 13, 2022

Conversation

ChunyiLyu
Copy link
Contributor

@ChunyiLyu ChunyiLyu commented May 11, 2022

This closes #1030

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

Summary Of Changes

  • Set status.defaultUser.serviceReference when vault default user is used; this is because downstream, topology operator
    in this case, may rely on the rabbitmqcluster.status for certain information. topology operator relies on the service
    reference to get the name of the ingress service to be able to connect to a given rabbitmqcluster
  • Small refactor to move logic that updates status.defaultUser and status.binding into one function so it's cleaner in Reconcile()
  • Rename updateStatus() to updateStatusConditions(); the function updates statusConditions instead
    of the entire object status

Additional Context

Status tested in integration test.

Local Testing

- the function updates statusConditions instead
of the entire object status
- user is used; this is because downstream, topology operator
in this case, may rely on the rabbitmqcluster.status
for certain information. topology operator relies on the service
reference to get the name of the ingress service to be able to
connect to a given rabbitmqcluster
@Zerpet Zerpet self-requested a review May 12, 2022 14:35
@ChunyiLyu ChunyiLyu merged commit 39a33a2 into main May 13, 2022
@ChunyiLyu ChunyiLyu deleted the vault-svc-reference branch May 13, 2022 09:48
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.

Vault enabled rabbitmqcluster does not expose service information in status
3 participants