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: Pass the Tiltfile model into TiltfileLoader #4949

Merged
merged 1 commit into from Sep 9, 2021
Merged

Conversation

nicks
Copy link
Member

@nicks nicks commented Sep 9, 2021

Hello @landism, @milas,

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

5f94b0f (2021-09-09 12:27:43 -0400)
tiltfile: Pass the Tiltfile model into TiltfileLoader

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 nicks requested review from landism and milas September 9, 2021 16:28
@nicks nicks force-pushed the nicks/fetcher2 branch 4 times, most recently from d1dcea2 to ded00f6 Compare September 9, 2021 16:35
@@ -5879,6 +5882,7 @@ type fixture struct {
k8sContext k8s.KubeContext
k8sEnv k8s.Env
webHost model.WebHost
ctrlclient ctrlclient.Client
Copy link
Member

Choose a reason for hiding this comment

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

Is this intentional (maybe going to be imminently used)? AFAICT the TiltfileLoader doesn't actually need the client (yet?)

Copy link
Member Author

@nicks nicks Sep 9, 2021

Choose a reason for hiding this comment

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

ya, i have a branch that unifies the reconciler with the existing extension system so you can do:

extension_repo(name='default', url='file://path/to/my/repo')
extension(name='kubefwd', repo_name='default', path='kubefwd')
load('ext://kubefwd', ...)

and the tiltfile loader will ask the reconciler to load the extension instead. i think that will be a lot more flexible in general.

@nicks nicks merged commit 934a962 into master Sep 9, 2021
@nicks nicks deleted the nicks/fetcher2 branch September 9, 2021 18:57
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