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 ¶
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.