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

fix same bootstrap register requests from diff target clusters #47

Merged
merged 3 commits into from
Mar 31, 2023

Conversation

niravparikh05
Copy link
Contributor

@niravparikh05 niravparikh05 commented Mar 22, 2023

What does this PR change?

  • fix to error out same bootstrap agent registration requests from different target clusters

Does the PR depend on any other PRs or Issues? If yes, please list them.

Checklist

I confirm, that I have...

  • Read and followed the contributing guide in CONTRIBUTING.md
  • Added tests for this PR
  • Formatted the code using go fmt (if applicable)
  • Updated documentation on the Paralus docs site (if applicable)
  • Updated CHANGELOG.md

@niravparikh05
Copy link
Contributor Author

niravparikh05 commented Mar 23, 2023

Pending

  • Update go.mod once dependent pr is merged

Copy link
Member

@akshay196 akshay196 left a comment

Choose a reason for hiding this comment

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

getNamespace can be unit tested using fake kube-client, for example fake dynamic client.

pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
Signed-off-by: niravparikh05 <nir.parikh05@gmail.com>
Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>
@akshay196
Copy link
Member

@niravparikh05 Added unit test and squashed all commits to one.

@niravparikh05
Copy link
Contributor Author

@niravparikh05 Added unit test and squashed all commits to one.

thank you @akshay196

Copy link
Contributor

@nirav-rafay nirav-rafay left a comment

Choose a reason for hiding this comment

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

lgtm

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.

I inadvertently installed a relay agent in multiple clusters
3 participants