-
Notifications
You must be signed in to change notification settings - Fork 89
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
🌱 Utilize tilt-provider.yaml and Tilt deploy approach from the Cluster API #726
Conversation
Skipping CI for Draft Pull Request. |
✅ Deploy Preview for kubernetes-sigs-cluster-api-operator ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/hold Will continue, when kubernetes-sigs/cluster-api#11879 will merged |
@dmvolod is it still on hold? FYI, we are planning a release early next week and this could well be part of it. |
Yes, @furkatgofurov7 but this is almost done, I need to fix just documentation. Will do it soon. |
/hold cancel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding documentation, nice!
I have few suggestions inline that hopefully makes sense and improves the wording:
Thanks @furkatgofurov7 for the review and feedback provided |
I was not able to successfully run tilt locally (but also have not had time to debug it further) with these changes:
also another concern is: this creates a soft dependency to CAPI scripts and Tiltfile, meaning we will be dependant and should accept whatever changes proposed to upstream in regards to local development. Can't we just enable debugger using the current Tiltfile in the repo? |
Will look into the issue with clean environment, but seem to this is output from MacOS, but I'm using Linux |
It seems to this is OS or tilt version or tilt:extension problem. Please verify that are you using latest tilt binary and latest main code from the Cluster API. |
I am on MacOS and had to pull cert-manager images locally&load them into kind cluster, and it was running fine. |
It seems to should work out-of-the box in Cluster API for both Linux and MacOS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After giving it another thought, this could be a good improvement and provides more options to users developing locally through the CAPI exposed tilt-settings fields.
/approve
cc @Danil-Grigorev @alexander-demicev
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: furkatgofurov7 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:
Approvers can indicate their approval by writing |
There should not be an issue with CAPI, it just expects all images to be pre-pulled before running it (they should even have prepare-env or similar makefile target that pulls all necessary images), so all good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, that seems like a very good simplification for the dev environment setup. I left one suggestion for building CAPI images and using in this setup.
On Linux it's not needed to pre-load images manually or with separate target 12:10 $ docker images | grep quay.io/jetstack
✘-1 /u01/git/kubernetes-sigs/cluster-api [main|✔]
12:10 $ KIND_NETWORK_IPFAMILY=ipv4 make tilt-up
hack/kind-install-for-capd.sh
No kind clusters found.
Creating cluster "capi-test" ...
✓ Ensuring node image (kindest/node:v1.32.2) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
Set kubectl context to "kind-capi-test"
You can now use your cluster with:
kubectl cluster-info --context kind-capi-test
Thanks for using kind! 😊
configmap/local-registry-hosting created
tilt up
Tilt started on http://localhost:10350/
v0.33.22, built 2025-01-03
(space) to open the browser
(s) to stream logs (--stream=true)
(t) to open legacy terminal mode (--legacy=true)
(ctrl-c) to exit
Opening browser: http://localhost:10350/
Tilt started on http://localhost:10350/
v0.33.22, built 2025-01-03
.
.
.
12:12 $ docker images | grep quay.io/jetstack
quay.io/jetstack/cert-manager-webhook v1.16.3 d995a2979670 5 weeks ago 61.4MB
quay.io/jetstack/cert-manager-controller v1.16.3 27ebcc620bde 5 weeks ago 72.4MB
quay.io/jetstack/cert-manager-cainjector v1.16.3 ce7242a2b54b 5 weeks ago 52.8MB |
@dmvolod that is probably because you had them pulled (5 weeks ago as per logs) locally already, but in my case it was not. It might be also, MacOS has a problem to load local images into kind cluster unless it is explicitly called out by kind command in the script. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
LGTM label has been added. Git tree hash: 09462d3151e4063172e4d2ce34fab0d0b638fbab
|
@furkatgofurov7 seems to this is MacOS issue, for my env images were pulled automatically while Tiltfile running 12:32 $ docker inspect d995a2979670 | grep -i created
"Created": "2025-01-16T11:05:57.181706423Z" |
What this PR does / why we need it:
This PR adopts tilt utilizing approach from the Cluster API for deploying and debugging operator.
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 #719
Some issue need to be fixed in Cluster API Tiltfile to avoid Cluster API Core Provider bootstrapping together with the operator