search_domain_operator

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDnsMsg

func GetDnsMsg(name string, qType uint16) *dns.Msg

func LoadAuthDataFromDNS

func LoadAuthDataFromDNS(dnsAddr string, name string) ([]*discovery.AuthData, error)

load a list of foreign AuthServices given a DNS domain name. These foreign services have to be added in a PTR record for that domain name, for example: liqo.mycompany.com myliqo1.mycompany.com, myliqo2.mycompany.com can be 2 different clusters registered on a company domain. For each cluster than we have to have a SRV record that specify the port where to contact that cluster

func ResolveWan

func ResolveWan(c *dns.Client, dnsAddr string, ptr *dns.PTR) (*discovery.AuthData, error)

func StartOperator

func StartOperator(mgr *manager.Manager, requeueAfter time.Duration, discoveryCtrl *discovery.DiscoveryCtrl, kubeconfigPath string)

Types

type SearchDomainReconciler

type SearchDomainReconciler struct {
	Scheme *runtime.Scheme

	DiscoveryCtrl *discovery.DiscoveryCtrl

	DnsAddress string
	// contains filtered or unexported fields
}

func GetSDReconciler

func GetSDReconciler(scheme *runtime.Scheme, crdClient *crdClient.CRDClient, discoveryCtrl *discovery.DiscoveryCtrl, requeueAfter time.Duration) *SearchDomainReconciler

func (*SearchDomainReconciler) Reconcile

func (r *SearchDomainReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*SearchDomainReconciler) SetupWithManager

func (r *SearchDomainReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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