Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #12 from amazeeio/fix-dest-to-source
Browse files Browse the repository at this point in the history
Use the correct namespace for checking secrets and services
  • Loading branch information
shreddedbacon authored Dec 20, 2020
2 parents 0742c13 + f462b4b commit 4f8f3f1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions controllers/ingress_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (r *HostMigrationReconciler) KubernetesHandler(ctx context.Context, opLog l
&dioscuri,
ingressDestinationToSource,
migrateDestinationToSource,
destinationNamespace,
sourceNamespace,
); err != nil {
r.updateKubernetesStatusCondition(ctx,
&dioscuri,
Expand Down Expand Up @@ -180,7 +180,7 @@ func (r *HostMigrationReconciler) KubernetesHandler(ctx context.Context, opLog l
if err := r.checkSecrets(ctx,
&dioscuri,
ingressDestinationToSource,
destinationNamespace,
sourceNamespace,
); err != nil {
r.updateKubernetesStatusCondition(ctx,
&dioscuri,
Expand Down
4 changes: 2 additions & 2 deletions controllers/ingressmigrate_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (r *IngressMigrateReconciler) Reconcile(req ctrl.Request) (ctrl.Result, err
&dioscuri,
ingressDestinationToSource,
migrateDestinationToSource,
destinationNamespace,
sourceNamespace,
); err != nil {
r.updateStatusCondition(ctx,
&dioscuri,
Expand Down Expand Up @@ -241,7 +241,7 @@ func (r *IngressMigrateReconciler) Reconcile(req ctrl.Request) (ctrl.Result, err
if err := r.checkSecrets(ctx,
&dioscuri,
ingressDestinationToSource,
destinationNamespace,
sourceNamespace,
); err != nil {
r.updateStatusCondition(ctx,
&dioscuri,
Expand Down
2 changes: 1 addition & 1 deletion controllers/route_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (r *HostMigrationReconciler) OpenshiftHandler(ctx context.Context, opLog lo
migrateSourceToDestination := &routev1.RouteList{}
r.checkServices(&dioscuri, routesSourceToDestination, migrateSourceToDestination, destinationNamespace)
migrateDestinationToSource := &routev1.RouteList{}
r.checkServices(&dioscuri, routesDestinationToSource, migrateDestinationToSource, destinationNamespace)
r.checkServices(&dioscuri, routesDestinationToSource, migrateDestinationToSource, sourceNamespace)
// END CHECKING SERVICES SECTION
// START MIGRATING ROUTES SECTION
// actually start the migrations here
Expand Down
2 changes: 1 addition & 1 deletion controllers/routemigrate_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (r *RouteMigrateReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error
migrateSourceToDestination := &routev1.RouteList{}
r.checkServices(&dioscuri, routesSourceToDestination, migrateSourceToDestination, destinationNamespace)
migrateDestinationToSource := &routev1.RouteList{}
r.checkServices(&dioscuri, routesDestinationToSource, migrateDestinationToSource, destinationNamespace)
r.checkServices(&dioscuri, routesDestinationToSource, migrateDestinationToSource, sourceNamespace)
// END CHECKING SERVICES SECTION
// START MIGRATING ROUTES SECTION
// actually start the migrations here
Expand Down

0 comments on commit 4f8f3f1

Please sign in to comment.