kubeslice

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubeslice

type Kubeslice struct {
	Next           plugin.Handler
	EndpointsCache dnsCache.EndpointsCache
}

implements plugin.servicebackend interface

func (*Kubeslice) IsNameError

func (ks *Kubeslice) IsNameError(err error) bool

TODO fill later

func (*Kubeslice) Lookup

func (ks *Kubeslice) Lookup(ctx context.Context, state request.Request, name string, typ uint16) (*dns.Msg, error)

TODO fill later

func (*Kubeslice) MinTTL

func (ks *Kubeslice) MinTTL(state request.Request) uint32

TODO fill later

func (Kubeslice) Name

func (e Kubeslice) Name() string

Name implements the Handler interface.

func (Kubeslice) Ready

func (ks Kubeslice) Ready() bool

Ready implements the ready.Readiness interface, once this flips to true CoreDNS assumes this plugin is ready for queries; it is not checked again.

func (*Kubeslice) Records

func (ks *Kubeslice) Records(ctx context.Context, state request.Request, exact bool) ([]msg.Service, error)

TODO fill later

func (*Kubeslice) Reverse

func (ks *Kubeslice) Reverse(ctx context.Context, state request.Request, exact bool, opt plugin.Options) ([]msg.Service, error)

TODO fill later

func (*Kubeslice) Serial

func (ks *Kubeslice) Serial(state request.Request) uint32

TODO fill later

func (Kubeslice) ServeDNS

func (ks Kubeslice) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)

ServeDNS implements the plugin.Handler interface.

func (*Kubeslice) Services

func (ks *Kubeslice) Services(ctx context.Context, state request.Request, exact bool, opt plugin.Options) ([]msg.Service, error)

type ServiceImportReconciler

type ServiceImportReconciler struct {
	client.Client
	EndpointsCache dnsCache.EndpointsCache
}

ReplicaSetReconciler is a simple ControllerManagedBy example implementation.

func (*ServiceImportReconciler) InjectClient

func (r *ServiceImportReconciler) InjectClient(c client.Client) error

func (*ServiceImportReconciler) Reconcile

Watch the ServiceImport changes and adjust dns cache accordingly

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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