+k8s:deepcopy-gen=package Package network holds the typed objects that define the schemas for configuring the knative/serving networking layer.
const ( ProbeHeaderName = "K-Network-Probe" ProxyHeaderName = "K-Proxy-Request" HashHeaderName = "K-Network-Hash" OriginalHostHeader = "K-Original-Host" ConfigName = "config-network" IstioOutboundIPRangesKey = "istio.sidecar.includeOutboundIPRanges" DeprecatedDefaultIngressClassKey = "clusteringress.class" DefaultIngressClassKey = "ingress.class" DefaultCertificateClassKey = "certificate.class" IstioIngressClassName = "istio.ingress.networking.knative.dev" CertManagerCertificateClassName = "cert-manager.certificate.networking.knative.dev" DomainTemplateKey = "domainTemplate" TagTemplateKey = "tagTemplate" KubeProbeUAPrefix = "kube-probe/" KubeletProbeHeaderName = "K-Kubelet-Probe" DefaultDomainTemplate = "{{.Name}}.{{.Namespace}}.{{.Domain}}" DefaultTagTemplate = "{{.Tag}}-{{.Name}}" AutoTLSKey = "autoTLS" HTTPProtocolKey = "httpProtocol" UserAgentKey = "User-Agent" ActivatorUserAgent = "Knative-Activator-Probe" QueueProxyUserAgent = "Knative-Queue-Proxy-Probe" IngressReadinessUserAgent = "Knative-Ingress-Probe" AutoscalingUserAgent = "Knative-Autoscaling-Probe" )
ProbeHeaderValue is the value used in 'K-Network-Probe'
IsKubeletProbe returns true if the request is a Kubernetes probe.
IsProbe returns true if the request is a Kubernetes probe or a Knative probe, i.e. non-empty ProbeHeaderName header.
KnativeProbeHeader returns the value for key ProbeHeaderName in request headers.
KnativeProxyHeader returns the value for key ProxyHeaderName in request headers.
NameForPortNumber finds the name for a given port as defined by a Service.
NewBufferPool creates a new BytePool. This is only safe to use in the context of a httputil.ReverseProxy, as the buffers returned via Put are not cleaned explicitly.
func NewProbeHandler ¶ added in v0.9.0NewProbeHandler wraps a HTTP handler handling probing requests around the provided HTTP handler
PortNumberForName resolves a given name to a portNumber as defined by an EndpointSubset.
RewriteHostIn removes the `Host` header from the inbound (server) request and replaces it with our custom header. This is done to avoid Istio Host based routing, see #3870. Queue-Proxy will execute the reverse process.
RewriteHostOut undoes the `RewriteHostIn` action. RewriteHostOut checks if network.OriginalHostHeader was set and if it was, then uses that as the r.Host (which takes priority over Request.Header["Host"]). If the request did not have the OriginalHostHeader header set, the request is untouched.
Config contains the networking configuration defined in the network config map.
NewConfigFromConfigMap creates a Config from the supplied ConfigMap
NewConfogFromMap creates a Config from the supplied data.
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Config) GetDomainTemplate ¶ added in v0.6.0GetDomainTemplate returns the golang Template from the config map or panics (the value is validated during CM validation and at this point guaranteed to be parseable).
type DomainTemplateValues ¶ added in v0.6.0DomainTemplateValues are the available properties people can choose from in their Route's "DomainTemplate" golang template sting. We could add more over time - e.g. RevisionName if we thought that might be of interest to people.
func (*DomainTemplateValues) DeepCopy ¶ added in v0.6.0DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DomainTemplateValues.
func (*DomainTemplateValues) DeepCopyInto ¶ added in v0.6.0DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
HTTPProtocol indicates a type of HTTP endpoint behavior that Knative ingress could take.
TagTemplateValues are the available properties people can choose from in their Route's "TagTemplate" golang template sting.
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TagTemplateValues.
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4