Skip to content

Commit

Permalink
Added annotations for app-mobility upgrade (#587)
Browse files Browse the repository at this point in the history
* Added annotations for app-mobility upgrade

* Added upgrade path for 1.0.3 release

Signed-off-by: Harish P <harish_p4@dell.com>

---------

Signed-off-by: Harish P <harish_p4@dell.com>
  • Loading branch information
ChristianAtDell committed Oct 15, 2024
1 parent 2b3aed7 commit 1276026
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions controllers/csm_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1371,6 +1371,10 @@ func (r *ContainerStorageModuleReconciler) checkUpgrade(ctx context.Context, cr
newVersion := cr.GetModule(csmv1.AuthorizationServer).ConfigVersion
return utils.IsValidUpgrade(ctx, oldVersion, newVersion, csmv1.Authorization, operatorConfig)
}
if cr.HasModule(csmv1.ApplicationMobility) {
newVersion := cr.GetModule(csmv1.ApplicationMobility).ConfigVersion
return utils.IsValidUpgrade(ctx, oldVersion, newVersion, csmv1.ApplicationMobility, operatorConfig)
}
driverType := cr.Spec.Driver.CSIDriverType
if driverType == csmv1.PowerScale {
// use powerscale instead of isilon as the folder name is powerscale
Expand Down Expand Up @@ -1398,6 +1402,8 @@ func applyConfigVersionAnnotations(ctx context.Context, instance *csmv1.Containe
var configVersion string
if instance.HasModule(csmv1.AuthorizationServer) {
configVersion = instance.GetModule(csmv1.AuthorizationServer).ConfigVersion
} else if instance.HasModule(csmv1.ApplicationMobility) {
configVersion = instance.GetModule(csmv1.ApplicationMobility).ConfigVersion
} else {
configVersion = instance.Spec.Driver.ConfigVersion
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

minUpgradePath: v1.0.3

0 comments on commit 1276026

Please sign in to comment.