Skip to content

Commit

Permalink
changelog: add UI component to #13530
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Jul 8, 2022
1 parent 2d654ba commit 45642bd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .changelog/13530.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
```release-note:bug
api: Fix listing evaluations with the wildcard namespace and an ACL token
```

```release-note:bug
ui: Fix a bug that prevented viewing the details of an evaluation in a non-default namespace
```
23 changes: 23 additions & 0 deletions reject_plan.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/nomad/structs/network.go b/nomad/structs/network.go
index 30e769323..3f7f1c8be 100644
--- a/nomad/structs/network.go
+++ b/nomad/structs/network.go
@@ -4,6 +4,8 @@ import (
"fmt"
"math/rand"
"net"
+ "os"
+ "strings"
"sync"

"github.com/hashicorp/nomad/helper"
@@ -174,6 +176,9 @@ func (idx *NetworkIndex) Overcommitted() bool {
// SetNode is used to setup the available network resources. Returns
// true if there is a collision
func (idx *NetworkIndex) SetNode(node *Node) (collide bool, reason string) {
+ if os.Getenv("CRASH") != "" && strings.HasPrefix(node.Name, "crash") {
+ return true, "crash"
+ }

// COMPAT(0.11): Remove in 0.11
// Grab the network resources, handling both new and old

0 comments on commit 45642bd

Please sign in to comment.