Documentation
¶
Index ¶
- Constants
- func NewExposedPortHandler(serviceInterface serviceInterface, ingressController ingressController, ...) *exposedPortHandler
- func NewIngressClassCreator(clientset clientSetInterface, className string, namespace string, ...) *ingressClassCreator
- func NewIngressUpdater(clientSet clientSetInterface, doguInterface doguInterface, ...) *ingressUpdater
- func NewNetworkPolicyHandler(policyInterface networkPolicyInterface, controller ingressController, ...) *networkPolicyHandler
- type CesService
- type DeploymentReadyChecker
- type GlobalConfigRepository
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.
type GlobalConfigRepository ¶
type GlobalConfigRepository interface { Get(context.Context) (libconfig.GlobalConfig, error) Watch(context.Context, ...libconfig.WatchFilter) (<-chan repository.GlobalConfigWatchResult, error) Update(ctx context.Context, globalConfig libconfig.GlobalConfig) (libconfig.GlobalConfig, error) }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.