prometheus annotations dropped from router service
oc adm router
creates the router service without the prometheus annotations when
the default cert is not supplied. This is a regression introduced
by PR 10345 (fix for bug 1349144)
Fixes bug
@@ -811,7 +811,7 @@ func RunCmdRouter(f *clientcmd.Factory, cmd *cobra.Command, out, errout io.Write
// When a user does not provide the default cert (pem), create one via a Service annotation
// The secret generated by the service annotaion contains a tls.crt and tls.key
// which ultimately need to be combined into a pem
- t.Annotations = map[string]string{"service.alpha.openshift.io/serving-cert-secret-name": certName}
+ t.Annotations["service.alpha.openshift.io/serving-cert-secret-name"] = certName
}
}
}
