fix: migration for OCP 3.11 (#1231)

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
pull/1232/head
Anatolii Bazko 2021-12-07 10:24:03 +02:00 committed by GitHub
parent aa46157554
commit 19ea8ebba4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -231,7 +231,6 @@ func addPartOfLabelForObjectsWithInstanceCheLabel(ctx *deploy.DeployContext) err
&corev1.PodList{},
&batchv1.JobList{},
&corev1.ServiceList{},
&networkingv1.IngressList{},
&corev1.SecretList{},
&corev1.ConfigMapList{},
&corev1.ServiceAccountList{},
@ -243,6 +242,8 @@ func addPartOfLabelForObjectsWithInstanceCheLabel(ctx *deploy.DeployContext) err
}
if util.IsOpenShift {
kindsToMigrate = append(kindsToMigrate, &routev1.RouteList{})
} else {
kindsToMigrate = append(kindsToMigrate, &networkingv1.IngressList{})
}
for _, listToGet := range kindsToMigrate {