config

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	// ConfigName is the name of config map for Kourier.
	ConfigName = "config-kourier"
)

Variables

View Source
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

func ServiceHostnames() (string, string)

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

func NewConfigFromConfigMap(config *corev1.ConfigMap) (*Kourier, error)

NewConfigFromConfigMap creates a Kourier from the supplied configMap.

func NewConfigFromMap added in v0.24.0

func NewConfigFromMap(configMap map[string]string) (*Kourier, error)

NewConfigFromMap creates a DeploymentConfig from the supplied Map.

func (*Kourier) DeepCopy added in v0.24.0

func (in *Kourier) DeepCopy() *Kourier

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kourier.

func (*Kourier) DeepCopyInto added in v0.24.0

func (in *Kourier) DeepCopyInto(out *Kourier)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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