MCPcopy Index your code

hub / github.com/caddyserver/ingress / functions

Functions140 in github.com/caddyserver/ingress

↓ 12 callersMethodRun
Run method starts the ingress controller.
internal/controller/controller.go:169
↓ 11 callersFunctionRegisterPlugin
(m Plugin)
pkg/converter/converter.go:51
↓ 10 callersFunctioncleanKey
cleanKey strips all special characters that are not supported by kubernetes names and converts them to a '.'. sequences like '.*.' are also converted
pkg/storage/storage.go:43
↓ 10 callersFunctioncreateIngress
(uid string)
pkg/store/store_test.go:194
↓ 9 callersFunctiongetAnnotation
(ing *v1.Ingress, rule string)
internal/caddy/ingress/annotations.go:18
↓ 5 callersMethodAddIngress
AddIngress adds an ingress to the store. It updates the element at the given index if it is unique.
pkg/store/store.go:27
↓ 5 callersMethodGetHTTPServer
()
pkg/converter/config.go:29
↓ 5 callersFunctionNewStore
NewStore returns a new store that keeps track of K8S resources needed by the controller.
pkg/store/store.go:16
↓ 5 callersFunctioncreateIngressTLS
(uid string, hosts []string, secret string)
pkg/store/store_test.go:179
↓ 4 callersMethodGetMetricsServer
()
pkg/converter/config.go:33
↓ 3 callersMethodHasManagedTLS
()
pkg/store/store.go:65
↓ 3 callersFunctionisControllerConfigMap
(cm *v1.ConfigMap, name string)
internal/k8s/configmap.go:21
↓ 3 callersFunctionisControllerIngress
isControllerIngress check if the ingress object can be controlled by us
internal/k8s/ingress.go:58
↓ 3 callersFunctionwriteFile
writeFile writes a secret to a .pem file on disk.
internal/controller/action_tls.go:56
↓ 2 callersMethodConvertToCaddyConfig
(store *store.Store)
internal/controller/controller.go:63
↓ 2 callersMethodGetTLSApp
()
pkg/converter/config.go:37
↓ 2 callersMethodIngressHandler
IngressHandler Converts redirect annotations to static_response handler
internal/caddy/ingress/redirect.go:24
↓ 2 callersMethodIngressHandler
IngressHandler Add a reverse proxy handler to the route
internal/caddy/ingress/reverseproxy.go:26
↓ 2 callersFunctionIsManagedTLSSecret
(secret *v12.Secret, ings []*v1.Ingress)
internal/k8s/tls_secret.go:67
↓ 2 callersMethodList
List returns all keys that match prefix.
pkg/storage/storage.go:162
↓ 2 callersFunctionNewConfig
()
pkg/converter/config.go:41
↓ 2 callersFunctionParseConfigMap
(cm *apiv1.ConfigMap)
pkg/store/configmap_parser.go:42
↓ 2 callersMethodPluckIngress
PluckIngress removes the ingress passed in as an argument from the stores list of ingresses.
pkg/store/store.go:44
↓ 2 callersFunctionPlugins
Plugins return a sorted array of plugin instances. Sort is made following these rules: - Plugins specified in the order slice will always go first (in
pkg/converter/converter.go:95
↓ 2 callersFunctiongetFirstItemFromJSON
(data json.RawMessage)
internal/caddy/global/ingress_sort.go:28
↓ 2 callersFunctiongetOrderIndex
(order []string, plugin string)
pkg/converter/converter.go:61
↓ 2 callersFunctionlessLoadBalancerIngress
lessLoadBalancerIngress is a sorting function for ingress hostnames.
internal/controller/action_status.go:111
↓ 2 callersFunctionsortPlugins
(plugins []PluginInfo, order []string)
pkg/converter/converter.go:70
↓ 2 callersFunctionsortRoutes
(routes caddyhttp.RouteList)
internal/caddy/global/ingress_sort.go:37
↓ 2 callersMethodtryAcquireOrRenew
(ctx context.Context, key string, shouldExist bool)
pkg/storage/storage.go:230
↓ 2 callersMethodupdateIngStatuses
updateIngStatuses starts a queue and adds all monitored ingresses to update their status source address to the on that the ingress controller is runni
internal/controller/action_status.go:44
↓ 2 callersMethodwatchTLSSecrets
watchTLSSecrets Start listening to TLS secrets if at least one ingress needs it. It will sync the CertFolder with TLS secrets
internal/controller/action_tls.go:88
↓ 1 callersMethodCaddyModule
()
pkg/proxy/proxy.go:28
↓ 1 callersMethodDelete
Delete deletes the value at the given key.
pkg/storage/storage.go:151
↓ 1 callersMethodExists
Exists returns true if key exists in fs.
pkg/storage/storage.go:87
↓ 1 callersFunctionGetAddressFromService
GetAddressFromService returns the IP address or the name of a node in the cluster
internal/k8s/pod.go:58
↓ 1 callersFunctionGetAddresses
GetAddresses gets the ip address or name of the node in the cluster that the ingress controller is running on.
internal/k8s/pod.go:18
↓ 1 callersFunctionGetPodDetails
GetPodDetails returns runtime information about the pod: name, namespace and IP of the node where it is running
internal/k8s/pod.go:81
↓ 1 callersMethodGlobalHandler
(config *Config, store *store.Store)
pkg/converter/converter.go:23
↓ 1 callersMethodGlobalHandler
(config *converter.Config, store *store.Store)
internal/caddy/global/tls.go:25
↓ 1 callersMethodIngressHandler
(input IngressMiddlewareInput)
pkg/converter/converter.go:38
↓ 1 callersMethodIngressPlugin
()
pkg/converter/converter.go:42
↓ 1 callersFunctionListTLSSecrets
(options TLSSecretParams, ings []*v1.Ingress)
internal/k8s/tls_secret.go:51
↓ 1 callersMethodLoad
Load retrieves the value at the given key.
pkg/storage/storage.go:137
↓ 1 callersFunctionNewCaddyController
( logger *zap.SugaredLogger, kubeClient *kubernetes.Clientset, opts store.Options, converter Converter, s
internal/controller/controller.go:91
↓ 1 callersMethodShutdown
Shutdown stops the caddy controller.
internal/controller/controller.go:156
↓ 1 callersMethodStat
Stat returns information about key.
pkg/storage/storage.go:185
↓ 1 callersFunctionUpdateIngressStatus
(kubeClient *kubernetes.Clientset, ing *networkingv1.Ingress, status []networkingv1.IngressLoadBalancerIngress
internal/k8s/ingress.go:71
↓ 1 callersFunctionWatchConfigMaps
(options ConfigMapParams, funcs ConfigMapHandlers)
internal/k8s/configmap.go:25
↓ 1 callersFunctionWatchIngresses
(options IngressParams, funcs IngressHandlers)
internal/k8s/ingress.go:26
↓ 1 callersFunctionWatchTLSSecrets
(options TLSSecretParams, funcs TLSSecretHandlers)
internal/k8s/tls_secret.go:20
↓ 1 callersFunctioncreateApiserverClient
createApiserverClient creates a new Kubernetes REST client. We assume the controller runs inside Kubernetes and use the in-cluster config.
cmd/caddy/main.go:75
↓ 1 callersFunctioncreateLogger
(verbose bool)
cmd/caddy/main.go:27
↓ 1 callersFunctiongetAnnotationBool
(ing *v1.Ingress, rule string, def bool)
internal/caddy/ingress/annotations.go:22
↓ 1 callersMethodhandle
(c *CaddyController)
internal/controller/controller.go:43
↓ 1 callersMethodhandleErr
handleErrs reports errors received from queue actions. goland:noinspection GoUnusedParameter
internal/controller/controller.go:244
↓ 1 callersFunctioningressSliceEqual
ingressSliceEqual determines if the ingress source matches the ingress controller's.
internal/controller/action_status.go:93
↓ 1 callersFunctionisSubset
Copied from https://github.com/kubernetes/kubernetes/pull/95179
internal/k8s/pod.go:40
↓ 1 callersMethodkeepLockUpdated
(ctx context.Context, key string)
pkg/storage/storage.go:217
↓ 1 callersFunctionparseFlags
()
cmd/caddy/flag.go:10
↓ 1 callersFunctionparseTrustedProxies
Copied from https://github.com/caddyserver/caddy/blob/21af88fefc9a8239a024f635f1c6fdd9defd7eb7/modules/caddyhttp/reverseproxy/reverseproxy.go#L270-L28
internal/caddy/ingress/reverseproxy.go:75
↓ 1 callersMethodprocessNextItem
processNextItem determines if there is an ingress item in the event queue and processes it.
internal/controller/controller.go:213
↓ 1 callersMethodreloadCaddy
reloadCaddy generate a caddy config from controller's store
internal/controller/controller.go:249
↓ 1 callersFunctionrunUpdate
runUpdate updates the ingress status field.
internal/controller/action_status.go:69
↓ 1 callersFunctionsliceToLoadBalancerIngress
sliceToLoadBalancerIngress converts a slice of IP and/or hostnames to LoadBalancerIngress
internal/controller/action_status.go:124
↓ 1 callersFunctionstringToCaddyDurationHookFunc
()
pkg/store/configmap_parser.go:30
↓ 1 callersMethodsyncStatus
syncStatus ensures that the ingress source address points to this ingress controller's IP address.
internal/controller/action_status.go:30
MethodCaddyModule
()
pkg/storage/storage.go:60
MethodCertMagicStorage
CertMagicStorage returns a certmagic storage type to be used by caddy.
pkg/storage/storage.go:82
MethodConvertToCaddyConfig
(store *store.Store)
internal/caddy/convert.go:14
MethodGlobalHandler
(config *converter.Config, store *store.Store)
internal/caddy/global/secrets_store.go:21
MethodGlobalHandler
(config *converter.Config, store *store.Store)
internal/caddy/global/configmap.go:27
MethodGlobalHandler
(config *converter.Config, store *store.Store)
internal/caddy/global/ingress.go:25
MethodGlobalHandler
(config *converter.Config, store *store.Store)
internal/caddy/global/healthz.go:29
MethodGlobalHandler
(config *converter.Config, store *store.Store)
internal/caddy/global/metrics.go:26
MethodGlobalHandler
GlobalHandler in IngressSortPlugin tries to sort routes to have the less conflict. It only supports basic conflicts for now. It doesn't support multi
internal/caddy/global/ingress_sort.go:63
MethodIngressHandler
IngressHandler Generate matchers for the route.
internal/caddy/ingress/matcher.go:21
MethodIngressHandler
IngressHandler Converts rewrite annotations to rewrite handler
internal/caddy/ingress/rewrite.go:21
MethodIngressPlugin
()
internal/caddy/ingress/matcher.go:13
MethodIngressPlugin
()
internal/caddy/ingress/redirect.go:15
MethodIngressPlugin
()
internal/caddy/ingress/rewrite.go:12
MethodIngressPlugin
()
internal/caddy/ingress/reverseproxy.go:16
MethodIngressPlugin
()
internal/caddy/global/secrets_store.go:10
MethodIngressPlugin
()
internal/caddy/global/configmap.go:20
MethodIngressPlugin
()
internal/caddy/global/ingress.go:14
MethodIngressPlugin
()
internal/caddy/global/healthz.go:17
MethodIngressPlugin
()
internal/caddy/global/metrics.go:15
MethodIngressPlugin
()
internal/caddy/global/tls.go:14
MethodIngressPlugin
()
internal/caddy/global/ingress_sort.go:15
MethodLock
(ctx context.Context, key string)
pkg/storage/storage.go:201
MethodProvision
Provisions the SecretStorage instance.
pkg/storage/storage.go:68
MethodProvision
(ctx caddy.Context)
pkg/proxy/proxy.go:35
MethodStore
Store saves value at key. More than certs and keys are stored by certmagic in secrets.
pkg/storage/storage.go:109
FunctionTestConvertToCaddyConfig
(t *testing.T)
internal/caddy/convert_test.go:12
FunctionTestIngressSort
(t *testing.T)
internal/caddy/global/ingress_sort_test.go:13
FunctionTestIngressTlsSkipCertificates
(t *testing.T)
internal/caddy/global/tls_test.go:16
FunctionTestMisconfiguredRedirectConvertToCaddyConfig
(t *testing.T)
internal/caddy/ingress/redirect_test.go:80
FunctionTestMisconfiguredTrustedProxiesConvertToCaddyConfig
(t *testing.T)
internal/caddy/ingress/reverseproxy_test.go:87
FunctionTestRedirectConvertToCaddyConfig
(t *testing.T)
internal/caddy/ingress/redirect_test.go:15
FunctionTestSortPlugins
(t *testing.T)
pkg/converter/converter_test.go:5
next →1–100 of 140, ranked by callers