mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
sentinel: remove default scope for Sentinel apply command (#24601)
When we add a Sentinel scope for dynamic host volumes, having a default `-scope` value for `sentinel apply` risks accidentally adding policies for volumes to the job scope. This would immediately prevent any job from being submitted. Forcing the administrator to pass a `-scope` will prevent accidental misuse. Ref: https://github.com/hashicorp/nomad-enterprise/pull/2087 Ref: https://github.com/hashicorp/nomad/pull/24479
This commit is contained in:
@@ -82,3 +82,9 @@ type SentinelPolicyListStub struct {
|
||||
CreateIndex uint64
|
||||
ModifyIndex uint64
|
||||
}
|
||||
|
||||
// Possible Sentinel scopes
|
||||
const (
|
||||
SentinelScopeSubmitJob = "submit-job"
|
||||
SentinelScopeSubmitHostVolume = "submit-host-volume"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user