From ec163fcb27bf60a66d93ba1bf2094457c3eaa2fc Mon Sep 17 00:00:00 2001 From: Anurag <81210977+kranurag7@users.noreply.github.com> Date: Sun, 29 Oct 2023 20:26:21 +0530 Subject: [PATCH] update server and temp_ssh labels this commit updates ServerLabels and TempSSHKeyLabels in hcl2spec. Signed-off-by: Anurag <81210977+kranurag7@users.noreply.github.com> --- builder/hcloud/config.hcl2spec.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/builder/hcloud/config.hcl2spec.go b/builder/hcloud/config.hcl2spec.go index 3c2f4d9d..a0f9636a 100644 --- a/builder/hcloud/config.hcl2spec.go +++ b/builder/hcloud/config.hcl2spec.go @@ -71,6 +71,7 @@ type FlatConfig struct { Endpoint *string `mapstructure:"endpoint" cty:"endpoint" hcl:"endpoint"` PollInterval *string `mapstructure:"poll_interval" cty:"poll_interval" hcl:"poll_interval"` ServerName *string `mapstructure:"server_name" cty:"server_name" hcl:"server_name"` + ServerLabels map[string]string `mapstructure:"server_labels" cty:"server_labels" hcl:"server_labels"` Location *string `mapstructure:"location" cty:"location" hcl:"location"` ServerType *string `mapstructure:"server_type" cty:"server_type" hcl:"server_type"` UpgradeServerType *string `mapstructure:"upgrade_server_type" cty:"upgrade_server_type" hcl:"upgrade_server_type"` @@ -81,9 +82,10 @@ type FlatConfig struct { UserData *string `mapstructure:"user_data" cty:"user_data" hcl:"user_data"` UserDataFile *string `mapstructure:"user_data_file" cty:"user_data_file" hcl:"user_data_file"` SSHKeys []string `mapstructure:"ssh_keys" cty:"ssh_keys" hcl:"ssh_keys"` + TempSSHKeyLabels map[string]string `mapstructure:"temp_sshkey_labels" cty:"temp_sshkey_labels" hcl:"temp_sshkey_labels"` Networks []int64 `mapstructure:"networks" cty:"networks" hcl:"networks"` RescueMode *string `mapstructure:"rescue" cty:"rescue" hcl:"rescue"` -} +} // FlatMapstructure returns a new FlatConfig. // FlatConfig is an auto-generated flat version of Config. @@ -165,6 +167,8 @@ func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec { "image_filter": &hcldec.BlockSpec{TypeName: "image_filter", Nested: hcldec.ObjectSpec((*FlatimageFilter)(nil).HCL2Spec())}, "snapshot_name": &hcldec.AttrSpec{Name: "snapshot_name", Type: cty.String, Required: false}, "snapshot_labels": &hcldec.AttrSpec{Name: "snapshot_labels", Type: cty.Map(cty.String), Required: false}, + "server_labels": &hcldec.AttrSpec{Name: "server_labels", Type: cty.Map(cty.String), Required: false}, + "temp_sshkey_labels": &hcldec.AttrSpec{Name: "temp_sshkey_labels", Type: cty.Map(cty.String), Required: false}, "user_data": &hcldec.AttrSpec{Name: "user_data", Type: cty.String, Required: false}, "user_data_file": &hcldec.AttrSpec{Name: "user_data_file", Type: cty.String, Required: false}, "ssh_keys": &hcldec.AttrSpec{Name: "ssh_keys", Type: cty.List(cty.String), Required: false},