Skip to content

Commit

Permalink
remove unneeded comments
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Sep 6, 2024
1 parent 2d58103 commit 68a33fc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/kotsadm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

Expand All @@ -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)

Expand Down

0 comments on commit 68a33fc

Please sign in to comment.