From c94727f593aba4e14034c7573baae981c562feb0 Mon Sep 17 00:00:00 2001 From: Alban Crequy Date: Thu, 4 Jun 2020 20:11:00 +0200 Subject: [PATCH] examples: make Flatcar channels explicit 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. --- examples/aws-production/cluster.lokocfg | 6 ++++++ examples/aws-testing/cluster.lokocfg | 6 ++++++ examples/packet-production/cluster.lokocfg | 7 +++++++ examples/packet-testing/cluster.lokocfg | 7 +++++++ 4 files changed, 26 insertions(+) diff --git a/examples/aws-production/cluster.lokocfg b/examples/aws-production/cluster.lokocfg index 745ed8b9d..7203bb748 100644 --- a/examples/aws-production/cluster.lokocfg +++ b/examples/aws-production/cluster.lokocfg @@ -51,6 +51,9 @@ cluster "aws" { dns_zone_id = var.route53_zone_id ssh_pubkeys = var.ssh_public_keys + //os_channel = "stable" + //os_version = "current" + oidc { issuer_url = var.oidc_issuer_url client_id = var.oidc_client_id @@ -62,6 +65,9 @@ cluster "aws" { count = var.workers_count instance_type = var.workers_type ssh_pubkeys = var.ssh_public_keys + + //os_channel = "stable" + //os_version = "current" } } diff --git a/examples/aws-testing/cluster.lokocfg b/examples/aws-testing/cluster.lokocfg index be01b3ecf..926f270f2 100644 --- a/examples/aws-testing/cluster.lokocfg +++ b/examples/aws-testing/cluster.lokocfg @@ -30,10 +30,16 @@ cluster "aws" { dns_zone_id = var.route53_zone_id ssh_pubkeys = var.ssh_public_keys + //os_channel = "stable" + //os_version = "current" + worker_pool "my-wp-name" { count = var.workers_count instance_type = var.workers_type ssh_pubkeys = var.ssh_public_keys + + //os_channel = "stable" + //os_version = "current" } } diff --git a/examples/packet-production/cluster.lokocfg b/examples/packet-production/cluster.lokocfg index d5bb173c6..53a8bdf2c 100644 --- a/examples/packet-production/cluster.lokocfg +++ b/examples/packet-production/cluster.lokocfg @@ -57,6 +57,10 @@ cluster "packet" { cluster_name = var.cluster_name controller_count = var.controllers_count + //os_channel = "stable" + //os_version = "" + + dns { provider = "route53" zone = var.dns_zone @@ -80,6 +84,9 @@ cluster "packet" { worker_pool "pool-1" { count = var.workers_count node_type = var.workers_type + + //os_channel = "stable" + //os_version = "" } } diff --git a/examples/packet-testing/cluster.lokocfg b/examples/packet-testing/cluster.lokocfg index 1d5ee7f8e..0c41c0b67 100644 --- a/examples/packet-testing/cluster.lokocfg +++ b/examples/packet-testing/cluster.lokocfg @@ -42,6 +42,10 @@ cluster "packet" { cluster_name = var.cluster_name controller_count = var.controllers_count + //os_channel = "stable" + //os_version = "" + + dns { provider = "route53" zone = var.dns_zone @@ -58,6 +62,9 @@ cluster "packet" { worker_pool "pool-1" { count = var.workers_count node_type = var.workers_type + + //os_channel = "stable" + //os_version = "" } }