-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Avoid writing environment variables in Tiltfile #7430
Comments
@sbueringer: This issue is currently awaiting triage. If CAPI contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/triage accepted |
/help I think we should wait a little bit to give some room to folks to pick up with the latest tilt version, but +1 to get this cleanup implemented |
@fabriziopandini: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hello Team, I have gone through the PR tilt-dev/tilt#5910 (comment). May I work on this issue? |
Sure |
Along with the below Lines 523 to 535 in dba1c70
Should I update the rest of the Lines 537 to 546 in dba1c70
Lines 488 to 508 in dba1c70
/assign |
@sbueringer @fabriziopandini May you please help me with this query |
What do you mean with "update the rest of the cmd_button function's Adding The idea would be to add |
Thanks for the clarification will update the above functions. I meant to ask if the Lines 543 to 545 in dba1c70
Also, instead of using Lines 511 to 512 in dba1c70
Lines 476 to 477 in dba1c70
Doing the above will help us finally remove the below workaround as well Lines 444 to 446 in dba1c70
I will like to know your views on it @sbueringer |
Please keep inputs. With inputs users can set the fields in the Tilt UI. This is a feature we want to keep. |
@sbueringer, May you please help me understand how may I successfully test the changes? While doing my research I came across https://cluster-api.sigs.k8s.io/developer/tilt.html to set up the development environment. |
Follow the documentation to setup the tilt environment (with CAPD). Then make your changes and verify that you can set the variables via |
Today we're writing to the os environment in our Tiltfile so that clusterctl can pick up the env vars when we use clusterctl to generate a cluster.
cluster-api/Tiltfile
Lines 429 to 432 in 835c589
This was necessary because Tilt didn't support passing in env variables into cmd_button:
cluster-api/Tiltfile
Lines 484 to 490 in 835c589
This has been implemented now: tilt-dev/tilt#5910 (comment)
Let's try to set the env of the cmd_button (and local_resource above) and stop writing to os.environment
Note: This also requires bumping the minimum supported Tilt version (probably to v0.30.8)
/kind feature
The text was updated successfully, but these errors were encountered: