gateway

package
v0.0.0-...-a5cbdf7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: EPL-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright (c) 2020-2020 Red Hat, Inc. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/

SPDX-License-Identifier: EPL-2.0

Contributors:

Red Hat, Inc. - initial API and implementation

Index

Constants

View Source
const (
	// GatewayServiceName is the name of the service which through which the gateway can be accessed
	GatewayServiceName = "che-gateway"
)

Variables

This section is empty.

Functions

func DeleteGatewayRouteConfig

func DeleteGatewayRouteConfig(serviceName string, deployContext *deploy.DeployContext) error

func GetGatewayRouteConfig

func GetGatewayRouteConfig(deployContext *deploy.DeployContext, serviceName string, pathPrefix string, priority int, internalUrl string, stripPrefix bool) corev1.ConfigMap

GetGatewayRouteConfig creates a config map with traefik configuration for a single new route. `serviceName` is an arbitrary name identifying the configuration. This should be unique within operator. Che server only creates new configuration for workspaces, so the name should not resemble any of the names created by the Che server.

func SyncGatewayToCluster

func SyncGatewayToCluster(deployContext *deploy.DeployContext) error

SyncGatewayToCluster installs or deletes the gateway based on the custom resource configuration

Types

This section is empty.

Jump to

Keyboard shortcuts

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