ads: Remove TODO and improve log message
@@ -36,7 +36,6 @@ import (
)
const (
- // TODO(draychev): pass these via CLI param (https://github.com/openservicemesh/osm/issues/542)
serverType = "ADS"
defaultServiceCertValidityMinutes = 60 // 1 hour
caBundleSecretNameCLIParam = "ca-bundle-secret-name"
@@ -123,9 +122,8 @@ func main() {
kubeConfig, err := clientcmd.BuildConfigFromFlags("", kubeConfigFile)
smiKubeConfig := &kubeConfig
-
if err != nil {
- log.Fatal().Err(err).Msgf("[%s] Failed to create kube config (kubeconfig=%s)", serverType, kubeConfigFile)
+ log.Fatal().Err(err).Msgf("Error creating kube config (kubeconfig=%s)", kubeConfigFile)
}
kubeClient := kubernetes.NewForConfigOrDie(kubeConfig)
