From 8d278d258f9eb16788cc8c4bda842018e28625d7 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Tue, 9 Jun 2020 14:30:08 +0200 Subject: [PATCH] x Signed-off-by: Antonio Murdaca --- pkg/asset/machines/master.go | 18 +++++++++--------- pkg/asset/machines/worker.go | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/pkg/asset/machines/master.go b/pkg/asset/machines/master.go index 8bca6faac86..58144c7cc2d 100644 --- a/pkg/asset/machines/master.go +++ b/pkg/asset/machines/master.go @@ -197,7 +197,7 @@ func (m *Master) Generate(dependencies asset.Parents) error { subnets, pool, "master", - "master-user-data", + "master-user-data-managed", installConfig.Config.Platform.AWS.UserTags, ) if err != nil { @@ -216,7 +216,7 @@ func (m *Master) Generate(dependencies asset.Parents) error { mpool.Zones = azs } pool.Platform.GCP = &mpool - machines, err = gcp.Machines(clusterID.InfraID, ic, pool, string(*rhcosImage), "master", "master-user-data") + machines, err = gcp.Machines(clusterID.InfraID, ic, pool, string(*rhcosImage), "master", "master-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create master machine objects") } @@ -226,7 +226,7 @@ func (m *Master) Generate(dependencies asset.Parents) error { mpool.Set(ic.Platform.Libvirt.DefaultMachinePlatform) mpool.Set(pool.Platform.Libvirt) pool.Platform.Libvirt = &mpool - machines, err = libvirt.Machines(clusterID.InfraID, ic, pool, "master", "master-user-data") + machines, err = libvirt.Machines(clusterID.InfraID, ic, pool, "master", "master-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create master machine objects") } @@ -238,7 +238,7 @@ func (m *Master) Generate(dependencies asset.Parents) error { imageName, _ := rhcosutils.GenerateOpenStackImageName(string(*rhcosImage), clusterID.InfraID) - machines, err = openstack.Machines(clusterID.InfraID, ic, pool, imageName, "master", "master-user-data") + machines, err = openstack.Machines(clusterID.InfraID, ic, pool, imageName, "master", "master-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create master machine objects") } @@ -268,7 +268,7 @@ func (m *Master) Generate(dependencies asset.Parents) error { pool.Platform.Azure = &mpool - machines, err = azure.Machines(clusterID.InfraID, ic, pool, string(*rhcosImage), "master", "master-user-data") + machines, err = azure.Machines(clusterID.InfraID, ic, pool, string(*rhcosImage), "master", "master-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create master machine objects") } @@ -279,7 +279,7 @@ func (m *Master) Generate(dependencies asset.Parents) error { mpool.Set(pool.Platform.BareMetal) pool.Platform.BareMetal = &mpool - machines, err = baremetal.Machines(clusterID.InfraID, ic, pool, string(*rhcosImage), "master", "master-user-data") + machines, err = baremetal.Machines(clusterID.InfraID, ic, pool, string(*rhcosImage), "master", "master-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create master machine objects") } @@ -331,7 +331,7 @@ func (m *Master) Generate(dependencies asset.Parents) error { imageName, _ := rhcosutils.GenerateOpenStackImageName(string(*rhcosImage), clusterID.InfraID) - machines, err = ovirt.Machines(clusterID.InfraID, ic, pool, imageName, "master", "master-user-data") + machines, err = ovirt.Machines(clusterID.InfraID, ic, pool, imageName, "master", "master-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create master machine objects for ovirt provider") } @@ -344,7 +344,7 @@ func (m *Master) Generate(dependencies asset.Parents) error { pool.Platform.VSphere = &mpool templateName := clusterID.InfraID + "-rhcos" - machines, err = vsphere.Machines(clusterID.InfraID, ic, pool, templateName, "master", "master-user-data") + machines, err = vsphere.Machines(clusterID.InfraID, ic, pool, templateName, "master", "master-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create master machine objects") } @@ -354,7 +354,7 @@ func (m *Master) Generate(dependencies asset.Parents) error { return fmt.Errorf("invalid Platform") } - data, err := userDataSecret("master-user-data", mign.File.Data) + data, err := userDataSecret("master-user-data-managed", mign.File.Data) if err != nil { return errors.Wrap(err, "failed to create user-data secret for master machines") } diff --git a/pkg/asset/machines/worker.go b/pkg/asset/machines/worker.go index 4c863fad3e1..26621e75c03 100644 --- a/pkg/asset/machines/worker.go +++ b/pkg/asset/machines/worker.go @@ -249,7 +249,7 @@ func (w *Worker) Generate(dependencies asset.Parents) error { subnets, &pool, "worker", - "worker-user-data", + "worker-user-data-managed", installConfig.Config.Platform.AWS.UserTags, ) if err != nil { @@ -281,7 +281,7 @@ func (w *Worker) Generate(dependencies asset.Parents) error { } pool.Platform.Azure = &mpool - sets, err := azure.MachineSets(clusterID.InfraID, ic, &pool, string(*rhcosImage), "worker", "worker-user-data") + sets, err := azure.MachineSets(clusterID.InfraID, ic, &pool, string(*rhcosImage), "worker", "worker-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create worker machine objects") } @@ -293,7 +293,7 @@ func (w *Worker) Generate(dependencies asset.Parents) error { mpool.Set(ic.Platform.BareMetal.DefaultMachinePlatform) mpool.Set(pool.Platform.BareMetal) pool.Platform.BareMetal = &mpool - sets, err := baremetal.MachineSets(clusterID.InfraID, ic, &pool, string(*rhcosImage), "worker", "worker-user-data") + sets, err := baremetal.MachineSets(clusterID.InfraID, ic, &pool, string(*rhcosImage), "worker", "worker-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create worker machine objects") } @@ -312,7 +312,7 @@ func (w *Worker) Generate(dependencies asset.Parents) error { mpool.Zones = azs } pool.Platform.GCP = &mpool - sets, err := gcp.MachineSets(clusterID.InfraID, ic, &pool, string(*rhcosImage), "worker", "worker-user-data") + sets, err := gcp.MachineSets(clusterID.InfraID, ic, &pool, string(*rhcosImage), "worker", "worker-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create worker machine objects") } @@ -324,7 +324,7 @@ func (w *Worker) Generate(dependencies asset.Parents) error { mpool.Set(ic.Platform.Libvirt.DefaultMachinePlatform) mpool.Set(pool.Platform.Libvirt) pool.Platform.Libvirt = &mpool - sets, err := libvirt.MachineSets(clusterID.InfraID, ic, &pool, "worker", "worker-user-data") + sets, err := libvirt.MachineSets(clusterID.InfraID, ic, &pool, "worker", "worker-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create worker machine objects") } @@ -339,7 +339,7 @@ func (w *Worker) Generate(dependencies asset.Parents) error { imageName, _ := rhcosutils.GenerateOpenStackImageName(string(*rhcosImage), clusterID.InfraID) - sets, err := openstack.MachineSets(clusterID.InfraID, ic, &pool, imageName, "worker", "worker-user-data") + sets, err := openstack.MachineSets(clusterID.InfraID, ic, &pool, imageName, "worker", "worker-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create worker machine objects") } @@ -353,7 +353,7 @@ func (w *Worker) Generate(dependencies asset.Parents) error { pool.Platform.VSphere = &mpool templateName := clusterID.InfraID + "-rhcos" - sets, err := vsphere.MachineSets(clusterID.InfraID, ic, &pool, templateName, "worker", "worker-user-data") + sets, err := vsphere.MachineSets(clusterID.InfraID, ic, &pool, templateName, "worker", "worker-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create worker machine objects") } @@ -368,7 +368,7 @@ func (w *Worker) Generate(dependencies asset.Parents) error { imageName, _ := rhcosutils.GenerateOpenStackImageName(string(*rhcosImage), clusterID.InfraID) - sets, err := ovirt.MachineSets(clusterID.InfraID, ic, &pool, imageName, "worker", "worker-user-data") + sets, err := ovirt.MachineSets(clusterID.InfraID, ic, &pool, imageName, "worker", "worker-user-data-managed") if err != nil { return errors.Wrap(err, "failed to create worker machine objects for ovirt provider") } @@ -381,7 +381,7 @@ func (w *Worker) Generate(dependencies asset.Parents) error { } } - data, err := userDataSecret("worker-user-data", wign.File.Data) + data, err := userDataSecret("worker-user-data-managed", wign.File.Data) if err != nil { return errors.Wrap(err, "failed to create user-data secret for worker machines") }