Documentation ¶
Index ¶
Constants ¶
const ( // ControllerName is the name of the kourier controller. ControllerName = "net-kourier-controller" // InternalServiceName is the name of the internal service. InternalServiceName = "kourier-internal" // ExternalServiceName is the name of the external service. ExternalServiceName = "kourier" // HTTPPortExternal is the port for external availability. HTTPPortExternal = uint32(8080) // HTTPPortInternal is the port for internal availability. HTTPPortInternal = uint32(8081) // HTTPSPortExternal is the port for external HTTPS availability. HTTPSPortExternal = uint32(8443) // HTTPPortProb is the port for prob HTTPPortProb = uint32(8090) // HTTPSPortProb is the port for prob HTTPSPortProb = uint32(9443) // InternalKourierDomain is an internal envoy endpoint. InternalKourierDomain = "internalkourier" // GatewayNamespaceEnv is an env variable specifying where the gateway is deployed. GatewayNamespaceEnv = "KOURIER_GATEWAY_NAMESPACE" // KourierIngressClassName is the class name to reconcile. KourierIngressClassName = "kourier.ingress.networking.knative.dev" )
const (
// ConfigName is the name of config map for Kourier.
ConfigName = "config-kourier"
)
Variables ¶
var ExternalAuthz = &ExternalAuthzConfig{ Enabled: false, }
ExternalAuthz is the configuration of external authorization.
Functions ¶
func GatewayNamespace ¶ added in v0.19.0
func GatewayNamespace() string
GatewayNamespace returns the namespace where the gateway is deployed.
func ServiceHostnames ¶ added in v0.19.0
ServiceHostnames returns the external and internal service's respective hostname.
Example: kourier.kourier-system.svc.cluster.local.
Types ¶
type ExternalAuthzConfig ¶ added in v0.19.0
type ExternalAuthzConfig struct { Enabled bool Cluster *v3Cluster.Cluster HTTPFilter *hcm.HttpFilter }
ExternalAuthzConfig specifies parameters for external authorization configuration.
type Kourier ¶ added in v0.24.0
type Kourier struct { // EnableServiceAccessLogging specifies whether requests reaching the Kourier gateway // should be logged. EnableServiceAccessLogging bool // EnableProxyProtocol specifies whether proxy protocol feature is enabled EnableProxyProtocol bool }
Kourier includes the configuration for Kourier. +k8s:deepcopy-gen=true
func DefaultConfig ¶ added in v0.24.0
func DefaultConfig() *Kourier
func NewConfigFromConfigMap ¶ added in v0.24.0
NewConfigFromConfigMap creates a Kourier from the supplied configMap.
func NewConfigFromMap ¶ added in v0.24.0
NewConfigFromMap creates a DeploymentConfig from the supplied Map.
func (*Kourier) DeepCopy ¶ added in v0.24.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kourier.
func (*Kourier) DeepCopyInto ¶ added in v0.24.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.