Documentation ¶
Index ¶
- Variables
- func ConfigFromTemplateAnnotations(tmpl *cosmov1alpha1.Template) (cfg cosmov1alpha1.Config, err error)
- func JSONPatch(op, path string, value any) (string, error)
- func PatchWorkspaceInstanceAsDesired(inst *cosmov1alpha1.Instance, ws cosmov1alpha1.Workspace, ...) error
- func SetConfigOnTemplateAnnotations(tmpl cosmov1alpha1.TemplateObject, cfg cosmov1alpha1.Config)
- type TraefikIngressRouteConfig
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 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
func (c *TraefikIngressRouteConfig) TraefikRoute(r cosmov1alpha1.NetworkRule, ws cosmov1alpha1.Workspace) traefikv1.Route
Click to show internal directories.
Click to hide internal directories.