zync

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIGenerator

type APIGenerator struct {
	generators.BaseOptionsV2
	Image   saasv1alpha1.ImageSpec
	APISpec saasv1alpha1.APISpec
	Options config.APIOptions
	Traffic bool
}

APIGenerator has methods to generate resources for a Zync environment

func (*APIGenerator) Deployment

func (*APIGenerator) HPASpec added in v0.14.0

func (*APIGenerator) Labels added in v0.14.0

func (gen *APIGenerator) Labels() map[string]string

func (*APIGenerator) MonitoredEndpoints added in v0.14.0

func (gen *APIGenerator) MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint

func (*APIGenerator) PDBSpec added in v0.14.0

func (*APIGenerator) SendTraffic added in v0.14.0

func (gen *APIGenerator) SendTraffic() bool

func (*APIGenerator) Services added in v0.14.0

func (*APIGenerator) TrafficSelector added in v0.14.0

func (gen *APIGenerator) TrafficSelector() map[string]string

type ConsoleGenerator added in v0.19.9

type ConsoleGenerator struct {
	generators.BaseOptionsV2
	Image   saasv1alpha1.ImageSpec
	Spec    saasv1alpha1.ZyncRailsConsoleSpec
	Options config.APIOptions
	Enabled bool
}

ConsoleGenerator has methods to generate resources for zync-console

func (*ConsoleGenerator) StatefulSet added in v0.19.9

type Generator

type Generator struct {
	generators.BaseOptionsV2
	API                  APIGenerator
	Que                  QueGenerator
	Console              ConsoleGenerator
	GrafanaDashboardSpec saasv1alpha1.GrafanaDashboardSpec
	Config               saasv1alpha1.ZyncConfig
}

Generator configures the generators for Zync

func NewGenerator

func NewGenerator(instance, namespace string, spec saasv1alpha1.ZyncSpec) Generator

NewGenerator returns a new Options struct

func (*Generator) Resources added in v0.14.0

func (gen *Generator) Resources() []basereconciler.Resource

Resources returns functions to generate all Zync's shared resources

type QueGenerator

type QueGenerator struct {
	generators.BaseOptionsV2
	Image   saasv1alpha1.ImageSpec
	QueSpec saasv1alpha1.QueSpec
	Options config.QueOptions
}

QueGenerator has methods to generate resources for a Que environment

func (*QueGenerator) Deployment

func (*QueGenerator) HPASpec added in v0.14.0

func (*QueGenerator) MonitoredEndpoints added in v0.14.0

func (gen *QueGenerator) MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint

func (*QueGenerator) PDBSpec added in v0.14.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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