-
Notifications
You must be signed in to change notification settings - Fork 263
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 ApiServer source update and describe commands #556
Add ApiServer source update and describe commands #556
Conversation
- After ApiServer source object is created, we don't need it to pass around in caller function.
- Add a test for apiserver source sink update - Verify the updated sink name after the apiserver source is created - Update resource names in existing tests
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.
@navidshaikh: 23 warnings.
In response to this:
Proposed Changes
- Dont return created ApiServer source object but only error,
- Align creating ApiServer source client, removes unit tests
- Add ApiServer source update command
- Rename TestMockKnClient to TestMockKnCronJobSourceClient
- Add mock client for ApiServer Source and its tests
- Add mock unit tests for create, delete and update
- Add e2e tests for apiserver source update
- Add a test for apiserver source sink update
- Verify the updated sink name after the apiserver source is created
- Update resource names in existing tests
TODO:
- better unit tests coverage
- more e2e tests
/lint
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
03a7ad2
to
6418749
Compare
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. Thank you for the improvement to apiserver.
/lint |
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.
@navidshaikh: 1 warning.
In response to this:
/lint
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
- Add command and unit tests - TODO for later: Add 'Controller Selector' section for --verbose
The following is the coverage report on the affected files.
|
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.
thanks, looks very good ! Love the appreciation of the details (like naming it APIServerSource
)
Let's get that merged and ready for tomorrow.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: navidshaikh, rhuss 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:
Approvers can indicate their approval by writing |
Proposed Changes
kn source apiserver update
andkn source apiserver describe
/lint