-
Notifications
You must be signed in to change notification settings - Fork 442
add handler for exec local command #116
base: master
Are you sure you want to change the base?
Conversation
handleEvent(s, newObj, "updated") | ||
} | ||
|
||
func handleEvent(s *Exec, obj interface{}, action string) { |
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.
add handler for running local command when receiving events
Hi @missedone. |
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.
Would you provide some content to the README file explaining the use case and an example of your commit?
Looks like you're also adding support for configmaps, right? That seems to be managed by another PR, so it's better to decouple PRs between them.
Thanks for your time!
@jbianquetti-nami , example added: 369bdcf |
369bdcf
to
3fe9e5d
Compare
just rebased the PR, please review again, thx |
I think it's a nice feature to have but needs some care. Can you fix conflicts? |
sure, will resolve the conflicts. |
# Conflicts: # README.md # cmd/config.go # config/config.go # pkg/client/run.go # pkg/handlers/handler.go
conflicts resolved |
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.
limitations under the License. | ||
*/ | ||
|
||
package exec |
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.
Putting my end user's hat on, I'd love to read some more documentation about what problems does the handler implemented in this package address and some instructions about how to use it.
(A package level comment seems to be a good place to put such doc)
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
No description provided.