Skip to content

skaffold debug: log unsupported objects or versions#2138

Merged
dgageot merged 2 commits intoGoogleContainerTools:masterfrom
briandealwis:dbglog
May 17, 2019
Merged

skaffold debug: log unsupported objects or versions#2138
dgageot merged 2 commits intoGoogleContainerTools:masterfrom
briandealwis:dbglog

Conversation

@briandealwis
Copy link
Copy Markdown
Member

We don't support workload objects in apps/v1beta1 or apps/v1beta2, which have been deprecated since Kubernetes 1.9. Log these in a more visible manner:

ERRO[0003] deprecated versions not supported by debug: deployment.apps/web2 (v1beta1) 
DEBU[0004] no debug transformation for: service/web          
WARN[0005] no debug transformation for: foobar.apps/name

The warning should only be issued workload API objects (apps and batch) that aren't handled.

} else {
description = fmt.Sprintf("%s.%s/%s", strings.ToLower(kind), group, name)
}
return
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dont return anything here or am i missing some hidden go mojo that happens here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #2138 into master will increase coverage by 0.02%.
The diff coverage is 63.63%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2138      +/-   ##
==========================================
+ Coverage   56.31%   56.34%   +0.02%     
==========================================
  Files         180      180              
  Lines        7815     7836      +21     
==========================================
+ Hits         4401     4415      +14     
- Misses       2994     3001       +7     
  Partials      420      420
Impacted Files Coverage Δ
pkg/skaffold/debug/transform.go 82.4% <63.63%> (-3.8%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8daa28...7288f70. Read the comment docs.

@dgageot dgageot merged commit 643b8a7 into GoogleContainerTools:master May 17, 2019
@briandealwis briandealwis deleted the dbglog branch November 21, 2019 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants