diff --git a/pkg/kotsadm/main.go b/pkg/kotsadm/main.go index dfb113a7fb..7ddeb1a42c 100644 --- a/pkg/kotsadm/main.go +++ b/pkg/kotsadm/main.go @@ -791,7 +791,6 @@ func ensureDisasterRecoveryLabels(deployOptions *types.DeployOptions, clientset } for _, pod := range pods.Items { if _, ok := pod.ObjectMeta.Labels[types.BackupLabel]; !ok { - // TODO add additional labels/annotations pod.ObjectMeta.Labels = types.GetKotsadmLabels(pod.ObjectMeta.Labels) // remove existing velero exclude label/annotation (if exists) @@ -813,7 +812,6 @@ func ensureDisasterRecoveryLabels(deployOptions *types.DeployOptions, clientset for _, deployment := range deployments.Items { if _, ok := deployment.ObjectMeta.Labels[types.BackupLabel]; !ok { // ensure labels - // TODO add additional labels/annotations deployment.ObjectMeta.Labels = types.GetKotsadmLabels(deployment.ObjectMeta.Labels) deployment.Spec.Template.ObjectMeta.Labels = types.GetKotsadmLabels(deployment.Spec.Template.ObjectMeta.Labels) @@ -839,7 +837,6 @@ func ensureDisasterRecoveryLabels(deployOptions *types.DeployOptions, clientset for _, statefulSet := range statefulSets.Items { if _, ok := statefulSet.ObjectMeta.Labels[types.BackupLabel]; !ok { // ensure labels - // TODO add additional labels/annotations statefulSet.ObjectMeta.Labels = types.GetKotsadmLabels(statefulSet.ObjectMeta.Labels) statefulSet.Spec.Template.ObjectMeta.Labels = types.GetKotsadmLabels(statefulSet.Spec.Template.ObjectMeta.Labels)