-
Notifications
You must be signed in to change notification settings - Fork 32
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
ocm: add klusterlet addon config and unit tests #478
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good just few minor comments.
@kononovn Thanks for your review, I've updated the PR accordingly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 last comment to fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@klaskosk Shouldn't this be in the ocm pkg? |
@trewest I'm not too familiar with what counts as OCM or not, but if you think it would be better as part of OCM I can move it |
@klaskosk yeah I typically try to group resources by group as much as I can
If it isn't too much trouble, let's move it into the ocm pkg |
449244b
to
c3b8c36
Compare
@trewest Ah, thanks for the explanation. I've updated the PR to move it to the ocm package |
pkg/ocm/kac.go
Outdated
// Object of the KlusterletAddonConfig as it is on the cluster. | ||
Object *kacv1.KlusterletAddonConfig | ||
// apiClient used to interact with the cluster. | ||
apiClient *clients.Settings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be runtimeclient.Client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just need to limit the apiClient
Adds the KlusterletAddonConfig to the existing ocm package along with unit tests for the new resource.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Adds the KlusterletAddonConfig to the existing ocm package along with unit tests for the new resource.