Skip to content
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

Improve skaffold init behaviour when tags are used in manifests #2773

Merged
merged 1 commit into from
Sep 5, 2019

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Aug 30, 2019

  • Skaffold init now ignores images that can't be parsed
  • It also ignores images references by digest in the manifests
  • Skaffold run/dev ignore tags (not digests) in manifests

Fixes #834 and #2463

@codecov
Copy link

codecov bot commented Aug 30, 2019

Codecov Report

Merging #2773 into master will decrease coverage by 0.07%.
The diff coverage is 56.52%.

Impacted Files Coverage Δ
pkg/skaffold/initializer/init.go 59.14% <0%> (-2.15%) ⬇️
pkg/skaffold/deploy/kubectl/images.go 92.18% <100%> (-0.24%) ⬇️

Copy link
Contributor

@nkubala nkubala left a comment

Choose a reason for hiding this comment

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

i'd like to see this documented somewhere, but i'm not really sure the right place. this behavior is a little nuanced so maybe somewhere in the tagging section of the docs we can have a little write-up explaining how this works?

also, I think this PR fixes #2512 right?

pkg/skaffold/deploy/kubectl/images.go Outdated Show resolved Hide resolved
pkg/skaffold/initializer/init.go Outdated Show resolved Hide resolved
pkg/skaffold/initializer/init.go Outdated Show resolved Hide resolved
@dgageot dgageot force-pushed the improve-init branch 3 times, most recently from d2c347c to ea67f2f Compare September 4, 2019 12:36
@dgageot
Copy link
Contributor Author

dgageot commented Sep 4, 2019

@nkubala This should be good to go

 + skaffold init ignores tags
 + deployers ignores tags

Fixes GoogleContainerTools#834
Fixes GoogleContainerTools#2463
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.

Ignore tag in skaffold.yaml and kubernetes yaml
3 participants