Apply restart label on generated bosh-dns deployment
@@ -86,7 +86,6 @@ func (dns *BoshDomainNameService) CorefileConfigMap(namespace string) (corev1.Co
Name: appName,
Namespace: namespace,
Labels: map[string]string{"app": appName},
- Annotations: map[string]string{annotationRestartOnUpdate: "true"},
},
}
@@ -118,6 +117,7 @@ func (dns *BoshDomainNameService) Deployment(namespace string) appsv1.Deployment
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: map[string]string{"app": appName},
+ Annotations: map[string]string{annotationRestartOnUpdate: "true"},
},
Spec: corev1.PodSpec{
Containers: []corev1.Container{
