Skip to content

Commit

Permalink
Update condition to avoid upgrade on reoncile
Browse files Browse the repository at this point in the history
  • Loading branch information
VaishnaviHire committed Apr 17, 2024
1 parent 5760b2a commit b98201c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (r *DataScienceClusterReconciler) Reconcile(ctx context.Context, req ctrl.R
return ctrl.Result{}, nil
}
// Check preconditions if this is an upgrade
if instance.Status.Phase == status.PhaseReady {
if instance.Status.Phase == status.PhaseReady || instance.Status.Phase == status.PhaseError {
// Check for existence of Argo Workflows if DSP is
if instance.Spec.Components.DataSciencePipelines.ManagementState == v1.Managed {
if err := datasciencepipelines.UnmanagedArgoWorkFlowExists(ctx, r.Client); err != nil {
Expand Down
24 changes: 12 additions & 12 deletions get_all_manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ MANIFEST_ORG="red-hat-data-services"
# component: notebook, dsp, kserve, dashbaord, cf/ray, trustyai, modelmesh.
# in the format of "repo-org:repo-name:branch-name:source-folder:target-folder".
declare -A COMPONENT_MANIFESTS=(
["codeflare"]="red-hat-data-services:codeflare-operator:rhoai-2.8:config:codeflare"
["ray"]="red-hat-data-services:kuberay:rhoai-2.8:ray-operator/config:ray"
["kueue"]="red-hat-data-services:kueue:rhoai-2.8:config:kueue"
["data-science-pipelines-operator"]="red-hat-data-services:data-science-pipelines-operator:rhoai-2.8:config:data-science-pipelines-operator"
["kf-notebook-controller"]="red-hat-data-services:kubeflow:rhoai-2.8:components/notebook-controller/config:odh-notebook-controller/kf-notebook-controller"
["odh-notebook-controller"]="red-hat-data-services:kubeflow:rhoai-2.8:components/odh-notebook-controller/config:odh-notebook-controller/odh-notebook-controller"
["notebooks"]="red-hat-data-services:notebooks:rhoai-2.8:manifests:/jupyterhub/notebooks"
["trustyai"]="red-hat-data-services:trustyai-service-operator:rhoai-2.8:config:trustyai-service-operator"
["model-mesh"]="red-hat-data-services:modelmesh-serving:rhoai-2.8:config:model-mesh"
["odh-model-controller"]="red-hat-data-services:odh-model-controller:rhoai-2.8:config:odh-model-controller"
["kserve"]="red-hat-data-services:kserve:rhoai-2.8:config:kserve"
["odh-dashboard"]="red-hat-data-services:odh-dashboard:rhoai-2.8:manifests:dashboard"
["codeflare"]="red-hat-data-services:codeflare-operator:rhoai-2.9:config:codeflare"
["ray"]="red-hat-data-services:kuberay:rhoai-2.9:ray-operator/config:ray"
["kueue"]="red-hat-data-services:kueue:rhoai-2.9:config:kueue"
["data-science-pipelines-operator"]="red-hat-data-services:data-science-pipelines-operator:rhoai-2.9:config:data-science-pipelines-operator"
["kf-notebook-controller"]="red-hat-data-services:kubeflow:rhoai-2.9:components/notebook-controller/config:odh-notebook-controller/kf-notebook-controller"
["odh-notebook-controller"]="red-hat-data-services:kubeflow:rhoai-2.9:components/odh-notebook-controller/config:odh-notebook-controller/odh-notebook-controller"
["notebooks"]="red-hat-data-services:notebooks:rhoai-2.9:manifests:/jupyterhub/notebooks"
["trustyai"]="red-hat-data-services:trustyai-service-operator:rhoai-2.9:config:trustyai-service-operator"
["model-mesh"]="red-hat-data-services:modelmesh-serving:rhoai-2.9:config:model-mesh"
["odh-model-controller"]="red-hat-data-services:odh-model-controller:rhoai-2.9:config:odh-model-controller"
["kserve"]="red-hat-data-services:kserve:rhoai-2.9:config:kserve"
["odh-dashboard"]="red-hat-data-services:odh-dashboard:rhoai-2.9:manifests:dashboard"
)

# Allow overwriting repo using flags component=repo
Expand Down

0 comments on commit b98201c

Please sign in to comment.