package
0.0.0-20241027035712-50c2eeea9829
Repository: https://github.com/costinm/dns-sync.git
Documentation: pkg.go.dev
# Functions
BuildWithConfig allows to generate a Source implementation from the shared config.
EndpointsForHostname returns the endpoint objects for each host-target combination.
No description provided by the author
No description provided by the author
GetRestConfig returns the rest clients config to get automatically data if you run inside a cluster or by passing flags.
GetTargetsFromTargetAnnotation gets endpoints from optional "target" annotation.
No description provided by the author
NewConnectorSource creates a new connectorSource with the given config.
NewCRDClientForAPIVersionKind return rest client for the given apiVersion and kind of the CRD.
NewCRDSource creates a new crdSource with the given config.
NewDedupSource creates a new dedupSource wrapping the provided Source.
NewDynamicKubernetesClient returns a new Dynamic Kubernetes client object.
NewGatewaySource creates a new Gateway source with the given config.
NewIngressSource creates a new ingressSource with the given config.
NewIstioClient returns a new Istio client object.
NewIstioGatewaySource creates a new gatewaySource with the given config.
No description provided by the author
NewK8SSource creates a new source that syncs up all pods to an internal zone, using podname.NAMESPACE.SUFFIX as the DNS name.
NewKubeClient returns a new Kubernetes client object.
NewMultiSource creates a new multiSource.
NewNodeSource creates a new nodeSource with the given config.
NewPodSource creates a new podSource with the given config.
NewTargetFilterSource creates a new targetFilterSource wrapping the provided Source.
SuitableType returns the DNS resource record type suitable for the target.
No description provided by the author
# Constants
ALBDualstackAnnotationKey is the annotation used for determining if an ALB ingress is dualstack.
ALBDualstackAnnotationValue is the value of the ALB dualstack annotation that indicates it is dualstack.
The annotation used for determining if traffic will go through Cloudflare.
No description provided by the author
No description provided by the author
No description provided by the author
Possible values for the ingress-hostname-source annotation.
No description provided by the author
IstioGatewayIngressSource is the annotation used to determine if the gateway is implemented by an Ingress object instead of a standard LoadBalancer service type.
Provider-specific annotations.
# Variables
ErrSourceNotFound is returned when a requested source doesn't exist.
If set, will instrument the K8S and other outgoing calls.
No description provided by the author
# Structs
Config holds shared configuration options for all Sources.
No description provided by the author
K8SSourceConfig is used to configure a new K8SSource, which creates DNS entries for all Nodes, Pods, Services and objects in one cluster.
No description provided by the author
ServiceEntrySource is an implementation of Source for Istio ServiceEntry objects.
No description provided by the author
SingletonClientGenerator stores provider clients and guarantees that only one instance of client will be generated.
# Interfaces
ClientGenerator provides clients.
# Type aliases
No description provided by the author