diff options
author | Yaya <mak@nyantec.com> | 2023-05-30 09:20:18 +0000 |
---|---|---|
committer | Yureka <yuka@yuka.dev> | 2023-05-31 22:14:25 +0200 |
commit | e9594e60319bae339c8cc7211e9f773d394839ae (patch) | |
tree | 7e1d5a3eb4798db63d02f4b36c5c1eca6e7624ed /nixos/modules/services | |
parent | 014816cbe46973336739c450b6b80cc00f0508fa (diff) | |
download | nixlib-e9594e60319bae339c8cc7211e9f773d394839ae.tar nixlib-e9594e60319bae339c8cc7211e9f773d394839ae.tar.gz nixlib-e9594e60319bae339c8cc7211e9f773d394839ae.tar.bz2 nixlib-e9594e60319bae339c8cc7211e9f773d394839ae.tar.lz nixlib-e9594e60319bae339c8cc7211e9f773d394839ae.tar.xz nixlib-e9594e60319bae339c8cc7211e9f773d394839ae.tar.zst nixlib-e9594e60319bae339c8cc7211e9f773d394839ae.zip |
nixos/gitlab: Warn users who are still using an external registry
This adds a warning for GitLab >=16.0.0 users who are still using an external container registry such as `pkgs.docker-distribution`. Support for external container registries has ended in GitLab 16.0 [1] and is scheduled for removal in a future release. [2] [1]: https://gitlab.com/gitlab-org/gitlab/-/issues/376217 [2]: https://gitlab.com/gitlab-org/gitlab/-/issues/403322
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/misc/gitlab.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index 6bddb3615030..bf0a12007447 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -1081,6 +1081,13 @@ in { }; config = mkIf cfg.enable { + warnings = [ + (mkIf + (cfg.registry.enable && versionAtLeast (getVersion cfg.packages.gitlab) "16.0.0" && cfg.registry.package == pkgs.docker-distribution) + ''Support for container registries other than gitlab-container-registry has ended since GitLab 16.0.0 and is scheduled for removal in a future release. + Please back up your data and migrate to the gitlab-container-registry package.'' + ) + ]; assertions = [ { |