Skip to content

Commit

Permalink
Merge pull request #14236 from sp98/fix-svg-cleanup-job
Browse files Browse the repository at this point in the history
core: fix missing env in svg cleanup job
  • Loading branch information
travisn committed May 17, 2024
2 parents 9f3d76c + 33ce8f0 commit eecaa25
Showing 1 changed file with 6 additions and 1 deletion.
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 @@ -399,8 +399,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

0 comments on commit eecaa25

Please sign in to comment.