-
Notifications
You must be signed in to change notification settings - Fork 21
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
Flatcar integration #53
Conversation
heytrav
commented
Jul 5, 2023
- Modify openstack-cluster templates to integrate ignition components for Flatcar
- Smaller changes related to addon defaults
095f920
to
c48a720
Compare
ff7ef91
to
7b946f3
Compare
I don't like how Flatcar feels like a bolt-on here. If we are going to support it, I feel we should refactor the charts so that there is an OS abstraction that Ubuntu and Flatcar both use. |
I think there is a nice way to do it by utilising template definitions and passing around the name of a template to use, but I haven't got it fully figured out yet. |
I wonder if something similar could be done for #91. Seems like some sort of abstraction for adding patches to the kube-apiserver config could also be useful. |
@heytrav I was thinking the same. Let me have a bit of a think about how it would work. |
7b946f3
to
de4b36b
Compare
de4b36b
to
2ed65b7
Compare
Approval is required for workflow run #6412690116 for this PR. Please review the code that will be executed by this workflow run and give either a 👍 or 👎 on this comment to approve or deny execution. |
@mkjpryor based the changes you made in #130 it looks like I can just override For the purpose of this PR I'm wondering if you want to
|
2ed65b7
to
81247e5
Compare
Approval is required for workflow run #6490986359 for this PR. Please review the code that will be executed by this workflow run and give either a 👍 or 👎 on this comment to approve or deny execution. |
81247e5
to
084cf0e
Compare
Approval is required for workflow run #6499325307 for this PR. Please review the code that will be executed by this workflow run and give either a 👍 or 👎 on this comment to approve or deny execution. |
084cf0e
to
c16d2c1
Compare
Approval is required for workflow run #6513871433 for this PR. Please review the code that will be executed by this workflow run and give either a 👍 or 👎 on this comment to approve or deny execution. |
I've refactored the original PR to remove most of the changes I had made. In the current state it is possible to build Flatcar clusters with this code and providing customised However as mentioned in #138 it was necessary to change the last command added to To resolve #139 I changed the destination of the additional containerd config to create a new file under |
c16d2c1
to
e8e754f
Compare
Approval is required for workflow run #6564698214 for this PR. Please review the code that will be executed by this workflow run and give either a 👍 or 👎 on this comment to approve or deny execution. |
I think in the short- to medium-term it would be nice to have the Flatcar support be native to the charts, so that we only require the user to flip a value in the charts between Let me know what you prefer. |
charts/openstack-cluster/templates/control-plane/kubeadm-control-plane.yaml
Outdated
Show resolved
Hide resolved
charts/openstack-cluster/templates/control-plane/kubeadm-control-plane.yaml
Outdated
Show resolved
Hide resolved
I actually would like to have ignition based OS (i.e. flatcar) be completely handled by the chart as you suggest. However I wasn't sure how you preferred this to work. I will need to experiment a bit to add this into the chart. If you have any suggestions, I'm happy to follow your lead. |
Approval is required for workflow run #6621090579 for this PR. Please review the code that will be executed by this workflow run and give either a 👍 or 👎 on this comment to approve or deny execution. |
Most recent commit works for me locally (I can build a Flatcar cluster). @mkjpryor please let me know if this is more in line with what you were thinking. |
36df1a2
to
2e5f05c
Compare
Approval is required for workflow run #6621111706 for this PR. Please review the code that will be executed by this workflow run and give either a 👍 or 👎 on this comment to approve or deny execution. |
I added my thoughts in the form of review comments. Since we are adding support for a second OS, I would like to make sure that we can actually support N OSs going forward, just in case, so the suggestions I made reflect that. |
2e5f05c
to
07df1e4
Compare
Approval is required for workflow run #6634349692 for this PR. Please review the code that will be executed by this workflow run and give either a 👍 or 👎 on this comment to approve or deny execution. |
pushed up some changes |
07df1e4
to
2238a43
Compare
Approval is required for workflow run #6634731110 for this PR. Please review the code that will be executed by this workflow run and give either a 👍 or 👎 on this comment to approve or deny execution. |
* Move flatcar config spec into specialised define block * generic osDistro variable to specify "flatcar" and future other OS
2238a43
to
8861213
Compare
Approval is required for workflow run #6636825855 for this PR. Please review the code that will be executed by this workflow run and give either a 👍 or 👎 on this comment to approve or deny execution. |
Approval is required for workflow run #6636825855 for this PR. Please review the code that will be executed by this workflow run and give either a 👍 or 👎 on this comment to approve or deny execution. Workflow run approved by mkjpryor. |
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
Fetch os_distro metadata and pass to helm chart. Depends on Helm chart flatcar support: https://github.com/stackhpc/capi-helm-charts/pull/53
Fetch os_distro metadata and pass to helm chart. Depends on Helm chart flatcar support: https://github.com/stackhpc/capi-helm-charts/pull/53
Fetch os_distro metadata and pass to helm chart. Depends on Helm chart flatcar support: https://github.com/stackhpc/capi-helm-charts/pull/53
Fetch os_distro metadata and pass to helm chart. Depends on Helm chart flatcar support: https://github.com/stackhpc/capi-helm-charts/pull/53