templates

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO: (user) add your template files here
	// ClusterJobTemplate        templateFile = "./cluster-job.yml.tpl"
	VMJobTemplate templateFile = "./vm-job.yml.tpl"
)

Variables

View Source
var ParseBytes = templates.ParseBytes

Functions

func Read

func Read(t templateFile) ([]byte, error)

Types

type TFVarsGcpVM

type TFVarsGcpVM struct {
	AllowIncomingHttpTraffic bool                         `json:"allow_incoming_http_traffic"`
	AllowSsh                 bool                         `json:"allow_ssh"`
	AvailabilityZone         string                       `json:"availability_zone"`
	BootvolumeSize           float64                      `json:"bootvolume_size"`
	BootvolumeType           string                       `json:"bootvolume_type"`
	GcpCredentialsJson       string                       `json:"gcp_credentials_json"`
	GcpProjectID             string                       `json:"gcp_project_id"`
	GcpRegion                string                       `json:"gcp_region"`
	Labels                   map[string]string            `json:"labels"`
	MachineState             clustersv1.MachineState      `json:"machine_state"`
	MachineType              string                       `json:"machine_type"`
	NamePrefix               string                       `json:"name_prefix"`
	Network                  string                       `json:"network"`
	ProvisionMode            string                       `json:"provision_mode"`
	ServiceAccount           clustersv1.GCPServiceAccount `json:"service_account"`
	StartupScript            string                       `json:"startup_script"`
	VmName                   string                       `json:"vm_name"`
}

type VMJobVars

type VMJobVars struct {
	JobMetadata metav1.ObjectMeta

	NodeSelector map[string]string
	Tolerations  []corev1.Toleration

	CloudProvider string

	JobImage           string
	JobImagePullPolicy string

	TFWorkspaceName      string
	TFWorkspaceNamespace string

	ValuesJSON string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL