apicast

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvGenerator

type EnvGenerator struct {
	generators.BaseOptionsV2
	Spec    saasv1alpha1.ApicastEnvironmentSpec
	Options pod.Options
	Traffic bool
}

EnvGenerator has methods to generate resources for an Apicast environment

func (*EnvGenerator) Deployment

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

func (*EnvGenerator) EnvoyDynamicConfigurations

func (gen *EnvGenerator) EnvoyDynamicConfigurations() []descriptor.EnvoyDynamicConfigDescriptor

func (*EnvGenerator) HPASpec

func (*EnvGenerator) Labels

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

func (*EnvGenerator) MonitoredEndpoints

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

func (*EnvGenerator) PDBSpec

func (*EnvGenerator) SendTraffic

func (gen *EnvGenerator) SendTraffic() bool

func (*EnvGenerator) Services

func (gen *EnvGenerator) Services() []*resource.Template[*corev1.Service]

func (*EnvGenerator) TrafficSelector

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

type Generator

type Generator struct {
	generators.BaseOptionsV2
	Staging              EnvGenerator
	CanaryStaging        *EnvGenerator
	Production           EnvGenerator
	CanaryProduction     *EnvGenerator
	LoadBalancerSpec     saasv1alpha1.LoadBalancerSpec
	GrafanaDashboardSpec saasv1alpha1.GrafanaDashboardSpec
}

Generator configures the generators for Apicast

func NewGenerator

func NewGenerator(instance, namespace string, spec saasv1alpha1.ApicastSpec) (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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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