controlplaneurl

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package controlplaneurl derives the URL that operator components use for Coder API calls to a CoderControlPlane.

Index

Constants

View Source
const DefaultServicePort = int32(80)

DefaultServicePort is the Service port of a CoderControlPlane when spec.service.port is not set. Coder serves plain HTTP on it.

Variables

This section is empty.

Functions

func CoderAPIURL

func CoderAPIURL(controlPlane *coderv1alpha1.CoderControlPlane) (*url.URL, error)

CoderAPIURL returns the URL for Coder API calls with the operator token. It is status.url when that is HTTP. With TLS, status.url is HTTPS on the Service name, which certificates rarely cover, so it is the internal HTTP URL instead. The operator token then travels over plain HTTP inside the cluster.

func HTTPServicePort

func HTTPServicePort(controlPlane *coderv1alpha1.CoderControlPlane) (int32, error)

HTTPServicePort returns the Service port that serves plain HTTP.

func InternalHTTPURL

func InternalHTTPURL(controlPlane *coderv1alpha1.CoderControlPlane) string

InternalHTTPURL returns the plain HTTP URL of the control plane Service, or "" when it cannot be derived.

func TLSEnabled

func TLSEnabled(controlPlane *coderv1alpha1.CoderControlPlane) bool

TLSEnabled reports whether the control plane serves TLS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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