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

examples: make Flatcar channels explicit #565

Merged
merged 2 commits into from
Jun 6, 2020
Merged

Conversation

alban
Copy link
Member

@alban alban commented Jun 4, 2020

If Flatcar channels are not explicit, it is difficult for the user to find out how to change them. It also makes it less likely to forget to change it in the worker pool section.

Also fix a typo in the configuration.

@alban alban requested review from johananl and surajssd as code owners June 4, 2020 18:15
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.

Thanks @alban for the patch.

examples/aws-production/cluster.lokocfg Outdated Show resolved Hide resolved
@@ -101,7 +101,7 @@ cluster "aws" {

region = var.region

enable_aggreation = true
enable_aggregation = true
Copy link
Member

@johananl johananl Jun 4, 2020

Choose a reason for hiding this comment

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

Looks like this code snippet was never tested 😬

@alban alban force-pushed the alban/examples-channels branch from 0f41ecf to ecf1013 Compare June 5, 2020 10:38
@alban alban changed the title examples/aws*: make Flatcar channels explicit examples: make Flatcar channels explicit Jun 5, 2020
@@ -57,6 +57,10 @@ cluster "packet" {
cluster_name = var.cluster_name
controller_count = var.controllers_count

//os_channel = "stable"
//os_version = "current"
Copy link
Member

Choose a reason for hiding this comment

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

I think os_version doesn't work on Packet. We used preinstalled Flatcar images on amd64, so we can't choose the version, we just run "whatever the preinstalled version is".

On ARM we use IPXE, IIRC, and we can choose that, though

Copy link
Member

Choose a reason for hiding this comment

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

@rata is right. On Packet, specifying os_version only will cause configuration error, as recently added in #540.

Copy link
Member

Choose a reason for hiding this comment

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

I think for Packet, we could just set commented out os_channel value then.

Copy link
Member Author

@alban alban Jun 5, 2020

Choose a reason for hiding this comment

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

I can changed os_version to "" since that's the only value accepted without ipxe_script_url. It is commented.

@alban alban force-pushed the alban/examples-channels branch from ecf1013 to c94727f Compare June 5, 2020 16:10
@alban
Copy link
Member Author

alban commented Jun 5, 2020

Updated.

If Flatcar channels are not explicit, it is difficult for the user to
find out how to change them. It also makes it less likely to forget to
change it in the worker pool section.
@alban alban force-pushed the alban/examples-channels branch from c94727f to 215889d Compare June 5, 2020 17:48
@alban alban merged commit 953f303 into master Jun 6, 2020
@alban alban deleted the alban/examples-channels branch June 6, 2020 07:37
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