Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have the MCO manage the ignition stub config #3730

Merged
merged 1 commit into from
Aug 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions pkg/asset/machines/master.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")
}
Expand All @@ -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")
}
Expand All @@ -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")
}
Expand Down Expand Up @@ -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")
}
Expand All @@ -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")
}
Expand Down Expand Up @@ -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")
}
Expand All @@ -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")
}
Expand All @@ -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")
}
Expand Down
18 changes: 9 additions & 9 deletions pkg/asset/machines/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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")
}
Expand All @@ -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")
}
Expand All @@ -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")
}
Expand All @@ -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")
}
Expand All @@ -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")
}
Expand All @@ -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")
}
Expand All @@ -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")
}
Expand All @@ -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")
}
Expand Down