Skip to content
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Baremetal platform feature parity#1317

Merged
ipochi merged 8 commits intomasterfrom
imran/baremetal-feature-parity
Jan 20, 2021
Merged

Baremetal platform feature parity#1317
ipochi merged 8 commits intomasterfrom
imran/baremetal-feature-parity

Conversation

@ipochi
Copy link
Member

@ipochi ipochi commented Jan 14, 2021

This PR adds configuration knobs to Lokomotive which are present on the Terraform side such as:

install_disk
network_ip_autodetection
kernel_args
download_protocol

Also adds a new configuration option: install_to_smallest_partition which installs Flatcar Container Linux on the smallest disk partition.

@ipochi ipochi force-pushed the imran/baremetal-feature-parity branch from 20ce593 to 5de830b Compare January 14, 2021 13:27
Copy link
Contributor

@knrt10 knrt10 left a comment

Choose a reason for hiding this comment

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

Some suggestions

@ipochi ipochi force-pushed the imran/baremetal-feature-parity branch from 5de830b to 6a9e638 Compare January 19, 2021 13:33
pothos added a commit to kinvolk/racker that referenced this pull request Jan 19, 2021
In the final setup we can use an internal L2 network and don't need to
rely on ipvlan. This makes the QEMU setup resemble the final setup but
still keeps the PXE/DHCP server on the host system, not in a VM.
The required lokoctl binary comes from
kinvolk/lokomotive#1317
pothos added a commit to kinvolk/racker that referenced this pull request Jan 19, 2021
In the final setup we can use an internal L2 network and don't need to
rely on ipvlan. This makes the QEMU setup resemble the final setup but
still keeps the PXE/DHCP server on the host system, not in a VM.
The required lokoctl binary comes from
kinvolk/lokomotive#1317
@ipochi ipochi force-pushed the imran/baremetal-feature-parity branch from 6a9e638 to a025a47 Compare January 20, 2021 10:06
@ipochi ipochi requested review from invidian, knrt10 and pothos January 20, 2021 10:07
invidian
invidian previously approved these changes Jan 20, 2021
Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

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

LGTM

invidian
invidian previously approved these changes Jan 20, 2021
Copy link
Contributor

@knrt10 knrt10 left a comment

Choose a reason for hiding this comment

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

I think baremetal: enhance clc_snippets type and baremetal: remove locals clc_map should be committed together as they are interdependent. What do you think?

@ipochi
Copy link
Member Author

ipochi commented Jan 20, 2021

I think baremetal: enhance clc_snippets type and baremetal: remove locals clc_map should be committed together as they are interdependent. What do you think?

@knrt10
#1305 (comment)

I think baremetal: enhance clc_snippets type and baremetal: remove locals clc_map should be committed together as they are interdependent. What do you think?

@knrt10
#1305 (comment)

knrt10
knrt10 previously approved these changes Jan 20, 2021
Copy link
Contributor

@knrt10 knrt10 left a comment

Choose a reason for hiding this comment

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

+1

Imran Pochi added 4 commits January 20, 2021 20:22
This commit adds two configuration options:

`install_disk` and `install_to_smallest_disk`.

`install_disk` provides the disk path to install Flatcar Container
Linux. This configuration optionw as present on the terraform side but
not exposed on the Lokomotive side.

`install_to_smallest_disk`: whether to install Flatcar Container Linux
on the smallest disk partition or use the value provided in
`install_disk`. This is a new configuration option for Lokomotive.

Also add unit tests and updates the configuration reference
documentation.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
This commit adds a configuration option for Lokomotive: `kernel_args`.

This configuration knob is already exposed on the Terraform side of the
Lokomotive code but not exposed to the user via configuration.

Also updates the configuration reference documentation.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
This commit adds `download_protocol` as a Lokomotive configuration
exposed to the user. This configuration knob was already present on the
Lokomotive terraform code.

This commit also adds unit tests and updates the configuration reference
documentation.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
This commits add the configuration option for Lokomotive, which was
already available on the Terraform side.

This commit also updates the documentation.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
Imran Pochi added 4 commits January 20, 2021 20:22
This commit updates the type of `clc_snippets` from `map(string)` to
`map(list(string))`. This is done so that multiple clc snippets can be
passed instead of just one.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
This commit updates the code which was present due to limitations in
Terraform <= 0.12, Since Lokomotive now supports 0.13 version and the
type of `clc_snippets` is updated from map(string) to map(list(string)),
the code is no longer required.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
This commit adds functionality to add CLC snippets to the Baremetal
Lokomotive configuration.

Updates the existing CLC snippet test to also cover
baremetal platform.

Updates the Baremetal configuration reference documentation
to include the new variable `clc_snippets`.

Signed-off-by: Imran Pochi <imran@kinvolk.io>
Signed-off-by: Imran Pochi <imran@kinvolk.io>
@ipochi ipochi force-pushed the imran/baremetal-feature-parity branch from 4ca496b to c8b7a39 Compare January 20, 2021 14:53
@ipochi ipochi merged commit 6322284 into master Jan 20, 2021
@ipochi ipochi deleted the imran/baremetal-feature-parity branch January 20, 2021 15:56
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