mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #71636 from tao12345666333/rm-duplicate-word
remove duplicate word
This commit is contained in:
commit
300b1bab8b
@ -165,12 +165,12 @@ func RunServer(
|
|||||||
type NamedTLSCert struct {
|
type NamedTLSCert struct {
|
||||||
TLSCert tls.Certificate
|
TLSCert tls.Certificate
|
||||||
|
|
||||||
// names is a list of domain patterns: fully qualified domain names, possibly prefixed with
|
// Names is a list of domain patterns: fully qualified domain names, possibly prefixed with
|
||||||
// wildcard segments.
|
// wildcard segments.
|
||||||
Names []string
|
Names []string
|
||||||
}
|
}
|
||||||
|
|
||||||
// getNamedCertificateMap returns a map of *tls.Certificate by name. It's is
|
// GetNamedCertificateMap returns a map of *tls.Certificate by name. It's
|
||||||
// suitable for use in tls.Config#NamedCertificates. Returns an error if any of the certs
|
// suitable for use in tls.Config#NamedCertificates. Returns an error if any of the certs
|
||||||
// cannot be loaded. Returns nil if len(certs) == 0
|
// cannot be loaded. Returns nil if len(certs) == 0
|
||||||
func GetNamedCertificateMap(certs []NamedTLSCert) (map[string]*tls.Certificate, error) {
|
func GetNamedCertificateMap(certs []NamedTLSCert) (map[string]*tls.Certificate, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user