Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement managing sentinel policies. #27

Merged
merged 5 commits into from
Mar 23, 2018
Merged

Implement managing sentinel policies. #27

merged 5 commits into from
Mar 23, 2018

Conversation

paddycarver
Copy link
Contributor

Add a nomad_sentinel_policy resource that manages a Sentinel policy
for the Nomad cluster.

Note this PR also runs govendor add +external, so, uh.... that's why
it's massive.

@paddycarver paddycarver requested a review from a team February 20, 2018 09:44
paddycarver added a commit that referenced this pull request Feb 20, 2018
Add a `policy_override` field to `nomad_job` to override any
soft-mandatory Sentinel policies that may fail during the job
registration. Depends on #27.
Add a nomad_sentinel_policy resource that manages a Sentinel policy
for the Nomad cluster.
I don't know why half of this is necessary, but govendor says it is.
I'll do an audit as a separate PR to fix our vendoring situation,
because this is nuts.
Copy link
Contributor

@paultyng paultyng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤣 77k additions, i'll trust you on the vendoring, code looks good to me.

@paddycarver paddycarver merged commit 678e2ef into master Mar 23, 2018
paddycarver added a commit that referenced this pull request Mar 23, 2018
Add a `policy_override` field to `nomad_job` to override any
soft-mandatory Sentinel policies that may fail during the job
registration. Depends on #27.
@amanjeev
Copy link

Does this feature also include running sentinel policy tests on terraform plan?

@paddycarver
Copy link
Contributor Author

No, this feature is solely for registering the policies within Nomad. Unfortunately, because Sentinel is built into Nomad Enterprise, and not into Terraform, I don't see a good way to make that happen--unless Nomad Enterprise were to add a "would this job pass Sentinel if I submitted it?" endpoint which we could call as part of plan.

@cgbaker cgbaker deleted the paddy_sentinel branch March 1, 2019 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants