system

package
v0.25.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppGenerator

type AppGenerator struct {
	generators.BaseOptionsV2
	Spec              saasv1alpha1.SystemAppSpec
	Options           pod.Options
	Image             saasv1alpha1.ImageSpec
	ConfigFilesSecret string
	Traffic           bool
	TwemproxySpec     *saasv1alpha1.TwemproxySpec
}

AppGenerator has methods to generate resources for system-app

func (*AppGenerator) Deployment

func (gen *AppGenerator) Deployment() *resource.Template[*appsv1.Deployment]

func (*AppGenerator) HPASpec

func (*AppGenerator) MonitoredEndpoints

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

func (*AppGenerator) PDBSpec

func (*AppGenerator) PublishingStrategies added in v0.25.0

func (gen *AppGenerator) PublishingStrategies() ([]service.ServiceDescriptor, error)

func (*AppGenerator) SendTraffic

func (gen *AppGenerator) SendTraffic() bool

func (*AppGenerator) TrafficSelector

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

type ConsoleGenerator

type ConsoleGenerator struct {
	generators.BaseOptionsV2
	Spec              saasv1alpha1.SystemRailsConsoleSpec
	Options           pod.Options
	Image             saasv1alpha1.ImageSpec
	ConfigFilesSecret string
	Enabled           bool
	TwemproxySpec     *saasv1alpha1.TwemproxySpec
}

ConsoleGenerator has methods to generate resources for system-console

func (*ConsoleGenerator) StatefulSet

func (gen *ConsoleGenerator) StatefulSet() []resource.TemplateInterface

type Generator

type Generator struct {
	generators.BaseOptionsV2
	App                  AppGenerator
	CanaryApp            *AppGenerator
	SidekiqDefault       SidekiqGenerator
	CanarySidekiqDefault *SidekiqGenerator
	SidekiqBilling       SidekiqGenerator
	CanarySidekiqBilling *SidekiqGenerator
	SidekiqLow           SidekiqGenerator
	CanarySidekiqLow     *SidekiqGenerator
	Searchd              SearchdGenerator
	Console              ConsoleGenerator
	Config               saasv1alpha1.SystemConfig
	GrafanaDashboardSpec saasv1alpha1.GrafanaDashboardSpec
	ConfigFilesSecret    string
	Options              pod.Options
	Tekton               []SystemTektonGenerator
}

Generator configures the generators for System

func NewGenerator

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

NewGenerator returns a new Options struct

func (*Generator) Resources

func (gen *Generator) Resources() ([]resource.TemplateInterface, error)

Resources returns the list of resource templates

type SearchdGenerator

type SearchdGenerator struct {
	generators.BaseOptionsV2
	Spec                 saasv1alpha1.SystemSearchdSpec
	Image                saasv1alpha1.ImageSpec
	DatabasePort         int32
	DatabasePath         string
	DatabaseStorageSize  res.Quantity
	DatabaseStorageClass *string
	Enabled              bool
}

SearchdGenerator has methods to generate resources for system-Searchd

func (*SearchdGenerator) StatefulSetWithTraffic

func (gen *SearchdGenerator) StatefulSetWithTraffic() []resource.TemplateInterface

type SidekiqGenerator

type SidekiqGenerator struct {
	generators.BaseOptionsV2
	Spec              saasv1alpha1.SystemSidekiqSpec
	Options           pod.Options
	Image             saasv1alpha1.ImageSpec
	ConfigFilesSecret string
	TwemproxySpec     *saasv1alpha1.TwemproxySpec
}

SidekiqGenerator has methods to generate resources for system-sidekiq

func (*SidekiqGenerator) Deployment

func (gen *SidekiqGenerator) Deployment() *resource.Template[*appsv1.Deployment]

func (*SidekiqGenerator) HPASpec

func (*SidekiqGenerator) MonitoredEndpoints

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

func (*SidekiqGenerator) PDBSpec

type SystemTektonGenerator

type SystemTektonGenerator struct {
	generators.BaseOptionsV2
	Spec              saasv1alpha1.SystemTektonTaskSpec
	Options           pod.Options
	Image             saasv1alpha1.ImageSpec
	ConfigFilesSecret string
	TwemproxySpec     *saasv1alpha1.TwemproxySpec
	Enabled           bool
}

SystemTektonGenerator has methods to generate resources for system tekton tasks

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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