-
Notifications
You must be signed in to change notification settings - Fork 13
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
[Plugin] Add canary pods and not ready pods commands #70
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.
This pull request contains a valid label.
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.
This pull request contains a valid label.
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.
This pull request contains a valid label.
940a03c
to
a833c7d
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.
This pull request contains a valid label.
a833c7d
to
de79eba
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.
This pull request contains a valid label.
de79eba
to
b81f7b9
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.
This pull request contains a valid label.
Codecov Report
@@ Coverage Diff @@
## master #70 +/- ##
==========================================
+ Coverage 31.55% 31.83% +0.28%
==========================================
Files 37 41 +4
Lines 2830 2937 +107
==========================================
+ Hits 893 935 +42
- Misses 1851 1913 +62
- Partials 86 89 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -107,14 +108,14 @@ func NewCmdUnpause(streams genericclioptions.IOStreams) *cobra.Command { | |||
return cmd | |||
} | |||
|
|||
// Complete sets all information required for processing the command | |||
func (o *PauseOptions) Complete(cmd *cobra.Command, args []string) error { |
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.
we used Complete()
Validate()
Run()
to be compatible with an Interface definition to ease testing and mocking
type Cmd interface {
Complete(cmd *cobra.Command, args []string) error
Validate() error
Run() error
}
but it is true that we didn't go this far to use implement it and use it.
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 see, thanks for the context. Let's keep them private for now as they don't need to be public. It will be easy to switch back to public when we want to implement the interface
b81f7b9
to
3d8d977
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.
This pull request contains a valid label.
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.
Nice refactoring!
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.
💯
What does this PR do?
kubectl-eds pods <ExtendedDaemonSet name> --select=not-ready
kubectl-eds pods <ExtendedDaemonSet name> --select=canary
kubectl-eds canary pods <ExtendedDaemonSet name>
Motivation
Additional Notes
kubectl-eds pods <ExtendedDaemonSet name> --select=canary
kubectl-eds canary pods <ExtendedDaemonSet name>
kubectl-eds pods <ExtendedDaemonSet name> --select=not-ready
Describe your test plan
Compare the command outputs to
k get pods
andk get nodes