Support fixed_key job imports
When importing a job via `shield import`, it is now possible to set that
job as a "fixed key" job, for things like proto-BOSH and SHIELD.
Fixes
@@ -78,6 +78,7 @@ type ImportTenant struct {
When string `yaml:"when"`
Policy string `yaml:"policy"`
Storage string `yaml:"storage"`
+ FixedKey bool `yaml:"fixed_key"`
Paused bool `yaml:"paused"`
} `yaml:"jobs,omitempty"`
} `yaml:"systems,omitempty"`
@@ -452,6 +453,7 @@ func (m *ImportManifest) Deploy(c *shield.Client) error {
StoreUUID: store.UUID,
PolicyUUID: policy.UUID,
Schedule: job.When,
+ FixedKey: job.FixedKey,
})
if err != nil {
return fmt.Errorf("failed to configure job '%s' of data system '%s' for tenant '%s': %s", job.Name, system.Name, tenant.Name, err)
