allow docker image/tag to be empty string

This is a work-around to allow evaluation for docs.
It shouldn't have any real effect but should be properyl implemented at some point.
This commit is contained in:
Bryton Hall 2022-08-28 15:02:49 -04:00
parent b8127b5dee
commit e3127e8c14

View file

@ -34,13 +34,13 @@ in {
name = mkOption { name = mkOption {
description = "Desired docker image name"; description = "Desired docker image name";
type = types.str; type = types.str;
default = builtins.unsafeDiscardStringContext config.image.imageName; default = if config.image != null then builtins.unsafeDiscardStringContext config.image.imageName else "";
}; };
tag = mkOption { tag = mkOption {
description = "Desired docker image tag"; description = "Desired docker image tag";
type = types.str; type = types.str;
default = builtins.unsafeDiscardStringContext config.image.imageTag; default = if config.image != null then builtins.unsafeDiscardStringContext config.image.imageTag else "";
}; };
registry = mkOption { registry = mkOption {