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.
Click to show internal directories.
Click to hide internal directories.