expose

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CesServiceAnnotation can be appended to service with information of ces services.
	CesServiceAnnotation = "k8s-dogu-operator.cloudogu.com/ces-services"
)

Variables

This section is empty.

Functions

func NewExposedPortHandler

func NewExposedPortHandler(serviceInterface serviceInterface, ingressController ingressController, namespace string) *exposedPortHandler

NewExposedPortHandler creates a new instance of exposedPortHandler.

func NewIngressClassCreator

func NewIngressClassCreator(clientset clientSetInterface, className string, namespace string, recorder eventRecorder, controller ingressController) *ingressClassCreator

NewIngressClassCreator creates a new ingress class creator.

func NewIngressUpdater

func NewIngressUpdater(clientSet clientSetInterface, doguInterface doguInterface, globalConfigRepo GlobalConfigRepository, namespace string, ingressClassName string, recorder eventRecorder, controller ingressController) *ingressUpdater

NewIngressUpdater creates a new instance responsible for updating ingress objects.

func NewNetworkPolicyHandler

func NewNetworkPolicyHandler(policyInterface networkPolicyInterface, controller ingressController, allowedCIDR string) *networkPolicyHandler

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"`
	// Rewrite that should be applied to the ingress configuration.
	// Is a json-marshalled `serviceRewrite`. Useful if Dogus do not support sub-paths.
	Rewrite string `json:"rewrite,omitempty"`
}

CesService contains information about one exposed ces service.

type DeploymentReadyChecker

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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