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

Add Scheduler config resource #157

Merged
merged 8 commits into from Oct 30, 2020

Conversation

daktari
Copy link
Contributor

@daktari daktari commented Oct 23, 2020

resource "nomad_scheduler_config" "cfg" {
algorithm = "binpack"
        preemption {
            system_enabled = true
            batch_enabled = false
            service_enabled = false
        }
}

closes #153

@jrasell
Copy link
Member

jrasell commented Oct 23, 2020

Hi @daktari and thanks for raising this PR. It seems the TestSchedulerConfig_basic you add is currently failing as detailed above and within Travis. Is this something you could look into fixing?

=== RUN   TestSchedulerConfig_basic
    testing.go:684: Step 0 error: config is invalid: "preemption": required field is not set

cgbaker and others added 4 commits October 29, 2020 09:33
The changes within this commit firstly fix the failing tests as
well as simplify the struct and interface conversions. In addition
the schema name entries have been modified to reflect their name
within the Nomad API along with their descriptions.
@lgfa29 lgfa29 merged commit e0ae17b into hashicorp:master Oct 30, 2020
@lgfa29 lgfa29 mentioned this pull request Oct 30, 2020
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.

New Resource - Operator Scheduler Configurations
4 participants