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) Validate Resource before enabling an Informer against it. #335

Merged
merged 9 commits into from
Sep 14, 2020

Conversation

rahulchheda
Copy link

@rahulchheda rahulchheda commented Sep 9, 2020

Signed-off-by: Rahul M Chheda rchheda@infracloud.io

ISSUE TYPE
  • Bug fix Pull Request
SUMMARY

Fixes #333

Signed-off-by: Rahul M Chheda <rchheda@infracloud.io>
@PrasadG193
Copy link
Collaborator

Looks good. Can we add a unit test around it?

@PrasadG193 PrasadG193 self-requested a review September 9, 2020 13:30
Rahul M Chheda added 5 commits September 13, 2020 16:14
Signed-off-by: Rahul M Chheda <rchheda@infracloud.io>
…o fixValidate

Signed-off-by: Rahul M Chheda <rchheda@infracloud.io>
Signed-off-by: Rahul M Chheda <rchheda@infracloud.io>
Signed-off-by: Rahul M Chheda <rchheda@infracloud.io>
Signed-off-by: Rahul M Chheda <rchheda@infracloud.io>
go.sum Outdated Show resolved Hide resolved
test/resource_config.yaml Outdated Show resolved Hide resolved
Rahul M Chheda added 2 commits September 13, 2020 22:09
Signed-off-by: Rahul M Chheda <rchheda@infracloud.io>
Signed-off-by: Rahul M Chheda <rchheda@infracloud.io>
pkg/utils/utils.go Outdated Show resolved Hide resolved
pkg/utils/utils.go Outdated Show resolved Hide resolved
}

// FakeCachedDiscoveryInterface registers all the resources in the resource_config.yaml
func FakeCachedDiscoveryInterface() discovery.CachedDiscoveryInterface {
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Signed-off-by: Rahul M Chheda <rchheda@infracloud.io>
@mergify mergify bot merged commit 87b7480 into kubeshop:develop Sep 14, 2020
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.

[BUG] BotKube is crashing when invalid resource format provided
2 participants