From c0c79997d0aba987f7a2229dacb1f0ec969c15f6 Mon Sep 17 00:00:00 2001 From: lenhattan86 Date: Tue, 5 Oct 2021 20:43:39 -0700 Subject: [PATCH] add tier and production --- go.mod | 4 ++-- internal/job.go | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 55efbf5..4fbb0ef 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/aurora-scheduler/australis go 1.15 require ( - github.com/aurora-scheduler/gorealis/v2 v2.22.2 + github.com/aurora-scheduler/gorealis/v2 v2.25.0 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.6.0 github.com/spf13/cobra v1.0.0 @@ -13,4 +13,4 @@ require ( gopkg.in/yaml.v2 v2.2.8 ) -replace github.com/apache/thrift v0.13.0 => github.com/ridv/thrift v0.13.2 +replace github.com/apache/thrift v0.13.0 => github.com/ridv/thrift v0.13.2 \ No newline at end of file diff --git a/internal/job.go b/internal/job.go index 1665080..181ea17 100644 --- a/internal/job.go +++ b/internal/job.go @@ -71,7 +71,9 @@ type Job struct { URIs []URI `yaml:"uris"` Metadata map[string]string `yaml:"labels"` Service bool `yaml:"service"` + Tier string `yaml:"tier,omitempty" default:"preemptible"` Priority int32 `yaml:"priority"` + Production bool `yaml:"production"` Thermos []ThermosProcess `yaml:",flow,omitempty"` Container *Container `yaml:"container,omitempty"` CronSchedule *string `yaml:"cronSchedule,omitempty"` @@ -89,7 +91,9 @@ func (j *Job) ToRealis() (*realis.AuroraJob, error) { RAM(j.RAM). Disk(j.Disk). IsService(j.Service). + Tier(j.Tier). Priority(j.Priority). + Production(j.Production). InstanceCount(j.Instances). MaxFailure(j.MaxFailures)