templates

package
v0.0.0-...-8f325c2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EFS embed.FS

Functions

func Render

func Render(name string, data *Data) ([]*unstructured.Unstructured, error)

Types

type App

type App struct {
	Name            string
	Commit          string
	GitRef          string
	Registry        string
	ImagePullSecret string
	Resources       *corev1.ResourceRequirements
	NodeSelector    *corev1.NodeSelector
	Tolerations     []*corev1.Toleration
	Affinity        *corev1.Affinity
	LogLevel        string
	LogFormat       string
}

type Component

type Component struct {
	Name            string
	Commit          string
	GitRef          string
	Image           string
	ImagePullPolicy string
	Resources       *corev1.ResourceRequirements
	NodeSelector    *corev1.NodeSelector
	Tolerations     []*corev1.Toleration
	Affinity        *corev1.Affinity
	LogLevel        string
	LogFormat       string
}

type Data

type Data struct {
	Instance  Instance
	Platform  Platform
	App       App
	Component Component

	ExtraLabels map[string]string
	Owner       []*metav1.OwnerReference

	Values map[string]any
}

func (Data) ComponentFullName

func (d Data) ComponentFullName() string

func (Data) HomePath

func (d Data) HomePath() string

func (Data) LogFormat

func (d Data) LogFormat() string

func (Data) LogLevel

func (d Data) LogLevel() string

func (Data) Name

func (d Data) Name() string

func (Data) Namespace

func (d Data) Namespace() string

func (Data) PlatformFullName

func (d Data) PlatformFullName() string

func (Data) PlatformVaultName

func (d Data) PlatformVaultName() string

type Instance

type Instance struct {
	Name           string
	Namespace      string
	RootCA         string
	LogLevel       string
	LogFormat      string
	BootstrapImage string
	Version        string
}

type Platform

type Platform struct {
	Name      string
	Namespace string
	LogLevel  string
	LogFormat string
}

type ResourceList

type ResourceList struct {
	Items []*unstructured.Unstructured `json:"items,omitempty"`
}

Jump to

Keyboard shortcuts

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