mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Adds a `-type` flag to the `volume init` command that generates an example volume specification with only those fields relevant to dynamic host volumes. This changeset also moves the string literals into uses of `go:embed` Ref: https://github.com/hashicorp/nomad/pull/24479
37 lines
668 B
Go
37 lines
668 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package asset
|
|
|
|
import _ "embed"
|
|
|
|
//go:embed example.nomad.hcl
|
|
var JobExample []byte
|
|
|
|
//go:embed example-short.nomad.hcl
|
|
var JobExampleShort []byte
|
|
|
|
//go:embed connect.nomad.hcl
|
|
var JobConnect []byte
|
|
|
|
//go:embed connect-short.nomad.hcl
|
|
var JobConnectShort []byte
|
|
|
|
//go:embed pool.nomad.hcl
|
|
var NodePoolSpec []byte
|
|
|
|
//go:embed pool.nomad.json
|
|
var NodePoolSpecJSON []byte
|
|
|
|
//go:embed volume.csi.hcl
|
|
var CSIVolumeSpecHCL []byte
|
|
|
|
//go:embed volume.csi.json
|
|
var CSIVolumeSpecJSON []byte
|
|
|
|
//go:embed volume.host.hcl
|
|
var HostVolumeSpecHCL []byte
|
|
|
|
//go:embed volume.host.json
|
|
var HostVolumeSpecJSON []byte
|