Skip to content

Commit

Permalink
feat: Move supported resources from hard-coded to ConfigMap
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirgilad authored and maromcohen committed Aug 26, 2024
1 parent 70d5442 commit e343ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/migrationhierarchy/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func (r *MigrationHierarchyReconciler) createSNS(sns *objectcontext.ObjectContex
}

if err := newSNS.EnsureCreate(); err != nil {
return newSNS, fmt.Errorf("creating the subnamespace under the destination namespace failed because: " + err.Error())
return newSNS, fmt.Errorf("creating the subnamespace under the destination namespace failed because: %w", err)
}

return newSNS, nil
Expand All @@ -333,7 +333,7 @@ func ComposeSNS(name string, namespace string, quota corev1.ResourceList, labels
// deleteSNS deletes a subnamespace
func (r *MigrationHierarchyReconciler) deleteSNS(sns *objectcontext.ObjectContext) error {
if err := sns.EnsureDelete(); err != nil {
return fmt.Errorf("deleting the subnamespace failed because: " + err.Error())
return fmt.Errorf("deleting the subnamespace failed because: %w", err)
}

return nil
Expand Down

0 comments on commit e343ccd

Please sign in to comment.