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

Add watcher for the secret used in the discovery config #504

Merged
merged 5 commits into from
Nov 18, 2024

Conversation

cameronmwall
Copy link
Contributor

@cameronmwall cameronmwall commented Nov 15, 2024

Description

We now watch for any changes made to the secret referenced in the discovery config and re-reconcile the discovery config controller

Related Issue

https://issues.redhat.com/browse/ACM-15113

Changes Made

Added to go routine which watches all secrets on the cluster. However the re-reconcile is only triggered if the updated secret matches the name and namespace of that referenced in the discovery config

Signed-off-by: Cameron Wall <[email protected]>
@openshift-ci openshift-ci bot requested review from kurwang and ngraham20 November 15, 2024 15:28
@openshift-ci openshift-ci bot added the approved PR approval has been given label Nov 15, 2024
Signed-off-by: Cameron Wall <[email protected]>
Signed-off-by: Cameron Wall <[email protected]>
Signed-off-by: Cameron Wall <[email protected]>
@cameronmwall cameronmwall changed the title add secret watch Add watcher for the secret used in the discovery config Nov 15, 2024
main.go Outdated Show resolved Hide resolved
Signed-off-by: Cameron Wall <[email protected]>
Copy link

sonarcloud bot commented Nov 18, 2024

Copy link
Contributor

@ngraham20 ngraham20 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 18, 2024
Copy link

openshift-ci bot commented Nov 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cameronmwall, ngraham20

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:
  • OWNERS [cameronmwall,ngraham20]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit f89fae8 into stolostron:main Nov 18, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved PR approval has been given dco-signoff: yes lgtm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants