coredns

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PeriodSeconds    time.Duration
	SuccessThreshold time.Duration
	FailureThreshold time.Duration
	StaleThreshold   time.Duration
}

Config contains config of coredns detector.

type Detector

type Detector struct {
	// contains filtered or unexported fields
}

Detector detects DNS failure and syncs conditions to control plane periodically.

func NewCorednsDetector

func NewCorednsDetector(memberClusterClient kubernetes.Interface, karmadaClient karmada.Interface, informers informers.SharedInformerFactory,
	baselec componentbaseconfig.LeaderElectionConfiguration, cfg *Config, hostName, clusterName string) (*Detector, error)

NewCorednsDetector returns an instance of coredns detector.

func (*Detector) Run

func (d *Detector) Run(ctx context.Context)

Run starts the detector.

Jump to

Keyboard shortcuts

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