templates

package
v0.0.0-...-2798f75 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(opt *DeleteOptions) (error, string, string)

func DryRunInstall

func DryRunInstall(opt *InstallOptions) (error, string, string, string)

func ExecuteTemplate

func ExecuteTemplate(tplStr string, data interface{}) (string, error)

func GenerateSingleManifest

func GenerateSingleManifest(parsedTemplates map[string]string) string

func GetKubeObjectsFromTemplate

func GetKubeObjectsFromTemplate(values map[string]interface{}) (map[string]runtime.Object, map[string]string, error)

func Install

func Install(opt *InstallOptions) (error, string, string, string)

func KubeObjectsFromTemplates

func KubeObjectsFromTemplates(templatesMap map[string]string, data interface{}) (map[string]runtime.Object, map[string]string, error)

KubeObjectsFromTemplates return map of runtime.Objects from templateMap see https://github.com/kubernetes/client-go/issues/193 for examples

func ParseTemplates

func ParseTemplates(templatesMap map[string]string, data interface{}) (map[string]string, error)

ParseTemplates - parses and exexute templates and return map of strings with obj data

Types

type DeleteOptions

type DeleteOptions struct {
	Templates        map[string]string
	TemplateValues   map[string]interface{}
	KubeClientSet    *kubernetes.Clientset
	KubeCrdClientSet *apixv1beta1client.ApiextensionsV1beta1Client
	Namespace        string
	KubeBuilder      interface {
		BuildClient() (*kubernetes.Clientset, error)
	}
}

type InstallOptions

type InstallOptions struct {
	Templates        map[string]string
	TemplateValues   map[string]interface{}
	KubeClientSet    *kubernetes.Clientset
	KubeCrdClientSet *apixv1beta1client.ApiextensionsV1beta1Client
	Namespace        string
	KubeManifestPath string
	KubeBuilder      interface {
		BuildClient() (*kubernetes.Clientset, error)
	}
}

Directories

Path Synopsis
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.

Jump to

Keyboard shortcuts

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