From b3f7e1d584ed7f45e5bbf73e9dc59d2bdc6d1946 Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Wed, 18 Oct 2023 15:10:13 +0200 Subject: [PATCH] remove unnecessary line breaks --- .../actions/self_managed_create/action.yml | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/.github/actions/self_managed_create/action.yml b/.github/actions/self_managed_create/action.yml index 52cffd1ba2..7581a2b60e 100644 --- a/.github/actions/self_managed_create/action.yml +++ b/.github/actions/self_managed_create/action.yml @@ -27,27 +27,26 @@ runs: echo "debug = $(yq '.debugCluster' constellation-conf.yaml)" >> terraform.tfvars echo "custom_endpoint = \"$(yq '.customEndpoint' constellation-conf.yaml)\"" >> terraform.tfvars echo "image_id = \"${{ inputs.osImage }}\"" >> terraform.tfvars - echo "node_groups = {\n \ - control_plane_default = {\n \ - role = \"$(yq '.nodeGroups.control_plane_default.role' constellation-conf.yaml)\"\n \ - zone = \"$(yq '.nodeGroups.control_plane_default.zone' constellation-conf.yaml)\"\n \ - zones = [ \"$(yq '.nodeGroups.worker_default.zone' constellation-conf.yaml)\" ]\n \ - instance_type = \"$(yq '.nodeGroups.control_plane_default.instanceType' constellation-conf.yaml)\"\n \ - disk_size = \"$(yq '.nodeGroups.control_plane_default.stateDiskSizeGB' constellation-conf.yaml)\"\n \ - disk_type = \"$(yq '.nodeGroups.control_plane_default.stateDiskType' constellation-conf.yaml)\"\n \ - initial_count = \"$(yq '.nodeGroups.control_plane_default.initialCount' constellation-conf.yaml)\"\n \ - }\n \ - worker_default = {\n \ - role = \"$(yq '.nodeGroups.worker_default.role' constellation-conf.yaml)\"\n \ - zone = \"$(yq '.nodeGroups.worker_default.zone' constellation-conf.yaml)\"\n \ - zones = [ \"$(yq '.nodeGroups.worker_default.zone' constellation-conf.yaml)\" ]\n \ - instance_type = \"$(yq '.nodeGroups.worker_default.instanceType' constellation-conf.yaml)\"\n \ - disk_size = \"$(yq '.nodeGroups.worker_default.stateDiskSizeGB' constellation-conf.yaml)\"\n \ - disk_type = \"$(yq '.nodeGroups.worker_default.stateDiskType' constellation-conf.yaml)\"\n \ - initial_count = \"$(yq '.nodeGroups.worker_default.initialCount' constellation-conf.yaml)\"\n \ - } \ - }" \ - >> terraform.tfvars + echo "node_groups = { + control_plane_default = { + role = \"$(yq '.nodeGroups.control_plane_default.role' constellation-conf.yaml)\" + zone = \"$(yq '.nodeGroups.control_plane_default.zone' constellation-conf.yaml)\" + zones = [ \"$(yq '.nodeGroups.worker_default.zone' constellation-conf.yaml)\" ] + instance_type = \"$(yq '.nodeGroups.control_plane_default.instanceType' constellation-conf.yaml)\" + disk_size = \"$(yq '.nodeGroups.control_plane_default.stateDiskSizeGB' constellation-conf.yaml)\" + disk_type = \"$(yq '.nodeGroups.control_plane_default.stateDiskType' constellation-conf.yaml)\" + initial_count = \"$(yq '.nodeGroups.control_plane_default.initialCount' constellation-conf.yaml)\" + } + worker_default = { + role = \"$(yq '.nodeGroups.worker_default.role' constellation-conf.yaml)\" + zone = \"$(yq '.nodeGroups.worker_default.zone' constellation-conf.yaml)\" + zones = [ \"$(yq '.nodeGroups.worker_default.zone' constellation-conf.yaml)\" ] + instance_type = \"$(yq '.nodeGroups.worker_default.instanceType' constellation-conf.yaml)\" + disk_size = \"$(yq '.nodeGroups.worker_default.stateDiskSizeGB' constellation-conf.yaml)\" + disk_type = \"$(yq '.nodeGroups.worker_default.stateDiskType' constellation-conf.yaml)\" + initial_count = \"$(yq '.nodeGroups.worker_default.initialCount' constellation-conf.yaml)\" + } + }" >> terraform.tfvars if [[ "${{ inputs.cloudProvider }}" == 'aws' ]]; then echo "iam_instance_profile_control_plane = \"$(yq '.provider.aws.iamProfileControlPlane' constellation-conf.yaml)\"" >> terraform.tfvars echo "iam_instance_profile_worker_nodes = \"$(yq '.provider.aws.iamProfileWorkerNodes' constellation-conf.yaml)\"" >> terraform.tfvars