controllers

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const CesServiceAnnotation = "k8s-dogu-operator.cloudogu.com/ces-services"

CesServiceAnnotation can be appended to service with information of ces services.

Variables

This section is empty.

Functions

func NewDeploymentReconciler added in v0.6.0

func NewDeploymentReconciler(client client.Client, updater IngressUpdater) *deploymentReconciler

NewDeploymentReconciler creates a new deployment reconciler.

func NewIngressClassCreator

func NewIngressClassCreator(client client.Client, className string, namespace string, recorder record.EventRecorder) *ingressClassCreator

NewIngressClassCreator creates a new ingress class creator.

func NewIngressUpdater added in v0.5.0

func NewIngressUpdater(client client.Client, registry registry.Registry, namespace string, ingressClassName string, recorder record.EventRecorder) (*ingressUpdater, error)

NewIngressUpdater creates a new instance responsible for updating ingress objects.

func NewMaintenanceModeUpdater added in v0.5.0

func NewMaintenanceModeUpdater(client client.Client, namespace string, ingressUpdater IngressUpdater, recorder record.EventRecorder) (*maintenanceModeUpdater, error)

NewMaintenanceModeUpdater creates a new maintenance mode updater.

func NewServiceReconciler added in v0.5.0

func NewServiceReconciler(client client.Client, updater IngressUpdater) *serviceReconciler

NewServiceReconciler creates a new service reconciler.

func NewSslCertificateUpdater added in v0.3.0

func NewSslCertificateUpdater(client client.Client, namespace string, recorder record.EventRecorder) (*sslCertificateUpdater, error)

NewSslCertificateUpdater creates a new updater.

func NewWarpMenuCreator added in v0.2.0

func NewWarpMenuCreator(client client.Client, registry registry.Registry, namespace string, recorder record.EventRecorder) *warpMenuCreator

NewWarpMenuCreator initialises a creator object to start the warp menu creation

Types

type CesService

type CesService struct {
	// Name of the ces service serving as identifier.
	Name string `json:"name"`
	// Port of the ces service.
	Port int `json:"port"`
	// Location of the ces service defining the external path to the service.
	Location string `json:"location"`
	// Pass of the ces service defining the target path inside the service's pod.
	Pass string `json:"pass"`
}

CesService contains information about one exposed ces service.

type DeploymentReadyChecker added in v0.6.0

type DeploymentReadyChecker interface {
	// IsReady checks whether the application of the deployment is ready, i.e., contains at least one ready pod.
	IsReady(ctx context.Context, deploymentName string) (bool, error)
}

DeploymentReadyChecker checks the readiness from deployments.

type IngressUpdater added in v0.5.0

type IngressUpdater interface {
	// UpsertIngressForService creates or updates the ingress object of the given service.
	UpsertIngressForService(ctx context.Context, service *corev1.Service) error
}

IngressUpdater is responsible to create and update the actual ingress objects in the cluster.

type ServiceRewriter added in v0.7.0

type ServiceRewriter struct {
	mock.Mock
}

ServiceRewriter is an autogenerated mock type for the ServiceRewriter type

func NewServiceRewriter added in v0.7.0

func NewServiceRewriter(t mockConstructorTestingTNewServiceRewriter) *ServiceRewriter

NewServiceRewriter creates a new instance of ServiceRewriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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