add tier and production
This commit is contained in:
parent
c6adde03af
commit
c0c79997d0
2 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue