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

tiltfile: deprecation warning for restart_container + docker_build + k8s resource [ch5943] #3249

Merged
merged 5 commits into from Jun 9, 2020

Conversation

maiamcc
Copy link
Contributor

@maiamcc maiamcc commented Apr 28, 2020

Hello @landism, @nicks,

Please review the following commits I made in branch maiamcc/restart-container-deprecation-warning:

8300d70 (2020-04-28 17:30:47 -0400)
tiltfile: deprecation warning for restart_container + docker_build + k8s resource [ch5943]

Code review reminders, by giving a LGTM you attest that:

  • Commits are adequately tested
  • Code is easy to understand and conforms to style guides
  • Incomplete code is marked with TODOs
  • Code is suitably instrumented with logging and metrics

@maiamcc maiamcc requested review from landism and nicks April 28, 2020 21:31
}

if len(needsWarn) > 0 {
s.logger.Warnf(restartContainerDeprecationWarning(needsWarn))
Copy link
Member

Choose a reason for hiding this comment

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

this should be Warnf("%s", msg) so that Printf doesn't try to interpret anything in here as a format string

@maiamcc maiamcc marked this pull request as draft April 29, 2020 22:13
@maiamcc
Copy link
Contributor Author

maiamcc commented Apr 29, 2020

Holding off on the deprecation-soon warning until we've had the extension beta-tested

@maiamcc maiamcc marked this pull request as ready for review June 8, 2020 16:41
@maiamcc maiamcc requested a review from nicks June 9, 2020 20:22
@maiamcc
Copy link
Contributor Author

maiamcc commented Jun 9, 2020

This is mostly the same from last iteration but wanted to get a re-review for completeness' sake @nicks @landism. Biggest change is that restart_container() is ONLY allowed on DC resources (it is NOT allowed for custom_build k8s resources)

@maiamcc maiamcc merged commit a1f6e7d into master Jun 9, 2020
@maiamcc maiamcc deleted the maiamcc/restart-container-deprecation-warning branch June 9, 2020 21:40
@nicks
Copy link
Member

nicks commented Jun 9, 2020

spongebob

maiamcc pushed a commit that referenced this pull request Jun 19, 2020
maiamcc pushed a commit that referenced this pull request Jun 19, 2020
maiamcc pushed a commit that referenced this pull request Jun 19, 2020
maiamcc pushed a commit that referenced this pull request Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants