Commit Graph

64 Commits

Author SHA1 Message Date
Jerome Gravel-Niquet cbdc1978bf Consul service meta (#6193)
* adds meta object to service in job spec, sends it to consul

* adds tests for service meta

* fix tests

* adds docs

* better hashing for service meta, use helper for copying meta when registering service

* tried to be DRY, but looks like it would be more work to use the
helper function
2019-08-23 12:49:02 -04:00
Charlie Voiselle 7a5983b381 --payload -> --data for curl; consistent @payload 2019-08-15 14:09:44 -04:00
Omar Khawaja b9f0407f17
make purge parameter lowercase (#5895) 2019-06-27 14:07:25 -04:00
Preetha Appan 16f422589a
revert 0.9.2 super script tags 2019-06-05 20:39:22 +05:30
Mahmood Ali c37ce19ac1 docs: Tag all 0.9.2 features 2019-05-23 10:51:03 -04:00
Preetha Appan 26ea951627
docs 2019-05-14 16:13:59 -05:00
Charlie Voiselle 45ff97cb7a querystring -> query string 2019-05-08 15:14:31 -04:00
Chris Baker ee3b8f75c4
docs: added vault token documentation to `job revert` command, documented VaultToken field of api.JobRevertRequest 2019-04-10 10:34:10 -05:00
Mahmood Ali c737a155f8
docs: fix job json example (#5274)
The internal needs to be long enough to accomodate the attempts.

Also, clarify that the input should be a json file rather than an hcl
`.nomad` one.
2019-01-30 10:33:10 -05:00
Preetha Appan 7614f841b0
Spread json docs 2019-01-10 11:10:04 -06:00
Alex Dadgar 1e3c3cb287 Deprecate IOPS
IOPS have been modelled as a resource since Nomad 0.1 but has never
actually been detected and there is no plan in the short term to add
detection. This is because IOPS is a bit simplistic of a unit to define
the performance requirements from the underlying storage system. In its
current state it adds unnecessary confusion and can be removed without
impacting any users. This PR leaves IOPS defined at the jobspec parsing
level and in the api/ resources since these are the two public uses of
the field. These should be considered deprecated and only exist to allow
users to stop using them during the Nomad 0.9.x release. In the future,
there should be no expectation that the field will exist.
2018-12-06 15:09:26 -08:00
Preetha Appan 8b3de1f8d9
More docs for affinities 2018-11-05 16:41:20 -06:00
Preetha Appan bfa0937bbb
Code review feedback 2018-05-10 14:42:24 -05:00
Preetha Appan b811018b23
Documentation for evaluate endpoint 2018-05-09 16:52:15 -05:00
Nick Ethier 1f99c3a0f7
minor code review fixes to api/jobs 2018-04-17 10:18:36 -04:00
Nick Ethier f72c76c373
website: fix type in api/jobs/parse 2018-04-16 19:32:37 -04:00
Nick Ethier bfc0e49ff2
website: add standard blocking query/ACL table to jobs/parse ep 2018-04-16 19:21:09 -04:00
Nick Ethier ecce6d7366
website: add api docs for v1/jobs/parse endpoint 2018-04-16 19:21:09 -04:00
Preetha Appan 7b0aaebb50
Initial docs for new delayed rescheduling options 2018-03-27 14:55:19 -05:00
Preetha Appan 4db169ce0a
Review feedback 2018-02-06 12:25:44 -06:00
Preetha Appan 9632d0e352
Documentation for reschedule attempts in CLI/API 2018-02-06 10:19:45 -06:00
Charlie Voiselle fb5091678b Changed `nomad.rocks` to `localhost:4646` to align with defaults
Should provide cut and paste example for most users. Advanced users should be able to correct URLs to something appropriate.
2018-01-29 11:27:52 -05:00
Michael Schurter 9fcda9c5aa Make example service name make sense
Switch from global-redis-check for the example job's service name to
redis-cache. The former name is really confusing and someone finally
called us out on it:

https://groups.google.com/d/msg/nomad-tool/3RTh6CyYkWk/vEe_Sj7lAAAJ

Also specifically mention that the `service.name` parameter is what is
advertised in Consul.
2018-01-17 14:08:30 -08:00
Thomas Bartelmess 9acfa166c0
Changed Superset to only return the resource name
The Superset method on Resources used to return a string in the format of “[resource name] exhausted”.
This was leading to the output in plan/create job API DimensionExhausted to return keys like
```
"DimensionExhausted": {"cpu exhausted": 1}
```
This was not anywhere documented, however, one of the examples on the website showed it like this.

The other side effect of this is that the CLI formats the strings from the name of the key leading to output like
```
* Dimension "cpu exhausted" exhausted on 1 nodes
```
2017-11-28 23:16:08 -05:00
Preetha Appan 7116487a96 Document modify time in a bunch of places 2017-11-01 15:16:38 -05:00
Michael Schurter 0cf7a3950b Force Periodic ACL enforcement 2017-10-10 15:16:41 -07:00
Chelsea Komlo 7c8a5228d4 Merge pull request #3290 from hashicorp/f-acl-job-dispatch
Add ACL for dispatch job
2017-10-06 13:33:21 -04:00
Chelsea Komlo 97e34725e1 Merge pull request #3278 from hashicorp/f-acl-job-getjob
Add ACL for GetJob
2017-09-29 17:44:31 -04:00
Chelsea Komlo 388cdaa2e8 Merge pull request #3272 from hashicorp/f-acl-job-stable
Add ACL endpoint for Job Stable
2017-09-29 17:44:09 -04:00
Chelsea Komlo 3a015016cc Merge pull request #3294 from hashicorp/f-acl-job-deregister
Add ACL for job deregister
2017-09-28 10:57:51 -04:00
Chelsea Komlo c54a4f7c91 Merge pull request #3291 from hashicorp/f-acl-get-job-versions
Add ACL for job endpoint GetJobVersions
2017-09-28 10:35:19 -04:00
Chelsea Holland Komlo c242ac1431 job dispatch should have dispatch policy 2017-09-28 14:28:28 +00:00
Chelsea Komlo 77ae328fbe Merge pull request #3276 from hashicorp/f-acl-job-evaluate
Add read job permissions to evaluate endpoint
2017-09-27 18:01:15 -04:00
Chelsea Holland Komlo 09cd8b2792 add documnetation 2017-09-27 21:06:13 +00:00
Chelsea Komlo d3d1bc6498 Merge pull request #3279 from hashicorp/f-acl-job-allocations
Add ACL to job allocations endpoint
2017-09-27 16:57:04 -04:00
Chelsea Komlo 8f1c89c721 Merge pull request #3283 from hashicorp/f-acl-job-latest-deployment
Add ACL to latest job api
2017-09-27 16:54:44 -04:00
Chelsea Holland Komlo 41c30183ee add documentation 2017-09-27 20:23:06 +00:00
Chelsea Holland Komlo fe226a8f87 add documentation 2017-09-27 20:20:04 +00:00
Chelsea Holland Komlo aa026e708a add documentation 2017-09-27 20:17:58 +00:00
Chelsea Holland Komlo 4e18d060b0 add documentation 2017-09-27 20:12:49 +00:00
Alex Dadgar bed56cbb1e Merge pull request #3292 from hashicorp/f-lint-website
Spell check website
2017-09-27 12:56:13 -07:00
Chelsea Holland Komlo 1bab53c9fd acl for job deregister 2017-09-27 19:21:10 +00:00
Chelsea Komlo b40de659a7 Merge pull request #3281 from hashicorp/f-acl-job-evaluations
Add ACL for Job Evaluations endpoint
2017-09-27 15:15:35 -04:00
Alex Dadgar 60111b5af7 Spell check website 2017-09-27 11:14:37 -07:00
Chelsea Holland Komlo 0db1367d43 add acl for dispatch job 2017-09-27 16:33:49 +00:00
Chelsea Holland Komlo 55c4ca187e add acl for job deployments endpoint 2017-09-26 20:33:03 +00:00
Chelsea Holland Komlo a7b7b3f6c6 add acl for Job Evaluations endpoint 2017-09-26 20:12:37 +00:00
Chelsea Holland Komlo 2fb7772c2c add acl to job allocations endpoint 2017-09-26 18:01:23 +00:00
Chelsea Holland Komlo 021dae5452 add acl documentation 2017-09-25 21:53:32 +00:00
Alex Dadgar e5ec915ac3 sync 2017-09-19 10:08:23 -05:00