-
Notifications
You must be signed in to change notification settings - Fork 260
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
[v1alpha2 Migration] add v1alpha2 controllers #446
[v1alpha2 Migration] add v1alpha2 controllers #446
Conversation
Dev env for v1alpha2 is described here: https://github.com/sbueringer/capi-dev |
Seems to work :):
I'll write some docs for the dev-environment the next few days |
67bb5bd
to
fb80cda
Compare
Implementation is done (HA cluster works in my case). Documentation to use it is here: https://github.com/sbueringer/capi-dev Note: Cluster deletions currently doesn't work because we have to migrate to kubeadm bootstrapper first. But this will be another PR |
/assign @hidekazuna Can you please take a look? :) |
89ade64
to
9164abe
Compare
Overall this seems to work in my env. Code should also be okay. I'll have some followup task like cleaning up the Makefile & refactor the logging a bit. Depending on how seen this PR is reviewed I would integrate it here or create an additional PR for that |
I will try on ubuntu env as well, so might need your help and confirm
|
Tilt basically does the following:
Problem is that clusterctl is not migrated to v1alpha2 and there isn't much documentation yet. Most of the documentation probably will be done for clusterctl or in the common ClusterAPI I guess, but I don't know how it will be. |
9164abe
to
adfb48b
Compare
/uncc |
ok, struggled for a while and now the tilt is up including all containers (a set of minor changes...) |
I can't comment on cluster-api-provider-openstack/samples/templates/clouds-secrets/kustomize.yaml (don't know the reason), but I made some modification to make namespace to capo-system, otherwise the container can't find the secret during startup, you find same issue?
|
adfb48b
to
71fe9a0
Compare
Oh yes you're right. I fixed it in the PR. Problem was I was using a copy of the samples (with completely different user-data) and I only fixed it there |
@sbueringer seems KUBELET_VERSION={{ .Machine.Spec.Versions.Kubelet }} in master/worker node need to be updated? there is no Versions anymore and the namespace settings is fairly complicated now... makes test very hard :( |
I'll take a look What do you mean with namespace settings? |
the machine spec, cluster spec, secret ...all need set namespace now ... they don't need in v1alpha1, nothing special, I am still fixing those namespace settings on my system |
Oh yes. I think it will be easier in the future. clusterctl should be working soon again and there are more tools planned. Not sure what the exact scope of clusteradm will be |
Yup the changed Versions.Kubelet to just Version. I fixed it. (I need Ubuntu to test stuff like this :/) |
ok, I made some modifications locally and ubuntu works now. so I think it's time to merge this and evolve from here :), I will submit PR to fix ubuntu cases. root@jj-master:~/capi-dev/cluster-api-provider-openstack/samples/output# kubectl get machine cloudusr@test-cluster-kube-master-01:~$ kubectl get nodes |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jichenjc, 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:
Approvers can indicate their approval by writing |
* migrate types & controllers to v1alpha2 * fix kubelet version
* migrate types & controllers to v1alpha2 * fix kubelet version
Initial migration to v1alpha2 controllers as described here: #380 (comment)
(This also contains the commits from: https://github.com/kubernetes-sigs/cluster-api-provider-openstack/pulls)