apicast

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 18 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) 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) PublishingStrategies added in v0.25.0

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

func (*EnvGenerator) SendTraffic

func (gen *EnvGenerator) SendTraffic() bool

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.ElasticLoadBalancerSpec
	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