mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
0f9fe30c08
* feat: allow overriding ca and tls secret names Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
15 lines
344 B
Go
15 lines
344 B
Go
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),
|
|
}
|
|
}
|