|
6 | 6 | "reflect" |
7 | 7 |
|
8 | 8 | "github.com/openstack-k8s-operators/lib-common/modules/certmanager" |
| 9 | + "github.com/openstack-k8s-operators/lib-common/modules/common/backup" |
9 | 10 | "github.com/openstack-k8s-operators/lib-common/modules/common/clusterdns" |
10 | 11 | "github.com/openstack-k8s-operators/lib-common/modules/common/condition" |
11 | 12 | "github.com/openstack-k8s-operators/lib-common/modules/common/helper" |
@@ -180,7 +181,7 @@ func ReconcileOVNDbClusters(ctx context.Context, instance *corev1beta1.OpenStack |
180 | 181 | certmgrv1.UsageServerAuth, |
181 | 182 | certmgrv1.UsageClientAuth, |
182 | 183 | }, |
183 | | - Labels: map[string]string{serviceCertSelector: ""}, |
| 184 | + Labels: map[string]string{serviceCertSelector: "", backup.BackupRestoreLabel: "false"}, |
184 | 185 | } |
185 | 186 | if instance.Spec.TLS.PodLevel.Ovn.Cert.Duration != nil { |
186 | 187 | certRequest.Duration = &instance.Spec.TLS.PodLevel.Ovn.Cert.Duration.Duration |
@@ -320,7 +321,7 @@ func ReconcileOVNNorthd(ctx context.Context, instance *corev1beta1.OpenStackCont |
320 | 321 | certmgrv1.UsageServerAuth, |
321 | 322 | certmgrv1.UsageClientAuth, |
322 | 323 | }, |
323 | | - Labels: map[string]string{serviceCertSelector: ""}, |
| 324 | + Labels: map[string]string{serviceCertSelector: "", backup.BackupRestoreLabel: "false"}, |
324 | 325 | } |
325 | 326 | if instance.Spec.TLS.PodLevel.Ovn.Cert.Duration != nil { |
326 | 327 | certRequest.Duration = &instance.Spec.TLS.PodLevel.Ovn.Cert.Duration.Duration |
@@ -464,7 +465,7 @@ func ReconcileOVNController(ctx context.Context, instance *corev1beta1.OpenStack |
464 | 465 | certmgrv1.UsageServerAuth, |
465 | 466 | certmgrv1.UsageClientAuth, |
466 | 467 | }, |
467 | | - Labels: map[string]string{serviceCertSelector: ""}, |
| 468 | + Labels: map[string]string{serviceCertSelector: "", backup.BackupRestoreLabel: "false"}, |
468 | 469 | } |
469 | 470 | if instance.Spec.TLS.PodLevel.Ovn.Cert.Duration != nil { |
470 | 471 | certRequest.Duration = &instance.Spec.TLS.PodLevel.Ovn.Cert.Duration.Duration |
@@ -607,7 +608,7 @@ func EnsureOVNMetricsCert(ctx context.Context, instance *corev1beta1.OpenStackCo |
607 | 608 | certmgrv1.UsageServerAuth, |
608 | 609 | certmgrv1.UsageClientAuth, |
609 | 610 | }, |
610 | | - Labels: map[string]string{serviceCertSelector: ""}, |
| 611 | + Labels: map[string]string{serviceCertSelector: "", backup.BackupRestoreLabel: "false"}, |
611 | 612 | } |
612 | 613 |
|
613 | 614 | // Apply certificate duration settings if configured |
|
0 commit comments