Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refac(back): #1378 deprecate deploy nomad #1396

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading