nix: render migrate.json and wrap swarmctl with kubectl
This commit is contained in:
parent
9396941f24
commit
5779bc5719
1 changed files with 291 additions and 1 deletions
|
|
@ -1262,6 +1262,19 @@ in
|
|||
|
||||
k8s.freshState = import ./lib/fresh-state-option.nix { inherit lib; } "nats";
|
||||
|
||||
storeDir = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
readOnly = true;
|
||||
internal = true;
|
||||
default = natsSystem.services.nats.settings.jetstream.store_dir;
|
||||
description = ''
|
||||
The JetStream store's directory inside the container, and the path the
|
||||
pod mounts its volume at. The host's copy of it is this path under
|
||||
`/var/lib/nixos-containers/swarm-nats`, which
|
||||
../host-modules/k8s/migrate.nix names for `swarmctl migrate`.
|
||||
'';
|
||||
};
|
||||
|
||||
unit = lib.mkOption {
|
||||
type = lib.types.raw;
|
||||
readOnly = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue