Skip to content

Commit

Permalink
Merge pull request fluidattacks#1396 from dsalaza4/main
Browse files Browse the repository at this point in the history
refac(back): fluidattacks#1378 deprecate deploy nomad
  • Loading branch information
dsalaza4 authored Dec 12, 2024
2 parents 648ca91 + 59b3c43 commit 9186bdc
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 176 deletions.
79 changes: 0 additions & 79 deletions docs/src/api/builtins/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,84 +420,5 @@ Example:
m . /taintTerraform/module
```

## deployNomad

Deploy [Nomad](https://www.nomad.io/) code
by performing a `nomad plan`
over the specified Nomad jobs / namespaces.

Types:

- deployNomad:
- jobs (`attrsOf jobsType`): Optional.
Path to Nomad jobs to deploy.
Defaults to `{ }`.
- namespaces (`attrsOf namespacesType`): Optional.
Path to Nomad namespaces to deploy.
Defaults to `{ }`.
- jobsType (`submodule`):
- setup (`listOf package`): Optional.
[Makes Environment][makes_environment]
or [Makes Secrets][makes_secrets]
to `source` (as in Bash's `source`)
before anything else.
Defaults to `[ ]`.
- src (`path`):
Path to the Nomad job (hcl or json).
- version (`enum [ "1.0" "1.1" ]`):
Nomad version your job is built with.
Defaults to `"1.1"`.
- namespace (`str`):
Nomad namespace to deploy the job into.
- namespacesType (`submodule`):
- setup (`listOf package`): Optional.
Makes Environment
or Makes Secrets
to `source` (as in Bash's `source`)
before anything else.
Defaults to `[ ]`.
- jobs (`attrOf path`):
Attributes of path to the Nomad jobs (hcl or json).
- version (`enum [ "1.0" "1.1" ]`):
Nomad version your jobs are built with.
Defaults to `"1.1"`.

Example:

=== "makes.nix"

```nix
{
deployNomad = {
jobs = {
job1 = {
src = ./my/job1.hcl;
namespace = "default";
};
job2 = {
src = ./my/job2.json;
namespace = "default";
};
};
namespaces = {
dev.jobs = {
job1 = ./my/dev/job1.hcl;
job2 = ./my/dev/job2.json;
};
staging.jobs = {
job1 = ./my/staging/job1.hcl;
job2 = ./my/staging/job2.json;
};
};
};
}
```

=== "Invocation"

```bash
m . /deployNomad/default/job1
```

[makes_environment]: ./environment.md
[makes_secrets]: ./secrets.md
1 change: 0 additions & 1 deletion src/args/agnostic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ let
deployContainer = import ./deploy-container/default.nix self;
deployContainerManifest =
import ./deploy-container-manifest/default.nix self;
deployNomad = import ./deploy-nomad/default.nix self;
deployTerraform = import ./deploy-terraform/default.nix self;
inherit (__nixpkgs__.lib.strings) escapeShellArg;
inherit (__nixpkgs__.lib.strings) escapeShellArgs;
Expand Down
13 changes: 0 additions & 13 deletions src/args/deploy-nomad/default.nix

This file was deleted.

18 changes: 0 additions & 18 deletions src/args/deploy-nomad/entrypoint.sh

This file was deleted.

1 change: 0 additions & 1 deletion src/evaluator/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
(import ./dev/default.nix args)
(import ./deploy-container/default.nix args)
(import ./deploy-container-manifest/default.nix args)
(import ./deploy-nomad/default.nix args)
(import ./deploy-terraform/default.nix args)
(import ./dynamodb/default.nix args)
(import ./env-vars/default.nix args)
Expand Down
64 changes: 0 additions & 64 deletions src/evaluator/modules/deploy-nomad/default.nix

This file was deleted.

0 comments on commit 9186bdc

Please sign in to comment.