workspace

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotTypeWorkspace = errors.New("not type workspace")
)

Functions

func ConfigFromTemplateAnnotations added in v0.10.0

func ConfigFromTemplateAnnotations(tmpl *cosmov1alpha1.Template) (cfg cosmov1alpha1.Config, err error)

func JSONPatch added in v0.10.0

func JSONPatch(op, path string, value any) (string, error)

func PatchWorkspaceInstanceAsDesired

func PatchWorkspaceInstanceAsDesired(inst *cosmov1alpha1.Instance, ws cosmov1alpha1.Workspace, scheme *runtime.Scheme) error

func SetConfigOnTemplateAnnotations added in v0.10.0

func SetConfigOnTemplateAnnotations(tmpl cosmov1alpha1.TemplateObject, cfg cosmov1alpha1.Config)

Types

type TraefikIngressRouteConfig added in v0.9.0

type TraefikIngressRouteConfig struct {
	// Entrypoints is the entrypoint of traefik ingress route
	Entrypoints []string
	// TLS is the TLS of traefik ingress route
	TLS *traefikv1.TLS
	// AuthenMiddleware is the name and namespace of middleware for cosmo-auth
	// Namespace must be the same as where trafik LB is running
	AuthenMiddleware traefikv1.MiddlewareRef
	// UserNameHeaderMiddlewareName is the name of middleware for username header
	// Namespace must be empty to be the same as the workspace
	UserNameHeaderMiddleware traefikv1.MiddlewareRef

	// HostBase is a base of hostname
	HostBase string
	// Domain is a domain of hostname
	Domain string
}

func (*TraefikIngressRouteConfig) PatchTraefikIngressRouteAsDesired added in v0.9.0

func (c *TraefikIngressRouteConfig) PatchTraefikIngressRouteAsDesired(ir *traefikv1.IngressRoute, ws cosmov1alpha1.Workspace, scheme *runtime.Scheme) error

func (*TraefikIngressRouteConfig) TraefikRoute added in v0.9.0

Jump to

Keyboard shortcuts

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