Documentation ¶
Overview ¶
Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which the Ingress controller depends.
Index ¶
Constants ¶
const ( // IstioConfigName is the name of the configmap containing all // customizations for istio related features. IstioConfigName = "config-istio" // KnativeIngressGateway is the name of the ingress gateway KnativeIngressGateway = "knative-ingress-gateway" // KnativeLocalGateway is the name of the local gateway KnativeLocalGateway = "knative-local-gateway" // IstioIngressGateway is the name of the Istio ingress gateway IstioIngressGateway = "istio-ingressgateway" // IstioNamespace is the namespace containing Istio IstioNamespace = "istio-system" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
Config of Istio. +k8s:deepcopy-gen=false
func FromContext ¶
FromContext fetch config from context.
type Gateway ¶
type Gateway struct { Namespace string Name string ServiceURL string `json:"service"` LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"` }
Gateway specifies the name of the Gateway and the K8s Service backing it.
func (*Gateway) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gateway.
func (*Gateway) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Gateway) QualifiedName ¶
QualifiedName returns gateway name in '{namespace}/{name}' format.
type Istio ¶
type Istio struct { // IngressGateways specifies the gateway urls for public Ingress. IngressGateways []Gateway // LocalGateways specifies the gateway urls for public & private Ingress. LocalGateways []Gateway }
Istio contains istio related configuration defined in the istio config map.
func NewIstioFromConfigMap ¶
NewIstioFromConfigMap creates an Istio config from the supplied ConfigMap
func (*Istio) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Istio.
func (*Istio) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Istio) DefaultExternalGateways ¶ added in v0.41.0
DefaultExternalGateways returns the external gateway without any label selector
func (Istio) DefaultLocalGateways ¶ added in v0.41.0
DefaultLocalGateways returns the local gateway without any label selector
type Store ¶
type Store struct {
*configmap.UntypedStore
}
Store is configmap.UntypedStore based config store. +k8s:deepcopy-gen=false
func NewStore ¶
NewStore creates a configmap.UntypedStore based config store.
logger must be non-nil implementation of configmap.Logger (commonly used loggers conform)
onAfterStore is a variadic list of callbacks to run after the ConfigMap has been processed and stored.
See also: configmap.NewUntypedStore().