This repository has been archived by the owner on Mar 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows configuration of CPU arch via argument and job constraint
additionally allows configuration of other job constraints Squashed commit of the following: commit 7d9db5f Author: cryptobias <[email protected]> Date: Thu Jun 13 10:50:41 2019 +0200 Refactor CreateDataCenters to use Fields so it is consistent with CreateConstraints There is a small change of behaviour: This does not panic if there is no == or no value following it, but ignores the entry instead. commit c6941af Author: cryptobias <[email protected]> Date: Thu Jun 13 10:44:32 2019 +0200 Use limit instead of constraint where applicable commit 714f269 Author: cryptobias <[email protected]> Date: Thu Jun 13 10:31:59 2019 +0200 Document Nomad job constraints in README.md commit ddbab0c Author: cryptobias <[email protected]> Date: Sun Jun 9 16:32:11 2019 +0200 Allows to specify custom job constraints via the request The constraints have to be provided in the format: "<attribute> <operator> <value>" e.g. "${attr.cpu.arch} = arm" For compatibility the interpolation notation (`${}`) can be left out and `==` instead of `=` is supported. With this implementation the attribute and the operator can not contain spaces. commit e440ccf Author: cryptobias <[email protected]> Date: Thu Jun 6 10:43:45 2019 +0200 Allow to change CPU arch constraint via commandline argument Signed-off-by: cryptobias <[email protected]>
- Loading branch information
1 parent
e516e7a
commit 546fc20
Showing
5 changed files
with
223 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
package types | ||
|
||
type ProviderConfig struct { | ||
Vault VaultConfig | ||
Datacenter string | ||
ConsulAddress string | ||
ConsulDNSEnabled bool | ||
Vault VaultConfig | ||
Datacenter string | ||
ConsulAddress string | ||
ConsulDNSEnabled bool | ||
CPUArchConstraint string | ||
} |