ingress

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceTypeClusterIP    = "ClusterIP"
	ServiceTypeLoadBalancer = "LoadBalancer"
	ServiceTypeNodePort     = "NodePort"
)
View Source
const (
	ControllerTraefik = "traefik"
)
View Source
const ServiceName = "ingress"

ServiceName is the unique name of the integrated service

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartsConfig

type ChartsConfig struct {
	Traefik TraefikChartConfig
}

type Config

type Config struct {
	Namespace   string
	ReleaseName string
	Controllers []string
	Charts      ChartsConfig
}

func (Config) Validate

func (c Config) Validate() error

type ControllerSpec

type ControllerSpec struct {
	Type      string                 `json:"type" mapstructure:"type"`
	RawConfig map[string]interface{} `json:"config" mapstructure:"config"`
	// contains filtered or unexported fields
}

func (*ControllerSpec) TraefikConfig

func (s *ControllerSpec) TraefikConfig() (TraefikConfigSpec, error)

func (ControllerSpec) Validate

func (s ControllerSpec) Validate(config Config) error

type Manager

type Manager struct {
	integratedservices.PassthroughIntegratedServiceSpecPreparer
	// contains filtered or unexported fields
}

func NewManager

func NewManager(config Config, helmService services.HelmService, logger services.Logger) Manager

func (Manager) Name

func (Manager) Name() string

Name returns the integrated service's name.

func (Manager) ValidateSpec

type Operator

type Operator struct {
	// contains filtered or unexported fields
}

func NewOperator

func NewOperator(
	clusters OperatorClusterStore,
	clusterService integratedservices.ClusterService,
	config Config,
	helmService services.HelmService,
	orgDomainService OrgDomainService,
) Operator

func (Operator) Apply

Apply applies a desired state for an integrated service on the given cluster.

func (Operator) Deactivate

func (op Operator) Deactivate(ctx context.Context, clusterID uint, spec integratedservices.IntegratedServiceSpec) error

Deactivate deactivates an integrated service on the given cluster.

func (Operator) Name

func (Operator) Name() string

Name returns the integrated service's name.

type OperatorCluster

type OperatorCluster struct {
	OrganizationID uint
	Cloud          string
}

type OperatorClusterStore

type OperatorClusterStore interface {
	Get(ctx context.Context, clusterID uint) (OperatorCluster, error)
}

type OrgDomain

type OrgDomain struct {
	Name         string
	WildcardName string
}

type OrgDomainService

type OrgDomainService interface {
	GetOrgDomain(ctx context.Context, orgID uint) (OrgDomain, error)
}

type ServiceSpec

type ServiceSpec struct {
	Type        string            `json:"type" mapstructure:"type"`
	Annotations map[string]string `json:"annotations" mapstructure:"annotations"`
}

func (ServiceSpec) Validate

func (s ServiceSpec) Validate() error

type Spec

type Spec struct {
	Controller   ControllerSpec `json:"controller" mapstructure:"controller"`
	IngressClass string         `json:"ingressClass" mapstructure:"ingressClass"`
	Service      ServiceSpec    `json:"service" mapstructure:"service"`
}

func (Spec) Validate

func (s Spec) Validate(config Config) error

type TraefikChartConfig

type TraefikChartConfig struct {
	Chart   string
	Version string
	Values  values.Config
}

type TraefikConfigSpec

type TraefikConfigSpec struct {
	SSL TraefikSSLSpec `json:"ssl" mapstructure:"ssl"`
}

func (TraefikConfigSpec) Validate

func (s TraefikConfigSpec) Validate() error

type TraefikSSLSpec

type TraefikSSLSpec struct {
	DefaultCN      string   `json:"defaultCN" mapstructure:"defaultCN"`
	DefaultIPList  []string `json:"defaultIPList" mapstructure:"defaultIPList"`
	DefaultSANList []string `json:"defaultSANList" mapstructure:"defaultSANList"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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