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

Dueling-breaking-queries rework of the jobs index page #19778

Closed
wants to merge 175 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
55d8b16
api: new /jobs/statuses endpoint
gulducat Jan 4, 2024
0de90e8
make blocking-query block
gulducat Jan 4, 2024
6a8b132
add JobSummary.Children.Desired
gulducat Jan 8, 2024
aab3bdc
GroupCountSum in new /statuses
gulducat Jan 10, 2024
8514c10
/jobs/statuses2 endpoint for the whole /ui/jobs index table
gulducat Jan 10, 2024
76695df
fix a really silly bug for blocking queries
gulducat Jan 11, 2024
f8a3b6d
add Datacenters
gulducat Jan 11, 2024
c8e21c0
flat list of jobs
gulducat Jan 11, 2024
e5b0326
make /statuses the same shape as /statuses2
gulducat Jan 12, 2024
70728de
/statuses only unblock on changes to the jobs being watched
gulducat Jan 12, 2024
3a8e450
add JobVersion to allocs
gulducat Jan 12, 2024
15da5bb
/statuses2 use new index logic too
gulducat Jan 12, 2024
c51ce87
unblock if job goes away (gc)
gulducat Jan 16, 2024
d85b8aa
one /jobs/statuses3 to rule them all
gulducat Jan 16, 2024
05c1448
use filters feature of paginator
gulducat Jan 16, 2024
763c139
exclude child jobs, add ChildStatuses
gulducat Jan 19, 2024
3137c1b
probably unnecessary namespace optimization
gulducat Jan 23, 2024
fa8edb7
server benchmarking
gulducat Jan 23, 2024
bb3edd1
smart alloc
gulducat Jan 23, 2024
f077501
enable reverse sorting jobs - REMEMBER ENT!
gulducat Jan 23, 2024
5d2b5b8
enable reverse sort in statuses3
gulducat Jan 23, 2024
c87aa90
fix a panic from DeploymentStatus being nil
gulducat Jan 24, 2024
948216c
clean up; statuses3 -> statuses
gulducat Jan 24, 2024
a9bbe19
fine, ok, copywrite header
gulducat Jan 24, 2024
06e7655
add NodeID to allocs
gulducat Feb 1, 2024
2c2ba59
misc tidying and rearranging
gulducat Feb 13, 2024
449cdf0
require read-job acl instead of list
gulducat Feb 14, 2024
7e76e30
rpc tests
gulducat Mar 13, 2024
dd19c2b
misc...
gulducat Mar 13, 2024
27303fb
copyright test file
gulducat Mar 13, 2024
6218d2a
fix missing SortOption
gulducat Mar 13, 2024
af30c11
more SortDefault
gulducat Mar 13, 2024
a8ef5ca
revert "add JobSummary.Children.Desired"
gulducat Mar 13, 2024
d6f6987
more SortDefault
gulducat Mar 13, 2024
e6e4b6b
sort jobs by ModifyIndex
gulducat Mar 25, 2024
c3e083c
add submit/modify time
gulducat Mar 25, 2024
03fcc80
internal errors are not bad requests
gulducat Mar 25, 2024
747e4fd
Hook and latch on the initial index
philrenaud Jan 18, 2024
125fadb
Serialization and restart of controller and table
philrenaud Jan 19, 2024
5d385be
de-log
philrenaud Jan 19, 2024
12babe4
allocBlocks reimplemented at job model level
philrenaud Jan 22, 2024
2da4d9f
totalAllocs doesnt mean on jobmodel what it did in steady.js
philrenaud Jan 22, 2024
5b86465
Hamburgers to sausages
philrenaud Jan 24, 2024
ab2766b
Hacky way to bring new jobs back around and parent job handling in li…
philrenaud Jan 24, 2024
013d58c
Getting closer to hook/latch
philrenaud Jan 26, 2024
dfeb13e
Latch from update on hook from initialize, but fickle
philrenaud Jan 27, 2024
89f982b
Note on multiple-watch problem
philrenaud Jan 29, 2024
cd56c3f
Sensible monday morning comment removal
philrenaud Jan 29, 2024
b97bcf1
use of abortController to handle transition and reset events
philrenaud Jan 29, 2024
c7a1288
Next token will now update when there's an on-page shift
philrenaud Jan 30, 2024
e07c032
Very rough anti-jostle technique
philrenaud Jan 30, 2024
0d6f033
Demoable, now to move things out of route and into controller
philrenaud Jan 31, 2024
53138fd
Into the controller, generally
philrenaud Jan 31, 2024
c77fb83
Smarter cancellations
philrenaud Feb 1, 2024
ad254f4
Reset abortController on index models run, and system/sysbatch jobs n…
philrenaud Feb 1, 2024
71da0c8
Prev Page reverse querying
philrenaud Feb 2, 2024
81067b8
n+1th jobs existing will trigger nextToken/pagination display
philrenaud Feb 12, 2024
8371a46
Start of a GET/POST statuses return
philrenaud Mar 4, 2024
b22a01a
Namespace fix
philrenaud Mar 4, 2024
9376916
Unblock tests
philrenaud Mar 4, 2024
9b2cf60
Realizing to my small horror that this skipURLModification flag may b…
philrenaud Mar 5, 2024
095a7c8
Lintfix
philrenaud Mar 6, 2024
45cce60
Default liveupdates localStorage setting to true
philrenaud Mar 6, 2024
ed40db0
Pagination and index rethink
philrenaud Mar 12, 2024
616066c
Big uncoupling of watchable and url-append stuff
philrenaud Mar 18, 2024
9d69d77
Testfixes for region, search, and keyboard
philrenaud Mar 20, 2024
3d9f8d0
Job row class for test purposes
philrenaud Mar 20, 2024
db2dac4
Allocations in test now contain events
philrenaud Mar 20, 2024
b9d58fc
Starting on the jobs list tests in earnest
philrenaud Mar 21, 2024
85083de
Forbidden state de-bubbling cleanup
philrenaud Mar 21, 2024
e011971
Job list page size fixes
philrenaud Mar 21, 2024
85b5e22
Facet/Search/Filter jobs list tests skipped
philrenaud Mar 21, 2024
8069603
Maybe it's the automatic mirage logging
philrenaud Mar 22, 2024
2044170
Unbreak task unit test
philrenaud Mar 22, 2024
103e5ae
Pre-sort sort
philrenaud Mar 22, 2024
0787d9c
styling for jobs list pagination and general PR cleanup
philrenaud Mar 26, 2024
005be79
Support insecure flag on artifact (#20126)
amirabbas8 Mar 14, 2024
26d327f
template: improve internal documentation around shutdown (#20134)
tgross Mar 14, 2024
5e01727
func: add new picker dependency (#20029)
Juanadelacuesta Mar 15, 2024
c1a5622
cli: add options to help string for `acl policy info` (#20138)
tgross Mar 15, 2024
0738617
docs: improve wording around autoconfiguration via Consul (#20139)
tgross Mar 15, 2024
f7e6a5c
acl: remove unused nil ACL object handling (#20150)
tgross Mar 18, 2024
aafd922
autopilot: add Enterprise health information to API endpoint (#20153)
tgross Mar 18, 2024
9868632
autopilot: add `operator autopilot health` command (#20156)
tgross Mar 18, 2024
5af063a
Fix LeadershipTransfer tests (#20154)
angrycub Mar 18, 2024
a37c189
docs: make recommendation for collection interval vs scrape interval …
tgross Mar 19, 2024
3175f5b
[refactor] Move task directory destroy logic from alloc_dir.go to tas…
angrycub Mar 19, 2024
f45737d
Add docs for disconnected block (#20147)
Juanadelacuesta Mar 20, 2024
c882006
config: fix `client.template` config merging with defaults (#20165)
tgross Mar 20, 2024
de2ab95
docs: fix `invoke_scheduler` metrics (#20172)
lgfa29 Mar 21, 2024
716d216
Upgrade go-msgpack to v2 (#20173)
schmichael Mar 21, 2024
d44fdf3
drivers/testutil: set full filepath for envs when using unveil fs iso…
shoenig Mar 22, 2024
11ff282
cni: fix regression in falling back to DNS owned by `dockerd` (#20189)
tgross Mar 22, 2024
89f2776
deps: update generate.sh script to msgpack v2 (#20186)
pkazmierczak Mar 22, 2024
aae7dcd
jobspec: update `gateway.ingress.service` Consul API fields (#20176)
tgross Mar 22, 2024
48c679f
Small docs updates: bai rkt, cya openapi, lol ephemeral_disk "example…
schmichael Mar 22, 2024
a009d59
docs: make it clear that federation features require ACLs (#20196)
tgross Mar 22, 2024
3cdcf41
Add nomad-port-forward to community tools (#20190)
Mongey Mar 22, 2024
4b340e8
E2E: change timing of `vaultsecrets` test to guarantee lease window (…
tgross Mar 22, 2024
a824e22
jobspec: add support for destination partition to `upstream` block (#…
tgross Mar 22, 2024
1fc67e7
operator debug: fix pprof interval handling (#20206)
tgross Mar 25, 2024
8984e6f
agent: allow configuration of in-memory telemetry sink. (#20166)
jrasell Mar 25, 2024
a5bb76e
Namespace added to example test in exec window (#20218)
philrenaud Mar 25, 2024
3790b32
[gh-19729] Fix logic for updating terminal allocs on clients with max…
Juanadelacuesta Mar 26, 2024
598c569
cli: remove redundant `allocs` profile from `operator debug` (#20219)
tgross Mar 26, 2024
575772d
exec2: more tweaks to driver harness (#20221)
shoenig Mar 26, 2024
0f0d9f5
namespace/node pool: forward RPCs cross-region if ACLs aren't enabled…
tgross Mar 26, 2024
ea6eaf6
subproc: lazy lookup nomad binary in self call (#20231)
shoenig Mar 26, 2024
0068fe5
[f-gh-208] Force recreation and redeployment of task if volume label …
Juanadelacuesta Mar 27, 2024
ef9cbee
deps: update consul-template to 0.37.4 to fix resource leak (#20234)
tgross Mar 27, 2024
11eb39c
docs: update Consul compatibility matrix (#20242)
tgross Mar 27, 2024
61c2ff8
networking: Inject implicit constraints on CNI plugins when using bri…
shoenig Mar 27, 2024
3cbee23
structs: fix test for empty DNS configuration (#20233)
tgross Mar 29, 2024
99e17c5
E2E: use a self-hosted Consul for easier WI testing (#20256)
tgross Apr 2, 2024
e06abe5
E2E: make `vault.create_from_role` unique per cluster (#20267)
tgross Apr 3, 2024
84e253a
api: add missing `AllocDirStats` field in Go API (#20261)
tgross Apr 3, 2024
f974c0f
docs: clarify data dir default parameters and default creation. (#20268)
jrasell Apr 4, 2024
15cd1e9
E2E: refactor Connect tests to use stdlib testing (#20278)
tgross Apr 4, 2024
b04491a
doc nomad-autoscaler: add options for pass-through strategy (#20284)
brmzkw Apr 4, 2024
5a515ac
docs: recommendation for maximum number of template dependencies (#20…
tgross Apr 4, 2024
8873698
cpuset fixer: use correct cgroup path for updates (#20276)
ygersie Apr 4, 2024
45b3637
E2E: skip Vault 1.16.1 for JWT compatibility test (#20301)
tgross Apr 4, 2024
97e3655
E2E: ensure periodic test can't fail due to cron conflicts (#20300)
tgross Apr 5, 2024
e40e015
docker: use correct effective cpuset filename on legacy cgroups v1 sy…
shoenig Apr 5, 2024
0d75af2
Enable numeric pagination tokens (#20299)
gulducat Apr 5, 2024
6f171e0
docs: add Digital Ocean Spaces artifact jobspec example. (#20304)
jrasell Apr 8, 2024
c407e62
[ui] Show re-bound keyboard nav hints instead of their default values…
philrenaud Apr 8, 2024
91e572b
cli: remove extraneous trailing newline from `nomad fmt` (#20318)
tgross Apr 8, 2024
3405dd5
client: fix IPv6 parsing for `client.servers` block (#20324)
tgross Apr 8, 2024
f3049a8
docs: ensure namespace ACL policy capabilities are all listed. (#20306)
jrasell Apr 9, 2024
2a7006b
drain: use authenticated ID as source of drained-by metadata (#20317)
tgross Apr 9, 2024
febbae0
docs: fix incorrect formatting within ACL policy spec. (#20339)
jrasell Apr 9, 2024
5004f44
transparent proxy: add jobspec support (#20144)
tgross Mar 21, 2024
fd87b09
tproxy: networking hook changes (#20183)
tgross Mar 27, 2024
7ead215
docs: update service mesh integration docs for transparent proxy (#20…
tgross Apr 3, 2024
5512b3a
tproxy: `transparent_proxy` reference docs (#20241)
tgross Apr 3, 2024
1eac062
tproxy: job submission hooks (#20244)
tgross Apr 4, 2024
987d844
tproxy: E2E tests (#20296)
tgross Apr 5, 2024
40dc236
tproxy: documentation improvements
tgross Apr 10, 2024
82925e1
tproxy: refactor `getPortMapping`
tgross Apr 10, 2024
0d925b3
docs: remove extra indents in tproxy HCL examples
tgross Apr 10, 2024
e0d6ede
fix exhausted node metrics reporting in preemption (#20346)
gabivlj Apr 11, 2024
9270425
deployment watcher: fix goroutine leak when job is purged (#20348)
tgross Apr 11, 2024
2866bc0
build(deps): bump tar from 6.2.0 to 6.2.1 in /ui (#20353)
dependabot[bot] Apr 11, 2024
2282f0c
WI: ensure Consul hook and WID manager interpolate services (#20344)
tgross Apr 11, 2024
74e2871
build(deps): bump express from 4.18.2 to 4.19.2 in /ui (#20239)
dependabot[bot] Apr 11, 2024
110d091
chore(deps): bump follow-redirects from 1.15.5 to 1.15.6 in /ui (#20145)
dependabot[bot] Apr 11, 2024
6d3aeaf
chore(deps): bump ip from 2.0.0 to 2.0.1 in /ui (#20021)
dependabot[bot] Apr 11, 2024
e9ee78f
func: Allow custom paths to be added the the getter landlock (#20349)
astudentofblake Apr 11, 2024
78d08f3
docs: clarify "best effort" for ephemeral disk migration (#20357)
tgross Apr 11, 2024
223ba52
deps: purge use of old x/exp packages (#20373)
shoenig Apr 12, 2024
cf996d6
E2E: clean up go mod cache after building `consul-cni` (#20378)
tgross Apr 12, 2024
91f094d
add LICENSE to release artifacts (#20345)
gulducat Apr 12, 2024
5c52834
CNI: fix bugs in parsing strings to port number integers (#20379)
tgross Apr 12, 2024
0f8c47b
docs: provide guidance on using Consul DNS (#20369)
tgross Apr 12, 2024
a253f50
the hasBeenRestarted allocation property checks against its task even…
philrenaud Apr 12, 2024
17e4b01
docs: fix a broken link on the Consul index page (#20387)
tgross Apr 12, 2024
bc98aaa
eval_broker: track enqueue and dequeue times (#20329)
pkazmierczak Apr 15, 2024
dfa3db5
deps: update `go-getter` (#20391)
tgross Apr 15, 2024
e75185b
systemd: comment on OOMScoreAdjust in service unit (#20392)
gulducat Apr 15, 2024
f4c0988
comment on Job.ModifyIndex vs Job.JobModifyIndex (#20393)
gulducat Apr 15, 2024
48574c4
mock_driver: fix fingreprint key (#20351)
lgfa29 Apr 16, 2024
d15406e
terraform: updates AWS example packer and terraform code (#19512)
nickwales Apr 16, 2024
1d19d03
docs: add missing copyright headers in Terraform examples (#20412)
tgross Apr 16, 2024
f2089e5
[ui] Fix a bug where promotion would be asked with no new canaries (#…
philrenaud Apr 16, 2024
752cedc
docs: update docs link in quick start (#20409)
im2nguyen Apr 16, 2024
05fdc6b
state: enable more reverse sorting (#20410)
gulducat Apr 16, 2024
a374fda
sort jobs by ModifyIndex
gulducat Mar 25, 2024
7c481a6
sort by ModifyIndex *only*, and default reverse
gulducat Apr 5, 2024
f66c2ab
minimally fix tests (uncomplicated)
gulducat Apr 9, 2024
03d0330
test: extra uint64 pagination assurance
gulducat Apr 9, 2024
0993c20
add LatestDeployment
gulducat Apr 9, 2024
cbb2ee1
enable reverse sorting jobs - REMEMBER ENT!
gulducat Jan 23, 2024
98f0d78
sort jobs by ModifyIndex
gulducat Mar 25, 2024
36233b3
moving from Job.ActiveDeploymentID to Job.LatestDeployment.ID
philrenaud Apr 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .changelog/15473.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
networking: Inject constraints on CNI plugins when using bridge networking
```
3 changes: 3 additions & 0 deletions .changelog/16753.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
consul/connect: Added support for TLS configuration, headers configuration, and request limit configuration to ingress service block
```
3 changes: 3 additions & 0 deletions .changelog/20029.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
server: Add new options for reconcilation in case of disconnected nodes
```
3 changes: 3 additions & 0 deletions .changelog/20126.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
artifact: Added support for downloading artifacts without validating the TLS certificate
```
3 changes: 3 additions & 0 deletions .changelog/20153.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
autopilot: add Enterprise health information to autopilot API
```
3 changes: 3 additions & 0 deletions .changelog/20156.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
autopilot: Added `operator autopilot health` command to review Autopilot health data
```
3 changes: 3 additions & 0 deletions .changelog/20165.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
template: Fixed a bug where a partial `client.template` block would cause defaults for unspecified fields to be ignored
```
3 changes: 3 additions & 0 deletions .changelog/20166.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
agent: allow configuration of in-memory telemetry sink
```
3 changes: 3 additions & 0 deletions .changelog/20167.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
consul/connect: Added support for destination partition in `upstream` block
```
3 changes: 3 additions & 0 deletions .changelog/20173.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
deps: Update msgpack to v2
```
3 changes: 3 additions & 0 deletions .changelog/20189.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cni: Fixed a regression where default DNS set by `dockerd` or other task drivers was not respected
```
3 changes: 3 additions & 0 deletions .changelog/20206.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cli: Fixed a bug where `operator debug` did not respect the `-pprof-interval` flag and would take only one profile
```
3 changes: 3 additions & 0 deletions .changelog/20218.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: Show the namespace in the web UI exec command hint
```
3 changes: 3 additions & 0 deletions .changelog/20219.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
cli: Collect only one heap profile per `operator debug` interval
```
3 changes: 3 additions & 0 deletions .changelog/20220.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
namespace/node pool: Fixed a bug where the `-region` flag would not be respected for namespace and node pool updates if ACLs were disabled
```
3 changes: 3 additions & 0 deletions .changelog/20234.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
deps: Updated consul-template dependency to 0.37.4 to fix a resource leak
```
3 changes: 3 additions & 0 deletions .changelog/20235.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
ui: When you re-bind keyboard shortcuts they now correctly show up in shift-held hints
```
3 changes: 3 additions & 0 deletions .changelog/20261.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
api: Fixed a bug where `AllocDirStats` field was missing from Read Stats client API
```
3 changes: 3 additions & 0 deletions .changelog/20276.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
docker: Fixed a bug where cpuset would not be updated on cgroup v2 systems using cgroupfs
```
3 changes: 3 additions & 0 deletions .changelog/20294.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
docker: Fixed a bug where cpuset cgroup would not be updated on cgroup v1 systems
```
3 changes: 3 additions & 0 deletions .changelog/20315.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
func: Allow custom paths to be added the the getter landlock
```
7 changes: 7 additions & 0 deletions .changelog/20317.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:bug
drain: Fixed a bug where Workload Identity tokens could not be used to drain a node
```

```release-note:bug
state: Fixed a bug where restarting a server could fail if the Raft logs include a drain update that used a now-expired token
```
3 changes: 3 additions & 0 deletions .changelog/20324.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
config: Fixed a bug where IPv6 addresses were not accepted without ports for `client.servers` blocks
```
3 changes: 3 additions & 0 deletions .changelog/20329.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
metrics: Added tracking of enqueue and dequeue times of evaluations to the broker
```
3 changes: 3 additions & 0 deletions .changelog/20344.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
consul: Fixed a bug where services with interpolation would not get correctly signed Workload Identities
```
3 changes: 3 additions & 0 deletions .changelog/20346.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
scheduler: Record exhausted node metrics for devices when preemption fails to find an allocation to evict
```
3 changes: 3 additions & 0 deletions .changelog/20348.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
deployments: Fixed a goroutine leak when jobs are purged
```
3 changes: 3 additions & 0 deletions .changelog/20383.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: Fix an issue where the job status box would error if an allocation had no task events
```
3 changes: 3 additions & 0 deletions .changelog/20391.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:security
artifact: Updated `go-getter` dependency to v1.7.4 to address CVE-2024-3817
```
3 changes: 3 additions & 0 deletions .changelog/20408.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: Fix a bug where the UI would prompt a user to promote a deployment with unplaced canaries
```
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,13 @@ jobs:
name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip

- name: Copy license file
env:
LICENSE_DIR: ".release/linux/package/usr/share/doc/${{ env.PKG_NAME }}"
run: |
mkdir -p "$LICENSE_DIR"
cp LICENSE "$LICENSE_DIR/LICENSE.txt"

- name: Package
uses: hashicorp/actions-packaging-linux@v1
with:
Expand Down
6 changes: 6 additions & 0 deletions .release/linux/package/usr/lib/systemd/system/nomad.service
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ Restart=on-failure
RestartSec=2

TasksMax=infinity

# Nomad Server agents should never be force killed,
# so here we disable OOM (out of memory) killing for this unit.
# However, you may wish to change this for Client agents, since
# the workloads that Nomad places may be more important
# than the Nomad agent itself.
OOMScoreAdjust=-1000

[Install]
Expand Down
1 change: 1 addition & 0 deletions .semgrep/imports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rules:
- pattern: '"github.com/hashicorp/go-set"'
- pattern: '"golang.org/x/exp/slices"'
- pattern: '"golang.org/x/exp/maps"'
- pattern: '"golang.org/x/exp/constraints"'
message: "Import of this package has been disallowed"
languages:
- "generic"
Expand Down
19 changes: 16 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,22 @@ ARG PRODUCT_REVISION
# TARGETARCH and TARGETOS are set automatically when --platform is provided.
ARG TARGETOS TARGETARCH

LABEL maintainer="Nomad Team <nomad@hashicorp.com>"
LABEL version=${PRODUCT_VERSION}
LABEL revision=${PRODUCT_REVISION}
LABEL maintainer="Nomad Team <nomad@hashicorp.com>" \
version=${PRODUCT_VERSION} \
revision=${PRODUCT_REVISION} \
org.opencontainers.image.title="nomad" \
org.opencontainers.image.description="Nomad is a lightweight and flexible orchestrator for heterogenous workloads" \
org.opencontainers.image.authors="Nomad Team <nomad@hashicorp.com>" \
org.opencontainers.image.url="https://www.nomadproject.io/" \
org.opencontainers.image.documentation="https://www.nomadproject.io/docs" \
org.opencontainers.image.source="https://github.com/hashicorp/nomad" \
org.opencontainers.image.version=${PRODUCT_VERSION} \
org.opencontainers.image.revision=${PRODUCT_REVISION} \
org.opencontainers.image.vendor="HashiCorp" \
org.opencontainers.image.licenses="BUSL-1.1"

RUN mkdir -p /usr/share/doc/nomad
COPY LICENSE /usr/share/doc/nomad/LICENSE.txt

COPY dist/$TARGETOS/$TARGETARCH/nomad /bin/
COPY ./scripts/docker-entrypoint.sh /
Expand Down
7 changes: 5 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ pkg/windows_%/nomad: GO_TAGS += timetzdata
# Define package targets for each of the build targets we actually have on this system
define makePackageTarget

pkg/$(1).zip: pkg/$(1)/nomad
pkg/$(1)/LICENSE.txt:
@cp LICENSE pkg/$(1)/LICENSE.txt

pkg/$(1).zip: pkg/$(1)/nomad pkg/$(1)/LICENSE.txt
@echo "==> Packaging for $(1)..."
@zip -j pkg/$(1).zip pkg/$(1)/*

Expand All @@ -135,7 +138,7 @@ deps: ## Install build and development dependencies
go install gotest.tools/gotestsum@v1.10.0
go install github.com/hashicorp/hcl/v2/cmd/hclfmt@d0c4fa8b0bbc2e4eeccd1ed2a32c2089ed8c5cf1
go install github.com/golang/protobuf/protoc-gen-go@v1.3.4
go install github.com/hashicorp/go-msgpack/codec/codecgen@v1.1.5+base32
go install github.com/hashicorp/go-msgpack/v2/codec/codecgen@v2.1.2
go install github.com/bufbuild/buf/cmd/buf@v0.36.0
go install github.com/hashicorp/go-changelog/cmd/changelog-build@latest
go install golang.org/x/tools/cmd/stringer@v0.18.0
Expand Down
Loading
Loading