Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateArtifacts

func GenerateArtifacts(chi *ClickHouseInstallation, om ObjectMarshaller) string

GenerateArtifacts returns resulting (composite) manifest

Types

type ClickHouseInstallation

type ClickHouseInstallation struct {
	Metadata struct {
		Name      string `yaml:"name"`
		Namespace string `yaml:"namespace"`
	} `yaml:"metadata"`
	Spec struct {
		Deployment    chiDeployment    `yaml:"deployment"`
		Configuration chiConfiguration `yaml:"configuration"`
		Templates     chiTemplates     `yaml:"templates"`
	} `yaml:"spec"`
}

ClickHouseInstallation defines structure of the Custom Resource Object

type ObjectMarshaller

type ObjectMarshaller interface {
	Marshal(buffer *bytes.Buffer, object interface{})
}

ObjectMarshaller expresses common behaviour of the object marshaling

Source Files