Skip to content

Commit

Permalink
Remove StatefulSet reconciller
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Hoppe committed May 13, 2020
1 parent 7c3ea06 commit 1af060b
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions pkg/controller/keycloak/keycloak_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,18 @@ func (i *KeycloakReconciler) getKeycloakDeploymentOrRHSSODesiredState(clusterSta
}
}

deploymentReconciled := model.KeycloakDeploymentReconciled(cr, clusterState.KeycloakDeployment, clusterState.DatabaseSecret)
if isRHSSO {
deploymentReconciled = model.RHSSODeploymentReconciled(cr, clusterState.KeycloakDeployment, clusterState.DatabaseSecret)
}
//deploymentReconciled := model.KeycloakDeploymentReconciled(cr, clusterState.KeycloakDeployment, clusterState.DatabaseSecret)
//if isRHSSO {
// deploymentReconciled = model.RHSSODeploymentReconciled(cr, clusterState.KeycloakDeployment, clusterState.DatabaseSecret)
//}

return common.GenericUpdateAction{
Ref: deploymentReconciled,
Msg: "Update " + deploymentName + " Deployment (StatefulSet)",
}

//return common.GenericUpdateAction{
// Ref: deploymentReconciled,
// Msg: "Update " + deploymentName + " Deployment (StatefulSet)",
//}

return nil
}

func (i *KeycloakReconciler) getKeycloakRouteDesiredState(clusterState *common.ClusterState, cr *kc.Keycloak) common.ClusterAction {
Expand Down

0 comments on commit 1af060b

Please sign in to comment.