templates_cr

package
v0.0.0-...-d7e1125 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// .spec.useTemplate.useType
	UseTypeMerge = "merge"
)

Variables

This section is empty.

Functions

func ApplyTemplates

func ApplyTemplates(target *api.ClickHouseInstallation, subj TemplateSubject) (appliedTemplates []*api.TemplateRef)

ApplyTemplates applies templates provided by 'subj' over 'target'

func NormalizeTemplatesList

func NormalizeTemplatesList(templates []*api.TemplateRef) []*api.TemplateRef

NormalizeTemplatesList normalizes list of templates use specifications

Types

type TemplateSubject

type TemplateSubject interface {
	GetNamespace() string
	GetLabels() map[string]string
	GetUsedTemplates() []*api.TemplateRef
}

Jump to

Keyboard shortcuts

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