func buildCertificateDirectories(c *EtcdCluster) []string {
	tracked := make(map[string]bool, 0)

	for _, x := range []string{c.TLSCA, c.TLSCert, c.TLSKey, c.PeerCA, c.PeerKey, c.PeerKey} {
		if x == "" || tracked[filepath.Dir(x)] == true {
			continue
		}
		tracked[filepath.Dir(x)] = true
	}

	var list []string
	for k := range tracked {
		list = append(list, k)
	}

	return list
}
// buildCertificateDirectories generates a list of the base directories which the certificates are located
// so we can map in as volumes. They will probably all be placed into /src/kubernetes, but just to make it
// generic.
buildCertificateDirectories generates a list of the base directories which the certificates are located
so we can map in as volumes. They will probably all be placed into /src/kubernetes, but just to make it
generic.
// buildCertificateDirectories generates a list of the base directories which the certificates are located // so we can map in as volumes . They will probably all be placed into / src / kubernetes but just to make it // generic .
func buildCertificateDirectories(c *EtcdCluster) []string {
	tracked := make(map[string]bool, 0)
	for _, x := range []string{c.TLSCA, c.TLSCert, c.TLSKey, c.PeerCA, c.PeerKey, c.PeerKey} {
		if x == "" || tracked[filepath.Dir(x)] == true {
			continue
		}
		tracked[filepath.Dir(x)] = true
	}
	var list []string
	for k := range tracked {
		list = append(list, k)
	}
	return list
}
func buildCertificateDirectories ( c * EtcdCluster ) [ ] string { tracked := make ( map [ string ] bool , 0 ) for _ , x := range [ ] string { c . TLSCA , c . TLSCert , c . TLSKey , c . PeerCA , c . PeerKey , c . PeerKey } { if x == " " || tracked [ filepath . Dir ( x ) ] == true { continue } tracked [ filepath . Dir ( x ) ] = true } var list [ ] string for k := range tracked { list = append ( list , k ) } return list }
buildCertificateDirectories generates a list of the base directories which the certificates are located
so we can map in as volumes.
buildCertificateDirectories generates a list of the base directories which the certificates are located so we can map in as volumes .