-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Print kubectl client version #991
Print kubectl client version #991
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.
apart from the linter failing, one nit otherwise LGTM
pkg/skaffold/deploy/kubectl.go
Outdated
@@ -64,6 +64,8 @@ func (k *KubectlDeployer) Labels() map[string]string { | |||
// Deploy templates the provided manifests with a simple `find and replace` and | |||
// runs `kubectl apply` on those manifests | |||
func (k *KubectlDeployer) Deploy(ctx context.Context, out io.Writer, builds []build.Artifact) ([]Artifact, error) { | |||
logrus.Debugln("kubectl client version:", k.kubectl.Version()) |
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.
nit: I would even consider making this Info
level log
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.
Good point
9d6da67
to
ab1ee87
Compare
Codecov Report
@@ Coverage Diff @@
## master #991 +/- ##
==========================================
- Coverage 40.17% 39.92% -0.26%
==========================================
Files 68 69 +1
Lines 3004 3026 +22
==========================================
+ Hits 1207 1208 +1
- Misses 1671 1692 +21
Partials 126 126
Continue to review full report at Codecov.
|
@nkubala It should be all good now. |
|
||
buf, err := c.getVersion(context.Background()) | ||
if err != nil { | ||
logrus.Errorln("unable to get kubectl client version", err) |
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.
Should this be a warning instead of an error since it's not really fatal?
Signed-off-by: David Gageot <david@gageot.net>
ab1ee87
to
3158437
Compare
Signed-off-by: David Gageot david@gageot.net