Skip to content

Commit

Permalink
Merge branch 'main' into f-gh-13120-sso-umbrella-merged-main
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasell committed Aug 25, 2022
2 parents b2483ed + 546bdb8 commit 3f3ee56
Show file tree
Hide file tree
Showing 567 changed files with 16,646 additions and 7,285 deletions.
3 changes: 3 additions & 0 deletions .changelog/13539.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
build: Update go toolchain to 1.18.5
```
3 changes: 3 additions & 0 deletions .changelog/13670.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: Fixed a bug where task memory was reported as zero on systems using cgroups v2
```
3 changes: 3 additions & 0 deletions .changelog/13755.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
template: Templates support new uid/gid parameter pair
```
3 changes: 3 additions & 0 deletions .changelog/13907.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
template: Expose consul-template configuration options at the client level for `nomad_retry`.
```
3 changes: 3 additions & 0 deletions .changelog/13919.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
csi: Add `stage_publish_base_dir` field to `csi_plugin` block to support plugins that require a specific staging/publishing directory for mounts
```
3 changes: 3 additions & 0 deletions .changelog/13971.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
qemu: use shorter socket file names to reduce the chance of hitting the max path length
```
3 changes: 3 additions & 0 deletions .changelog/13972.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
template: add script change_mode that allows scripts to be executed on template change
```
3 changes: 3 additions & 0 deletions .changelog/13991.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: when creating a secure variable, check against your namespaces rather than assuming default
```
3 changes: 3 additions & 0 deletions .changelog/14000.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
qemu: restore the monitor socket path when restoring a QEMU task.
```
3 changes: 3 additions & 0 deletions .changelog/14001.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
deployments: Fixed a bug that prevented auto-approval if canaries were marked as unhealthy during deployment
```
3 changes: 3 additions & 0 deletions .changelog/14025.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
deps: Update go.etcd.io/bbolt to v1.3.6
```
3 changes: 3 additions & 0 deletions .changelog/14065.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cli: Fixed a bug where job validation requeset was not sent to leader
```
3 changes: 3 additions & 0 deletions .changelog/14069.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cli: Fixed a bug where the memory usage reported by Allocation Resource Utilization is zero on systems using cgroups v2
```
3 changes: 3 additions & 0 deletions .changelog/14088.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cli: Fixed a bug where vault token not respected in plan command
```
3 changes: 3 additions & 0 deletions .changelog/14089.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
driver/docker: Added config option to disable container healthcheck
```
3 changes: 3 additions & 0 deletions .changelog/14103.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
deps: Update google.golang.org/grpc to v1.48.0
```
3 changes: 3 additions & 0 deletions .changelog/14112.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
deps: Update fsouza/go-dockerclient to v1.8.2
```
3 changes: 3 additions & 0 deletions .changelog/14115.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: Removes duplicate breadcrumb header when navigating from child job back to parent.
```
7 changes: 7 additions & 0 deletions .changelog/14127.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:improvement
client: add option to restart all tasks of an allocation, regardless of lifecycle type or state.
```

```release-note:improvement
client: only start poststop tasks after poststart tasks are done.
```
3 changes: 3 additions & 0 deletions .changelog/14132.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
build: update to go1.19
```
3 changes: 3 additions & 0 deletions .changelog/14138.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
ui: add general keyboard navigation to the Nomad UI
```
3 changes: 3 additions & 0 deletions .changelog/14140.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
cli: `acl policy info` output format has changed to improve readability with large policy documents
```
3 changes: 3 additions & 0 deletions .changelog/14145.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
api: cleanup whitespace from failed api response body
```
3 changes: 3 additions & 0 deletions .changelog/14171.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
sentinel: add the ability to reference the namespace and Nomad acl token in policies
```
3 changes: 3 additions & 0 deletions .changelog/14199.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:feature
[ui] Services table: Display task-level services in addition to group-level services.
```
3 changes: 3 additions & 0 deletions .changelog/14203.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
template: Fixed a bug where job templates would use `uid` and `gid` 0 after upgrading to Nomad 1.3.3, causing tasks to fail with the error `failed looking up user: managing file ownership is not supported on Windows`.
```
3 changes: 3 additions & 0 deletions .changelog/14212.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
audit (Enterprise): fixed inconsistency in event filter logic
```
3 changes: 3 additions & 0 deletions .changelog/14223.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
ui: Add button to restart all tasks in an allocation.
```
3 changes: 3 additions & 0 deletions .changelog/14224.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: Fixed a bug that caused the allocation details page to display the stats bar chart even if the task was pending.
```
3 changes: 3 additions & 0 deletions .changelog/14248.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
client: Fixed a bug where user lookups would hang or panic
```
3 changes: 3 additions & 0 deletions .changelog/14297.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
client/logmon: fixed a bug where logmon cannot find nomad executable
```
7 changes: 7 additions & 0 deletions .changelog/14298.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:bug
vault: Fixed a bug where changing the Vault configuration `namespace` field was not detected as a change during server configuration reload.
```

```release-note:bug
vault: Fixed a bug where Vault clients were recreated when the server configuration was reloaded, even if there were no changes to the Vault configuration.
```
14 changes: 9 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ jobs:
mkdir -p $GOTESTSUM_PATH
- install-golang:
target_directory: "c:"
- run: go version
- run:
name: Show installed Go version
command: |
export PATH=/c/go/bin:/c/gopath/bin:$PATH
go version
- install-vault:
version: $VAULT_VERSION
- run: vault version
Expand Down Expand Up @@ -457,7 +461,7 @@ executors:
go:
working_directory: /go/src/github.com/hashicorp/nomad
docker:
- image: docker.mirror.hashicorp.services/golang:1.18.3
- image: docker.mirror.hashicorp.services/golang:1.19
resource_class: medium
environment:
<<: *common_envs
Expand All @@ -470,7 +474,7 @@ executors:
resource_class: large
environment: &machine_env
<<: *common_envs
GOLANG_VERSION: 1.18.3
GOLANG_VERSION: 1.19

go-macos:
working_directory: ~/go/src/github.com/hashicorp/nomad
Expand All @@ -479,7 +483,7 @@ executors:
environment:
<<: *common_envs
GOPATH: /Users/distiller/go
GOLANG_VERSION: 1.18.3
GOLANG_VERSION: 1.19

go-windows:
machine:
Expand All @@ -491,7 +495,7 @@ executors:
GOPATH: c:\gopath
GOBIN: c:\gopath\bin
GOTESTSUM_PATH: c:\tmp\test-reports
GOLANG_VERSION: 1.18.3
GOLANG_VERSION: 1.19
GOTESTSUM_VERSION: 1.7.0
VAULT_VERSION: 1.4.1

Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,18 @@ jobs:
echo "Version ${{ github.event.inputs.version }} is a prerelease, skipping update of LAST_RELEASE"
fi
- name: Remove generated files
run: |
# These generated files are only needed when building the final
# binary and should be not be present in the repository afterwards.
find . -name '*.generated.go' | xargs git rm
git status
- name: Commit post-release changes
run: |
# Display stated and unstaged diffs.
git diff --color=always HEAD
# Display staged and unstaged diffs, skipping deleted files to avoid
# cluttering the output with the generated files.
git diff --diff-filter=d --color=always HEAD
git add -A .
if ! git diff-index --quiet HEAD --; then
git commit --message 'Prepare for next release'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
- 'website/**'
env:
VERBOSE: 1
GO_VERSION: 1.18.3
GO_VERSION: 1.19
GOBIN: /usr/local/bin
GOTESTARCH: amd64
CONSUL_VERSION: 1.11.3
Expand Down
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.18.3
1.19.0
19 changes: 15 additions & 4 deletions .release/ci.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ project "nomad" {

release_branches = [
"main",
"release/1.0.x",
"release/1.1.x",
"release/1.2.x",
"release/1.3.x",
"release/**",
]
}
}
Expand Down Expand Up @@ -225,3 +222,17 @@ event "promote-production-packaging" {
on = "always"
}
}

event "post-publish-website" {
depends = ["promote-production-packaging"]

action "post-publish-website" {
organization = "hashicorp"
repository = "crt-workflows-common"
workflow = "post-publish-website"
}

notification {
on = "always"
}
}
11 changes: 11 additions & 0 deletions .semgrep/api_errorf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
rules:
- id: "fmt_errorf_unformatted_use"
patterns:
- pattern: fmt.Errorf("...")
message: "Use of fmt.Errorf without formatting. Please use errors.New"
languages:
- "go"
severity: "WARNING"
paths:
include:
- "./api/*"
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
## 1.3.3 (August 05, 2022)

IMPROVEMENTS:

* build: Update go toolchain to 1.18.5 [[GH-13956](https://github.com/hashicorp/nomad/pull/13956)]
* csi: Add `stage_publish_base_dir` field to `csi_plugin` block to support plugins that require a specific staging/publishing directory for mounts [[GH-13919](https://github.com/hashicorp/nomad/issues/13919)]
* qemu: use shorter socket file names to reduce the chance of hitting the max path length [[GH-13971](https://github.com/hashicorp/nomad/issues/13971)]
* template: Expose consul-template configuration options at the client level for `nomad_retry`. [[GH-13907](https://github.com/hashicorp/nomad/issues/13907)]
* template: Templates support new uid/gid parameter pair [[GH-13755](https://github.com/hashicorp/nomad/issues/13755)]
* ui: Reorder and apply the same style to the Evaluations list page filters to match the Job list page. [[GH-13866](https://github.com/hashicorp/nomad/issues/13866)]

BUG FIXES:

* acl: Fixed a bug where the timestamp for expiring one-time tokens was not deterministic between servers [[GH-13737](https://github.com/hashicorp/nomad/issues/13737)]
* deployments: Fixed a bug that prevented auto-approval if canaries were marked as unhealthy during deployment [[GH-14001](https://github.com/hashicorp/nomad/issues/14001)]
* metrics: Fixed a bug where blocked evals with no class produced no dc:class scope metrics [[GH-13786](https://github.com/hashicorp/nomad/issues/13786)]
* namespaces: Fixed a bug that allowed deleting a namespace that contained a CSI volume [[GH-13880](https://github.com/hashicorp/nomad/issues/13880)]
* qemu: restore the monitor socket path when restoring a QEMU task. [[GH-14000](https://github.com/hashicorp/nomad/issues/14000)]
* servicedisco: Fixed a bug where non-unique services would escape job validation [[GH-13869](https://github.com/hashicorp/nomad/issues/13869)]
* ui: Add missing breadcrumb in the Evaluations page. [[GH-13865](https://github.com/hashicorp/nomad/issues/13865)]
* ui: Fixed a bug where task memory was reported as zero on systems using cgroups v2 [[GH-13670](https://github.com/hashicorp/nomad/issues/13670)]

## 1.3.2 (July 13, 2022)

IMPROVEMENTS:
Expand Down Expand Up @@ -204,6 +226,17 @@ BUG FIXES:
* ui: fix broken link to task-groups in the Recent Allocations table in the Job Detail overview page. [[GH-12765](https://github.com/hashicorp/nomad/issues/12765)]
* ui: fix the unit for the task row memory usage metric [[GH-11980](https://github.com/hashicorp/nomad/issues/11980)]

## 1.2.10 (August 05, 2022)

BUG FIXES:

* acl: Fixed a bug where the timestamp for expiring one-time tokens was not deterministic between servers [[GH-13737](https://github.com/hashicorp/nomad/issues/13737)]
* build: Update go toolchain to 1.18.5 [[GH-13956](https://github.com/hashicorp/nomad/pull/13956)]
* deployments: Fixed a bug that prevented auto-approval if canaries were marked as unhealthy during deployment [[GH-14001](https://github.com/hashicorp/nomad/issues/14001)]
* metrics: Fixed a bug where blocked evals with no class produced no dc:class scope metrics [[GH-13786](https://github.com/hashicorp/nomad/issues/13786)]
* namespaces: Fixed a bug that allowed deleting a namespace that contained a CSI volume [[GH-13880](https://github.com/hashicorp/nomad/issues/13880)]
* qemu: restore the monitor socket path when restoring a QEMU task. [[GH-14000](https://github.com/hashicorp/nomad/issues/14000)]

## 1.2.9 (July 13, 2022)

BUG FIXES:
Expand Down Expand Up @@ -453,6 +486,15 @@ BUG FIXES:
* server: Fixed a panic on arm64 platform when dispatching a job with a payload [[GH-11396](https://github.com/hashicorp/nomad/issues/11396)]
* server: Fixed a panic that may occur when preempting multiple allocations on the same node [[GH-11346](https://github.com/hashicorp/nomad/issues/11346)]

## 1.1.16 (August 05, 2022)

BUG FIXES:

* acl: Fixed a bug where the timestamp for expiring one-time tokens was not deterministic between servers [[GH-13737](https://github.com/hashicorp/nomad/issues/13737)]
* deployments: Fixed a bug that prevented auto-approval if canaries were marked as unhealthy during deployment [[GH-14001](https://github.com/hashicorp/nomad/issues/14001)]
* namespaces: Fixed a bug that allowed deleting a namespace that contained a CSI volume [[GH-13880](https://github.com/hashicorp/nomad/issues/13880)]
* qemu: restore the monitor socket path when restoring a QEMU task. [[GH-14000](https://github.com/hashicorp/nomad/issues/14000)]

## 1.1.15 (July 13, 2022)

BUG FIXES:
Expand Down
Loading

0 comments on commit 3f3ee56

Please sign in to comment.