searchdomainoperator

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package searchdomainoperator implements the logic of the SearchDomain Operator

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAuthDataFromDNS

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

LoadAuthDataFromDNS loads 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 StartOperator

func StartOperator(mgr manager.Manager, requeueAfter time.Duration, discoveryCtrl *discovery.Controller)

StartOperator setups the SearchDomain operator.

Types

type SearchDomainReconciler

type SearchDomainReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	DiscoveryCtrl *discovery.Controller

	DNSAddress string
	// contains filtered or unexported fields
}

SearchDomainReconciler is the reconciler manager for SearchDomain resources.

func (*SearchDomainReconciler) Reconcile

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

Reconcile reconciles SearchDomain resources.

func (*SearchDomainReconciler) SetupWithManager

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

SetupWithManager assigns the operator to a manager.

Jump to

Keyboard shortcuts

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