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

🌱 tilt: ensure in-tree providers always use start.sh to allow restarts #10811

Conversation

chrischdi
Copy link
Member

@chrischdi chrischdi commented Jun 28, 2024

What this PR does / why we need it:

The in-tree providers have hardcoded their provider options in Tiltbuild. Therefor the values we have in tilt-prepare do not reflect the real ones.

Since implementing #10244, when using a tilt-settings.yaml file without debug configuration for the in-tree providers, tilt-prepare won't adjust the cmd to use start.sh and because of that restarts via tilt did not work anymore.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #10810

/area devtools

@k8s-ci-robot k8s-ci-robot added area/devtools Issues or PRs related to devtools cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 28, 2024
@@ -137,6 +143,9 @@ type tiltProviderConfig struct {
ApplyProviderYaml *bool `json:"apply_provider_yaml,omitempty"`
KustomizeFolder *string `json:"kustomize_folder,omitempty"`
KustomizeOptions []string `json:"kustomize_options,omitempty"`

// hardCodedProvider is used for providers hardc-oded in the Tiltfile to always set cmd for them to start.sh to allow restarts.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// hardCodedProvider is used for providers hardc-oded in the Tiltfile to always set cmd for them to start.sh to allow restarts.
// hardCodedProvider is used for providers hardcoded in the Tiltfile to always set cmd for them to start.sh to allow restarts.

@sbueringer
Copy link
Member

/approve

@sbueringer
Copy link
Member

Thx for fixing this!

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 28, 2024
Copy link
Contributor

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 28, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 66d003e201bf3cf347fb5b4fb1ebc164bcd3a1c4

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: killianmuldoon, sbueringer

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [killianmuldoon,sbueringer]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@chrischdi
Copy link
Member Author

/hold to fix typo

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 28, 2024
@chrischdi chrischdi force-pushed the pr-tilt-fix-restart-core-providers branch from 9aa60a6 to a8c8ed0 Compare June 28, 2024 11:51
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 28, 2024
@chrischdi
Copy link
Member Author

/hold cancel

Needs another lgtm, fixed the typo

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 28, 2024
@sbueringer
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 28, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 928a88ac1dfb0d89361051a72ad77553cb300017

@chrischdi
Copy link
Member Author

chrischdi commented Jun 29, 2024

/retest

Init container initupload not ready: (state: waiting, reason: "PodInitializing", message: "") Init container place-entrypoint not ready: (state: waiting, reason: "PodInitializing", message: "")

@k8s-ci-robot k8s-ci-robot merged commit 96dc05c into kubernetes-sigs:main Jun 29, 2024
24 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.8 milestone Jun 29, 2024
@cahillsf
Copy link
Member

Nice ty!

@sbueringer
Copy link
Member

@cahillsf thx for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/devtools Issues or PRs related to devtools cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build failing in tilt development
5 participants