Files
nomad/command/asset/asset.go
Tim Gross fd05e461dd dynamic host volumes: add -type flag to volume init (#24667)
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
2024-12-19 09:25:54 -05:00

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