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

Bug 2281580: core: fix missing env in svg cleanup job #653

Merged
merged 1 commit into from
May 20, 2024
Merged
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
7 changes: 6 additions & 1 deletion pkg/operator/ceph/file/subvolumegroup/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,13 @@ func buildClusterID(cephFilesystemSubVolumeGroup *cephv1.CephFilesystemSubVolume

func (r *ReconcileCephFilesystemSubVolumeGroup) cleanup(svg *cephv1.CephFilesystemSubVolumeGroup, cephCluster *cephv1.CephCluster) error {
logger.Infof("starting cleanup of the ceph resources for subVolumeGroup %q in namespace %q", svg.Name, svg.Namespace)
svgName := svg.Spec.Name
// use resource name if `spec.Name` is empty in the subvolumeGroup CR.
if svgName == "" {
svgName = svg.Name
}
cleanupConfig := map[string]string{
opcontroller.CephFSSubVolumeGroupNameEnv: svg.Spec.Name,
opcontroller.CephFSSubVolumeGroupNameEnv: svgName,
opcontroller.CephFSNameEnv: svg.Spec.FilesystemName,
opcontroller.CSICephFSRadosNamesaceEnv: "csi",
opcontroller.CephFSMetaDataPoolNameEnv: file.GenerateMetaDataPoolName(svg.Spec.FilesystemName),
Expand Down
Loading