You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add unprivileged upgrade testing for Windows. (#4642)
* Add unprivileged upgrade testing for Windows.
* Adjust to 8.14.0-SNAPSHOT as minimum.
* Add SeCreateSymbolicLinkPrivilege
* Simplify if unprivileged mode is supported.
* Fix file access for upgrade.
* Fix kill watcher process on Windows in unprivileged mode.
* Fix imports.
* Fix kill non child process in tests.
* Fix lint.
logger.Logf("installation of Elastic Agent will use --unprivileged as both start and end version support --unprivileged mode")
@@ -220,11 +219,8 @@ func PerformUpgrade(
220
219
upgradeOpts.unprivileged=&unprivileged
221
220
}
222
221
} elseif*upgradeOpts.unprivileged {
223
-
ifstartVersion.Less(*Version_8_13_0) {
224
-
returnerrors.New("cannot install starting version with --unprivileged (which is default) because the it is older than 8.13")
225
-
}
226
-
ifendVersion.Less(*Version_8_13_0) {
227
-
returnerrors.New("cannot upgrade to ending version as end version doesn't support running with --unprivileged (which is default) because it is older than 8.13")
returnfmt.Errorf("cannot install with forced --unprivileged because either start version %s or end version %s doesn't support --unprivileged mode", startVersion.String(), endVersion.String())
0 commit comments