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

OCPBUGS-31733: Remove CPMS manifest for vSphere platform #6239

Merged
merged 1 commit into from May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions internal/provider/vsphere/ignition.go
Expand Up @@ -35,6 +35,15 @@ func (p vsphereProvider) PostCreateManifestsHook(_ *common.Cluster, _ *[]string,
return fmt.Errorf("error deleting machineset: %w", err)
}

// Delete machine-api control plane machine set manifest
p.Log.Info("Deleting machine-api control plane machine set manifest")
files, _ = filepath.Glob(path.Join(workDir, "openshift", "*_openshift-machine-api_master-control-plane-machine-set.yaml"))
err = p.deleteAllFiles(files)

if err != nil {
return fmt.Errorf("error deleting control plane machine set: %w", err)
}

return nil
}

Expand Down