mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
feat(modules/docker): improvements
This commit is contained in:
parent
fbaed4ec00
commit
a6cea15f34
3 changed files with 25 additions and 9 deletions
|
|
@ -5,7 +5,6 @@ with lib;
|
|||
let
|
||||
cfg = config.submodules.instances.test.config;
|
||||
deployment = cfg.kubernetes.api.deployments.nginx;
|
||||
image = images.nginx;
|
||||
in {
|
||||
imports = [
|
||||
kubenix.all
|
||||
|
|
@ -20,6 +19,9 @@ in {
|
|||
} {
|
||||
message = "Version not propagated";
|
||||
assertion = cfg.kubernetes.version == config.kubernetes.version;
|
||||
} {
|
||||
message = "docker image should be added to exported images";
|
||||
assertion = (head config.docker.export) == images.nginx;
|
||||
}];
|
||||
testScript = ''
|
||||
$kube->waitUntilSucceeds("docker load < ${image}");
|
||||
|
|
@ -44,12 +46,14 @@ in {
|
|||
template.metadata.labels.app = "nginx";
|
||||
template.spec = {
|
||||
containers.nginx = {
|
||||
image = "${image.imageName}:${image.imageTag}";
|
||||
image = config.docker.images.nginx.path;
|
||||
imagePullPolicy = "Never";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
docker.images.nginx.image = images.nginx;
|
||||
};
|
||||
}];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue