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

configs: create filewatches during tiltfile creation #4696

Merged
merged 1 commit into from
Jun 28, 2021
Merged

Conversation

nicks
Copy link
Member

@nicks nicks commented Jun 28, 2021

Hello @milas,

Please review the following commits I made in branch nicks/fw:

9af8f1d (2021-06-28 11:55:02 -0400)
configs: create filewatches during tiltfile creation

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

@nicks
Copy link
Member Author

nicks commented Jun 28, 2021

this is mainly taking the code in manifest subscriber and moving it over to tiltfile creation...

@nicks
Copy link
Member Author

nicks commented Jun 28, 2021

this should be much simpler and easier to reason about in general because:

  1. the tiltfile loader already reconciles against the apiserver, handling garbage collection, etc, and
  2. we really only want to change these filewatches based on the tiltfile, nothing else

@@ -492,7 +491,6 @@ func NewState() *EngineState {
}

ret.Cmds = make(map[string]*Cmd)
ret.FileWatches = make(map[types.NamespacedName]*v1alpha1.FileWatch)
Copy link
Contributor

Choose a reason for hiding this comment

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

It's so nice to see these go away

Copy link
Member Author

Choose a reason for hiding this comment

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

👏

@nicks nicks merged commit 827ade1 into master Jun 28, 2021
@nicks nicks deleted the nicks/fw branch June 28, 2021 17:58
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