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 }
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 (Manager) GetOutput ¶
func (m Manager) GetOutput(ctx context.Context, clusterID uint, spec integratedservices.IntegratedServiceSpec) (integratedservices.IntegratedServiceOutput, error)
func (Manager) ValidateSpec ¶
func (m Manager) ValidateSpec(ctx context.Context, spec integratedservices.IntegratedServiceSpec) error
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 ¶
func (op Operator) Apply(ctx context.Context, clusterID uint, spec integratedservices.IntegratedServiceSpec) error
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.
type OperatorCluster ¶
type OperatorClusterStore ¶
type OperatorClusterStore interface {
Get(ctx context.Context, clusterID uint) (OperatorCluster, error)
}
type OrgDomainService ¶
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"` }
type TraefikChartConfig ¶
type TraefikConfigSpec ¶
type TraefikConfigSpec struct {
SSL TraefikSSLSpec `json:"ssl" mapstructure:"ssl"`
}
func (TraefikConfigSpec) Validate ¶
func (s TraefikConfigSpec) Validate() error
type TraefikSSLSpec ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.