templates

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ClusterJobTemplate        templateFile = "./cluster-job.yml.tpl"
	S3BucketJobTemplate       templateFile = "./s3-bucket-job.yml.tpl"
	RBACForClusterJobTemplate templateFile = "./rbac-for-cluster-job.yml.tpl"

	AwsVPCJob       templateFile = "./aws-vpc-job.yml.tpl"
	GcpVPCLifecycle templateFile = "./gcp-vpc-lifecycle.yml.tpl"
)

Variables

This section is empty.

Functions

func ParseBytes

func ParseBytes(b []byte, values any) ([]byte, error)

func Read

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

Types

type AWSClusterJobParams added in v1.1.0

type AWSClusterJobParams struct {
	AccessKeyID     string
	AccessKeySecret string
}

type AwsVPCJobVars added in v1.1.0

type AwsVPCJobVars struct {
	JobMetadata  metav1.ObjectMeta
	NodeSelector map[string]string
	Tolerations  []corev1.Toleration
	JobImage     string

	TFWorkspaceName            string
	TFWorkspaceSecretNamespace string

	ValuesJSON string

	// AWS                      AWSClusterJobParams
	VPCOutputSecretName      string
	VPCOutputSecretNamespace string
}

type ClusterJobVars added in v1.1.0

type ClusterJobVars struct {
	JobMetadata  metav1.ObjectMeta
	NodeSelector map[string]string
	Tolerations  []corev1.Toleration
	JobImage     string

	TFWorkspaceName            string
	TFWorkspaceSecretNamespace string

	ClusterSecretName      string
	ClusterSecretNamespace string

	ClusterServiceCIDR string

	ValuesJSON string

	CloudProvider string
	AWS           *AWSClusterJobParams
}

type GcpVPCLifecycleVars added in v1.1.0

type GcpVPCLifecycleVars struct {
	JobMetadata metav1.ObjectMeta

	JobImage           string
	JobImagePullPolicy string

	TFStateSecretNamespace string
	TFStateSecretName      string

	ValuesJSON string

	CloudProvider ct.CloudProvider

	VPCOutputSecretName      string
	VPCOutputSecretNamespace string
}

type GcpVpcTFOutput added in v1.1.0

type GcpVpcTFOutput struct {
	VPCId   string `json:"vpc_id"`
	VPCName string `json:"vpc_name"`
}

Jump to

Keyboard shortcuts

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