1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-05 15:37:19 +00:00
kyverno/pkg/config/tls.go

16 lines
344 B
Go
Raw Permalink Normal View History

package config
import "fmt"
func InClusterServiceName(commonName string, namespace string) string {
return commonName + "." + namespace + ".svc"
}
func DnsNames(commonName string, namespace string) []string {
return []string{
commonName,
fmt.Sprintf("%s.%s", commonName, namespace),
InClusterServiceName(commonName, namespace),
}
}