Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Add support for Flatcar OS #22

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Conversation

dalees
Copy link
Contributor

@dalees dalees commented Nov 2, 2023

Fetch os_distro metadata and pass to helm chart.

Depends on Helm chart flatcar support:
https://github.com/stackhpc/capi-helm-charts/pull/53

@dalees dalees mentioned this pull request Nov 2, 2023
@mkjpryor
Copy link
Member

I'd like to wait to merge this until we know what is happening with Magnum driver selection. Because I would like to move back to using os_distro: ubuntu for the Ubuntu-based images, which would make this patch more consistent.

At the moment, for Ubuntu-based images we would get capi-kubeadm-cloudinit passed to the Helm chart as osDistro, which isn't actually correct and could have undefined behaviour in the Helm charts (although I think it works now as the stuff for ubuntu happens if osDistro != flatcar...).

magnum_capi_helm/driver.py Show resolved Hide resolved
@JohnGarbutt
Copy link
Member

I'd like to wait to merge this until we know what is happening with Magnum driver selection. Because I would like to move back to using os_distro: ubuntu for the Ubuntu-based images, which would make this patch more consistent.

At the moment, for Ubuntu-based images we would get capi-kubeadm-cloudinit passed to the Helm chart as osDistro, which isn't actually correct and could have undefined behaviour in the Helm charts (although I think it works now as the stuff for ubuntu happens if osDistro != flatcar...).

I don't like using "ubuntu" because its not a valid value for Nova... and when you use a valid value Nova has a habit of doing the wrong thing.

@mkjpryor
Copy link
Member

I don't like using "ubuntu" because its not a valid value for Nova... and when you use a valid value Nova has a habit of doing the wrong thing.

I didn't realise that - but I'm also not keen on what we are doing now. We should use whatever value Nova like for Ubuntu Jammy then.

@JohnGarbutt
Copy link
Member

I don't like using "ubuntu" because its not a valid value for Nova... and when you use a valid value Nova has a habit of doing the wrong thing.

I didn't realise that - but I'm also not keen on what we are doing now. We should use whatever value Nova like for Ubuntu Jammy then.

The problem with that is that Nova then does strange things with it. I would rather we stop using os_distro all together, as I mentioned at the last few meetings I attended. Sorry I missed this weeks one 🤦

Copy link
Member

@JohnGarbutt JohnGarbutt left a comment

Choose a reason for hiding this comment

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

OK, lets go with what you are proposing here.

Sorry, I merged the test refactor that conflicts with this, I should have done it the other way around, sorry! 🤦

magnum_capi_helm/driver.py Show resolved Hide resolved
magnum_capi_helm/driver.py Outdated Show resolved Hide resolved
@JohnGarbutt JohnGarbutt dismissed their stale review November 15, 2023 12:37

dismissing the previous request changes after discussion with MattP and seeing the upstream spec.

@JohnGarbutt
Copy link
Member

Ok, to help move this forward I have proposed: #27 and #28

@JohnGarbutt
Copy link
Member

PS Sorry it took me so long to notice these!

Fetch os_distro metadata and pass to helm chart.

Depends on Helm chart flatcar support:
https://github.com/stackhpc/capi-helm-charts/pull/53
Copy link
Member

@JohnGarbutt JohnGarbutt left a comment

Choose a reason for hiding this comment

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

Thank you, this looks great now.

@JohnGarbutt JohnGarbutt merged commit b0765ea into stackhpc:main Nov 22, 2023
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants