Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7B52AD49 for ; Tue, 12 Sep 2023 19:54:56 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20230912194915euoutp029132008005f6cbe31456bb2dd06ad83a~EPpGratlD2270722707euoutp026 for ; Tue, 12 Sep 2023 19:49:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20230912194915euoutp029132008005f6cbe31456bb2dd06ad83a~EPpGratlD2270722707euoutp026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1694548155; bh=EogZffkgJsY/OjiitVMVsiMNMCbG/o2y1YrYFaOr4eI=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=Z7AV4BxAnBTdXYI/pKQzLeurH81nMadJOzK55JJTkqS/Mmy10WaobszJOqH/mkFv8 JEwHgNj+AQEYehTDcq6MKvtWPGk9dyysVNUQHbD4roLP9/e2fcApTYjPEpsOkEYnsM 12l8jvt/gZKhxgKosQ4SDzOi6cof/ddpZREdQYfY= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20230912194915eucas1p1684d89016f55574ac42a13810118d53a~EPpGi8w-83227932279eucas1p1f; Tue, 12 Sep 2023 19:49:15 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 42.F8.37758.AB0C0056; Tue, 12 Sep 2023 20:49:14 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230912194914eucas1p2e6fc3cdcb7745a011c0760849f08eca8~EPpF2eZ8I1726917269eucas1p2l; Tue, 12 Sep 2023 19:49:14 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230912194914eusmtrp2c8f3eaa14a4b78df9f8a760b3d96e6a8~EPpF1_de42555325553eusmtrp2j; Tue, 12 Sep 2023 19:49:14 +0000 (GMT) X-AuditID: cbfec7f5-7ffff7000002937e-88-6500c0baf458 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 7B.4B.10549.AB0C0056; Tue, 12 Sep 2023 20:49:14 +0100 (BST) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230912194914eusmtip29a7fddc20a2b6319d6e3fc42253bc7bc~EPpFsz0SU1140011400eusmtip2b; Tue, 12 Sep 2023 19:49:14 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 12 Sep 2023 20:49:13 +0100 Received: from CAMSVWEXC02.scsc.local ([::1]) by CAMSVWEXC02.scsc.local ([fe80::3c08:6c51:fa0a:6384%13]) with mapi id 15.00.1497.012; Tue, 12 Sep 2023 20:49:13 +0100 From: Daniel Gomez To: "mcgrof@kernel.org" CC: "kdevops@lists.linux.dev" , "jlayton@kernel.org" , Daniel Gomez Subject: [PATCH 1/5] terraform: gce: remove redundant string for cpu and mem choice Thread-Topic: [PATCH 1/5] terraform: gce: remove redundant string for cpu and mem choice Thread-Index: AQHZ5bI0im6JeYzARkCqVo12GYxR2A== Date: Tue, 12 Sep 2023 19:49:13 +0000 Message-ID: <20230912194908.939107-2-da.gomez@samsung.com> In-Reply-To: <20230912194908.939107-1-da.gomez@samsung.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [106.110.32.103] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPIsWRmVeSWpSXmKPExsWy7djP87q7DjCkGjxstbL4uWwVu8XPNS+Z LW5MeMrowOyxaVUnm8eLzTMZA5iiuGxSUnMyy1KL9O0SuDKePf7JVnBMvuLBqTtsDYwHpboY OTkkBEwk1nfNYeli5OIQEljBKLFk721WCOcLo0THvsOMEM5nRolZjYuZYFq+L9jBBmILCSxn lOjs14Yr+tHykR3COcMo0bKjG8pZySgxeesGsBY2AU2JfSc3sYPYIgLaEj/3TGUEsZkFuhkl rhyLArGFBUIl/jY3M0PUREl8mr2NBcLWk7i6cQsriM0ioCqx83cLmM0rYCVxoesr2ExOAWuJ pd9fgfUyCshKPFr5ix1ivrjErSfzoV4QlFg0ew8zhC0m8W/XQzYIW0fi7PUnjBC2gcTWpftY IGwliT8dC6Hu1JO4MXUKG4StLbFs4WtmiBsEJU7OfAIOSQmByZwSc+89AFrMAeS4SLyZ5Qgx R1ji1fEt7BC2jMT/nfOZJjBqz0Jy3iwkK2YhWTELyYoFjCyrGMVTS4tz01OLjfNSy/WKE3OL S/PS9ZLzczcxAtPI6X/Hv+5gXPHqo94hRiYOxkOMEhzMSiK8JYf+pgjxpiRWVqUW5ccXleak Fh9ilOZgURLn1bY9mSwkkJ5YkpqdmlqQWgSTZeLglGpgSv6pc+BGitdOoXfBW6PuNt6RazZd 3vcyW/V98H9thloD4+s+DxM0roq6yp4UT5n4mtVIfuq8v78v7J2q2K4R3allv/XjrH3HbBQW qzME8sqV3GTZd/2bF0/y2Safu3cfCOgnXDhhPX9i0bM95roHrka4nHFazn+oq+UiR94J01Kf pjeSVozlLccD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5fetl LOP1l3zz28No6jOz2RaHJuQa9ExpXLzzgPaZKZzvp39tPdYbK2E0/ye7kNfeS8qZ1kbbdkl2 ysV+2BNkcrnjqfv1IsUt3UGLTMt1tSUjizgSJjGLrYzYk7bgxI/Dk1c23DZQi/9+vNGY6erq zqKPn9uXRPWZhjKvejvtDueXwlOiEnkpynkZuxoj9wqef8hTvfNbiYAp09UAvevKdsZKLMUZ iYZazEXFiQDA1JP6kAMAAA== X-CMS-MailID: 20230912194914eucas1p2e6fc3cdcb7745a011c0760849f08eca8 X-Msg-Generator: CA X-RootMTR: 20230912194914eucas1p2e6fc3cdcb7745a011c0760849f08eca8 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230912194914eucas1p2e6fc3cdcb7745a011c0760849f08eca8 References: <20230912194908.939107-1-da.gomez@samsung.com> This commits is part of the propagation fix found by Jeff Layton in the choice/endchoice Kconfig option. When a CONFIG option is used to assign the selected CONFIG, a string can't be added to that config, otherwise the config is exposed and not updated with user selection. Removing the string makes the config option hide from the menuconfig. For multichoice menu with single choice, remove choice menu and leave it as standalone option with its default value. Also, s/gce/GCE/g for Google Compute Engine (GCE) or Google Cloud Platform Provider (GCP) and add documentation link to the terraform variable each option is assigned to. Signed-off-by: Daniel Gomez --- terraform/gce/Kconfig | 56 ++++++++++++------------------------------- 1 file changed, 15 insertions(+), 41 deletions(-) diff --git a/terraform/gce/Kconfig b/terraform/gce/Kconfig index 2102abd2..95ebd8da 100644 --- a/terraform/gce/Kconfig +++ b/terraform/gce/Kconfig @@ -8,24 +8,15 @@ config TERRAFORM_GCE_PROJECT_NAME the actual name of the project you have created using the GCE interface. =20 -choice - prompt "Choose GCE region location to use" - default TERRAFORM_GCE_WEST_2C - -config TERRAFORM_GCE_WEST_2C - bool "us-west2-c" - help - This option will set the gce region location to us-west2-c. - -endchoice - config TERRAFORM_GCE_REGION_LOCATION string "GCE region location" - default "us-west2-c" if TERRAFORM_GCE_WEST_2C + default "us-west2-c" help - This option will set the gce region location. For more examples: + This option will set the GCE region location. For more examples: https://cloud.google.com/compute/docs/regions-zones/ =20 + Documentation: https://registry.terraform.io/providers/hashicorp/google= /latest/docs/resources/compute_instance#zone + choice prompt "Choose GCE Machine type" default TERRAFORM_GCE_MACHINE_N1_STANDARD_8 @@ -45,7 +36,7 @@ config TERRAFORM_GCE_MACHINE_N1_STANDARD_8 endchoice =20 config TERRAFORM_GCE_MACHINE_TYPE - string "GCE Machine type" + string default "n1-standard-1" if TERRAFORM_GCE_MACHINE_N1_STANDARD_1 default "n1-standard-8" if TERRAFORM_GCE_MACHINE_N1_STANDARD_8 help @@ -54,40 +45,23 @@ config TERRAFORM_GCE_MACHINE_TYPE =20 https://cloud.google.com/compute/docs/machine-types =20 -choice - prompt "Choose GCE scratch disk interface to use" - default TERRAFORM_GCE_SCRATCH_DISK_NVME - -config TERRAFORM_GCE_SCRATCH_DISK_NVME - bool "NVME" - help - This option sets the scratch disk interface to NVMe. - -endchoice + Documentation: https://registry.terraform.io/providers/hashicorp/google= /latest/docs/resources/compute_instance#machine_type =20 config TERRAFORM_GCE_SCRATCH_DISK_INTERFACE - string "GCE scratch disk interface" - default "NVME" if TERRAFORM_GCE_SCRATCH_DISK_NVME + string "GCE scratch disk interface to use" + default "NVME" help - This option will set gce scratch disk interface. + This option will set GCE scratch disk interface. =20 -choice - prompt "Choose GCE image to use" - default TERRAFORM_GCE_IMAGE_DEBIAN_10 - -config TERRAFORM_GCE_IMAGE_DEBIAN_10 - bool "debian-cloud/debian-10" - depends on TARGET_ARCH_X86_64 - help - This option sets the gce image to debian-cloud/debian-10. - -endchoice + Documentation: https://registry.terraform.io/providers/hashicorp/google= /latest/docs/resources/compute_instance#scratch_disk =20 config TERRAFORM_GCE_IMAGE - string "GCE image name to use" - default "debian-cloud/debian-10" if TERRAFORM_GCE_IMAGE_DEBIAN_10 + string "GCE image to use" + default "debian-cloud/debian-10" help - This option will set gce image to debian-cloud/debian-10. + This option will set GCE image to debian-cloud/debian-10. + + Documentation: https://registry.terraform.io/providers/hashicorp/google= /latest/docs/resources/compute_instance#image =20 config TERRAFORM_GCE_JSON_CREDENTIALS_PATH string "GCE json credential file path" --=20 2.39.2