func (ad *ADConfig) defaultAD() {
	if ad.KubeContainerNames == nil {
		ad.KubeContainerNames = []string{}
	}

	if ad.KubeAnnotations == nil {
		ad.KubeAnnotations = &InclExcl{
			Excl: map[string]string{PrometheusScrapeAnnotation: "false"},
			Incl: map[string]string{PrometheusScrapeAnnotation: "true"},
		}
		return
	}

	if ad.KubeAnnotations.Excl == nil {
		ad.KubeAnnotations.Excl = map[string]string{PrometheusScrapeAnnotation: "false"}
	}

	if ad.KubeAnnotations.Incl == nil {
		ad.KubeAnnotations.Incl = map[string]string{PrometheusScrapeAnnotation: "true"}
	}
}
// defaultAD defaults the values of the autodiscovery structure
defaultAD defaults the values of the autodiscovery structure
// defaultAD defaults the values of the autodiscovery structure
func (ad *ADConfig) defaultAD() {
	if ad.KubeContainerNames == nil {
		ad.KubeContainerNames = []string{}
	}
	if ad.KubeAnnotations == nil {
		ad.KubeAnnotations = &InclExcl{
			Excl: map[string]string{PrometheusScrapeAnnotation: "false"},
			Incl: map[string]string{PrometheusScrapeAnnotation: "true"},
		}
		return
	}
	if ad.KubeAnnotations.Excl == nil {
		ad.KubeAnnotations.Excl = map[string]string{PrometheusScrapeAnnotation: "false"}
	}
	if ad.KubeAnnotations.Incl == nil {
		ad.KubeAnnotations.Incl = map[string]string{PrometheusScrapeAnnotation: "true"}
	}
}
func ( ad * ADConfig ) defaultAD ( ) { if ad . KubeContainerNames == nil { ad . KubeContainerNames = [ ] string { } } if ad . KubeAnnotations == nil { ad . KubeAnnotations = & InclExcl { Excl : map [ string ] string { PrometheusScrapeAnnotation : " " } , Incl : map [ string ] string { PrometheusScrapeAnnotation : " " } , } return } if ad . KubeAnnotations . Excl == nil { ad . KubeAnnotations . Excl = map [ string ] string { PrometheusScrapeAnnotation : " " } } if ad . KubeAnnotations . Incl == nil { ad . KubeAnnotations . Incl = map [ string ] string { PrometheusScrapeAnnotation : " " } } }
defaultAD defaults the values of the autodiscovery structure
defaultAD defaults the values of the autodiscovery structure