Skip to content

Commit

Permalink
disable rolling back the app on embedded cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Mar 5, 2024
1 parent 9cca9e9 commit dafbd26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/store/kotsstore/version_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (s *KOTSStore) IsRollbackSupportedForVersion(appID string, sequence int64)
return false, errors.Wrap(err, "failed to load kots app from contents")
}

if util.IsEmbeddedCluster() {
return false, nil
}

return kotsAppSpec.Spec.AllowRollback, nil
}

Expand Down

0 comments on commit dafbd26

Please sign in to comment.