Skip to content

Commit

Permalink
backport of commit da61d27
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed Nov 16, 2023
1 parent 18e22e6 commit 43b348d
Show file tree
Hide file tree
Showing 3,555 changed files with 30,239 additions and 49,109 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .changelog/11572.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```release-note:breaking-change
raft: The default raft protocol version is now 3 so you must follow the [Upgrading to Raft Protocol 3](https://developer.hashicorp.com/nomad/docs/upgrade#upgrading-to-raft-protocol-3) guide when upgrading an existing cluster to Nomad 1.3.0. Downgrading the raft protocol version is not supported.
raft: The default raft protocol version is now 3 so you must follow the [Upgrading to Raft Protocol 3](https://www.nomadproject.io/docs/upgrade#upgrading-to-raft-protocol-3) guide when upgrading an existing cluster to Nomad 1.3.0. Downgrading the raft protocol version is not supported.
```

```release-note:improvement
Expand Down
3 changes: 0 additions & 3 deletions .changelog/15617.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/15618.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/16872.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/17383.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18035.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18069.txt

This file was deleted.

1 change: 0 additions & 1 deletion .changelog/18070.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18123.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18146.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18262.txt

This file was deleted.

7 changes: 0 additions & 7 deletions .changelog/18371.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18426.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18520.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18553.txt

This file was deleted.

7 changes: 0 additions & 7 deletions .changelog/18562.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18595.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18681.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18691.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18745.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18794.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18836.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18843.txt

This file was deleted.

2 changes: 1 addition & 1 deletion .changelog/18873.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```release-note:bug
scheduler: Ensure duplicate allocation indexes are tracked and fixed when performing job updates
scheduler: Ensure duplicate allocation IDs are tracked and fixed when performing job updates
```
3 changes: 0 additions & 3 deletions .changelog/18882.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18943.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/18961.txt

This file was deleted.

7 changes: 0 additions & 7 deletions .changelog/18996.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/19037.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/19051.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/19104.txt

This file was deleted.

3 changes: 0 additions & 3 deletions .changelog/5311.txt

This file was deleted.

7 changes: 1 addition & 6 deletions .copywrite.hcl
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# SPDX-License-Identifier: MPL-2.0

schema_version = 1

project {
header_ignore = [
"command/asset/*.hcl",
"command/agent/bindata_assetfs.go",
"ui/node_modules",

// Enterprise files do not fall under the open source licensing. OSS-ENT
// merge conflicts might happen here, please be sure to put new OSS
// exceptions above this comment.
]
}
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Hi there,
Thank you for opening an issue. Please note that we try to keep the Nomad issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see: https://developer.hashicorp.com/nomad/community
questions, please see: https://www.nomadproject.io/community
-->

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# SPDX-License-Identifier: MPL-2.0

blank_issues_enabled: false
contact_links:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Hi there,
Thank you for opening an issue. Please note that we try to keep the Nomad issue
tracker reserved for bug reports and feature requests. For general usage
questions, please see: https://developer.hashicorp.com/nomad/community
questions, please see: https://www.nomadproject.io/community
-->

Expand Down
2 changes: 1 addition & 1 deletion .github/actionlint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# SPDX-License-Identifier: MPL-2.0

self-hosted-runner:
# Labels of self-hosted runner in array of string
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/install-vault/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# SPDX-License-Identifier: MPL-2.0

name: install-vault
inputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-js/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# SPDX-License-Identifier: MPL-2.0

name: setup-js
description: install node and yarn, and run yarn install
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/vault-secrets/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# SPDX-License-Identifier: MPL-2.0

name: vault-secrets
description: 'pull secrets from CI Vault into environment vars'
Expand Down
2 changes: 1 addition & 1 deletion .github/secret-scanning.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# SPDX-License-Identifier: MPL-2.0

paths-ignore:
- "website/content/*"
6 changes: 3 additions & 3 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
backport:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
container: hashicorpdev/backport-assistant:0.3.4
container: hashicorpdev/backport-assistant:0.2.3
steps:
- name: Backport changes to stable-website
run: |
backport-assistant backport -merge-method=squash
backport-assistant backport -merge-method=squash -automerge
env:
BACKPORT_LABEL_REGEXP: "backport/(?P<target>website)"
BACKPORT_TARGET_TEMPLATE: "stable-{{.target}}"
Expand All @@ -24,7 +24,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
- name: Backport changes to targeted release branch
run: |
backport-assistant backport -merge-method=squash
backport-assistant backport -merge-method=squash -automerge
env:
BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+\\.[+\\w]+)"
BACKPORT_TARGET_TEMPLATE: "release/{{.target}}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ jobs:
version: ${{ needs.get-product-version.outputs.product-version }}
maintainer: "HashiCorp"
homepage: "https://github.com/hashicorp/nomad"
license: "BUSL-1.1"
license: "MPL-2.0"
binary: "pkg/${{ matrix.goos }}_${{ matrix.goarch }}/${{ env.PKG_NAME }}"
deb_depends: "openssl"
rpm_depends: "openssl"
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/copywrite.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ jobs:
semgrep:
name: Semgrep Scan
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep:1.36.0
env:
SEMGREP_SEND_METRICS: 0
# Skip any PR created by dependabot to avoid permission issues
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- run: semgrep ci --config=.semgrep/
- uses: returntocorp/semgrep-action@245bf11ddb2f3d4e35f116608cf6e27ae0f9aa04 # v1
permissions:
contents: read

2 changes: 1 addition & 1 deletion .github/workflows/test-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ jobs:
- uses: hashicorp/setup-golang@v1
- name: Get Go modules
run: |
make bootstrap
make tidy
make bootstrap
checks:
uses: ./.github/workflows/checks.yaml
needs: [mods]
Expand Down
18 changes: 1 addition & 17 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ on:
- 'website/**'

jobs:
test-e2e-vault:
test-e2e:
runs-on: ${{ endsWith(github.repository, '-enterprise') && fromJSON('["self-hosted", "ondemand", "linux"]') || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
Expand All @@ -51,22 +51,6 @@ jobs:
- name: Vault Compatability
run: make integration-test
- run: make e2e-test

test-e2e-consul:
runs-on: 'ubuntu-22.04' # this job requires sudo, so not currently suitable for self-hosted runners
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Git config token
if: endsWith(github.repository, '-enterprise')
run: git config --global url.'https://${{ secrets.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'
- uses: hashicorp/setup-golang@v1
- name: Consul Compatability
run: |
make deps
sudo make cni
sudo sed -i 's!Defaults!#Defaults!g' /etc/sudoers
sudo -E env "PATH=$PATH" make integration-test-consul
permissions:
contents: read
id-token: write
32 changes: 28 additions & 4 deletions .github/workflows/test-ui.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
name: test-ui
on:
pull_request:
paths:
- 'ui/**'
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- '.changelog/**'
- '.tours/**'
- 'contributing/**'
- 'demo/**'
- 'dev/**'
- 'e2e/**'
- 'integrations/**'
- 'pkg/**'
- 'scripts/**'
- 'terraform/**'
- 'website/**'
push:
branches:
- main
- release/**
- test-ui
paths:
- 'ui/**'
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- '.changelog/**'
- '.tours/**'
- 'contributing/**'
- 'demo/**'
- 'dev/**'
- 'e2e/**'
- 'integrations/**'
- 'pkg/**'
- 'scripts/**'
- 'terraform/**'
- 'website/**'

jobs:
pre-test:
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# SPDX-License-Identifier: MPL-2.0

run:
# Timeout for analysis.
Expand Down
2 changes: 1 addition & 1 deletion .release/ci.hcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# SPDX-License-Identifier: MPL-2.0

schema = "1"

Expand Down
4 changes: 2 additions & 2 deletions .release/linux/package/etc/nomad.d/nomad.hcl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# SPDX-License-Identifier: MPL-2.0

# Full configuration options can be found at https://developer.hashicorp.com/nomad/docs/configuration
# Full configuration options can be found at https://www.nomadproject.io/docs/configuration

data_dir = "/opt/nomad/data"
bind_addr = "0.0.0.0"
Expand Down
Loading

0 comments on commit 43b348d

Please sign in to comment.