Skip to content

Commit

Permalink
feat: re-enable TrustyAI in downstream but set to removed (T.P)
Browse files Browse the repository at this point in the history
Revert "Remove Trustyai installation in downstream"
set version to 2.11.0

This reverts commit 9392209.

Signed-off-by: Wen Zhou <[email protected]>
  • Loading branch information
zdtsw authored and openshift-merge-bot[bot] committed Jun 17, 2024
1 parent c5e918e commit 338dcb6
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 78 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# To re-generate a bundle for another specific version without changing the standard setup, you can:
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
VERSION ?= 2.9.0
VERSION ?= 2.11.0
# IMAGE_TAG_BASE defines the opendatahub.io namespace and part of the image name for remote images.
# This variable is used to construct full image tags for bundle and catalog images.
#
Expand Down
12 changes: 10 additions & 2 deletions bundle/manifests/rhods-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ metadata:
"trainingoperator": {
"managementState": "Removed"
},
"trustyai": {
"managementState": "Removed"
},
"workbenches": {
"managementState": "Managed"
}
Expand Down Expand Up @@ -157,14 +160,17 @@ metadata:
"trainingoperator": {
"managementState": "Removed"
},
"trustyai": {
"managementState": "Removed"
}
}
}
}
operators.operatorframework.io/builder: operator-sdk-v1.24.1
operators.operatorframework.io/internal-objects: '[dscinitialization.opendatahub.io]'
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/red-hat-data-services/rhods-operator
name: rhods-operator.v2.9.0
name: rhods-operator.v2.11.0
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -238,6 +244,7 @@ spec:
* Ability to use other runtimes for serving
* Model Monitoring
* Distributed workloads (KubeRay, CodeFlare, Kueue, Training Operator)
* XAI explanations of predictive models (TrustyAI)
displayName: Red Hat OpenShift AI
ic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OCw4My41YzAsMTYuMiwxMy4zLDI4LjgsMzAuMywyOC44YzkuNCwwLDE2LjItMi41LDIzLjItOC40bC0xMS4zLTEwCgkJCWMtMi42LDIuNy02LjUsNC4yLTExLjEsNC4yYy02LjMsMC0xMS41LTMuNS0xMy43LTguOGgzOS42Vjg1YzAtMTcuNy0xMS45LTMwLjQtMjguMS0zMC40QzMwNS42LDU0LjcsMjkyLjgsNjcuMywyOTIuOCw4My41CgkJCSBNMjYzLjUsNTMuMWM2LDAsOS40LDMuOCw5LjQsOC4zcy0zLjQsOC4zLTkuNCw4LjNoLTE3LjlWNTMuMUgyNjMuNXogTTIyNy41LDExMS4yaDE4LjFWODQuNGgxMy44bDEzLjksMjYuOGgyMC4ybC0xNi4yLTI5LjQKCQkJYzguNy0zLjgsMTMuOS0xMS43LDEzLjktMjAuN2MwLTEzLjMtMTAuNC0yMy41LTI2LTIzLjVoLTM3LjdWMTExLjJ6Ii8+Cgk8L2c+CjwvZz4KPC9zdmc+Cg==
Expand Down Expand Up @@ -1766,10 +1773,11 @@ spec:
- training
- kserve
- distributed-workloads
- trustyai
links:
- name: Red Hat OpenShift AI
url: https://www.redhat.com/en/technologies/cloud-computing/openshift/openshift-ai
minKubeVersion: 1.22.0
provider:
name: Red Hat
version: 2.9.0
version: 2.11.0
2 changes: 2 additions & 0 deletions components/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ func (c *Component) UpdatePrometheusConfig(_ client.Client, enable bool, compone
TrainingOperatorARules string `yaml:"trainingoperator-alerting.rules"`
WorkbenchesRRules string `yaml:"workbenches-recording.rules"`
WorkbenchesARules string `yaml:"workbenches-alerting.rules"`
TrustyAIRRules string `yaml:"trustyai-recording.rules"`
TrustyAIARules string `yaml:"trustyai-alerting.rules"`
KserveRRules string `yaml:"kserve-recording.rules"`
KserveARules string `yaml:"kserve-alerting.rules"`
} `yaml:"data"`
Expand Down
8 changes: 0 additions & 8 deletions components/trustyai/trustyai.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ var (
var _ components.ComponentInterface = (*TrustyAI)(nil)

// TrustyAI struct holds the configuration for the TrustyAI component.
// ## DEPRECATED ## : Installation of TrustyAI operator is deprecated in RHOAI.
// If TrustyAI operator is installed, it will be removed
// Changes in managemenstState are not supported.
// +kubebuilder:object:generate=true
type TrustyAI struct {
components.Component `json:""`
Expand Down Expand Up @@ -72,11 +69,6 @@ func (t *TrustyAI) ReconcileComponent(ctx context.Context, cli client.Client, lo
return err
}

// Return when platform is RHOAI
if platform == cluster.SelfManagedRhods || platform == cluster.ManagedRhods {
enabled = false
}

if enabled {
if t.DevFlags != nil {
// Download manifests and update paths
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ metadata:
"trainingoperator": {
"managementState": "Removed"
},
"trustyai": {
"managementState": "Removed"
}
}
}
}
Expand Down Expand Up @@ -151,6 +154,7 @@ spec:
- training
- kserve
- distributed-workloads
- trustyai
links:
- name: Red Hat OpenShift AI
url: https://www.redhat.com/en/technologies/cloud-computing/openshift/openshift-ai
Expand Down
3 changes: 2 additions & 1 deletion config/manifests/description-patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ spec:
* Model Serving using ModelMesh and Kserve.
* Ability to use other runtimes for serving
* Model Monitoring
* Distributed workloads (KubeRay, CodeFlare, Kueue)
* Distributed workloads (KubeRay, CodeFlare, Kueue, Training Operator)
* XAI explanations of predictive models (TrustyAI)
2 changes: 2 additions & 0 deletions config/samples/datasciencecluster_v1_datasciencecluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ spec:
managementState: "Managed"
workbenches:
managementState: "Managed"
trustyai:
managementState: "Removed"
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import (
dsci "github.com/opendatahub-io/opendatahub-operator/v2/apis/dscinitialization/v1"
"github.com/opendatahub-io/opendatahub-operator/v2/components"
"github.com/opendatahub-io/opendatahub-operator/v2/components/datasciencepipelines"
"github.com/opendatahub-io/opendatahub-operator/v2/components/trustyai"
"github.com/opendatahub-io/opendatahub-operator/v2/controllers/status"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/cluster"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/metadata/labels"
Expand Down Expand Up @@ -349,10 +348,6 @@ func (r *DataScienceClusterReconciler) reconcileSubComponent(ctx context.Context
}
saved.Status.InstalledComponents[componentName] = enabled
switch {
case enabled && componentName == trustyai.ComponentName:
saved.Status.InstalledComponents[componentName] = false
status.SetComponentCondition(&saved.Status.Conditions, componentName, status.ReconcileCompleted,
"TrustyAI is deprecated. Setting this field to Managed will not result in the deployment of TrustyAI.", corev1.ConditionTrue)
case enabled:
status.SetComponentCondition(&saved.Status.Conditions, componentName, status.ReconcileCompleted, "Component reconciled successfully", corev1.ConditionTrue)
default:
Expand Down
34 changes: 8 additions & 26 deletions controllers/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
corev1 "k8s.io/api/core/v1"

"github.com/opendatahub-io/opendatahub-operator/v2/components/datasciencepipelines"
"github.com/opendatahub-io/opendatahub-operator/v2/components/trustyai"
)

// These constants represent the overall Phase as used by .Status.Phase.
Expand Down Expand Up @@ -197,35 +196,18 @@ func SetCompleteCondition(conditions *[]conditionsv1.Condition, reason string, m
// SetComponentCondition appends Condition Type with const ReadySuffix for given component
// when component finished reconcile.
func SetComponentCondition(conditions *[]conditionsv1.Condition, component string, reason string, message string, status corev1.ConditionStatus) {
var condtype string
if component == trustyai.ComponentName {
condtype = component + "Deprecated"
conditionsv1.SetStatusCondition(conditions, conditionsv1.Condition{
Type: conditionsv1.ConditionType(condtype),
Status: corev1.ConditionTrue,
Reason: reason,
Message: message,
})
} else {
condtype = component + ReadySuffix

conditionsv1.SetStatusCondition(conditions, conditionsv1.Condition{
Type: conditionsv1.ConditionType(condtype),
Status: status,
Reason: reason,
Message: message,
})
}
condtype := component + ReadySuffix
conditionsv1.SetStatusCondition(conditions, conditionsv1.Condition{
Type: conditionsv1.ConditionType(condtype),
Status: status,
Reason: reason,
Message: message,
})
}

// RemoveComponentCondition remove Condition of giving component.
func RemoveComponentCondition(conditions *[]conditionsv1.Condition, component string) {
var condType string
if component == trustyai.ComponentName {
condType = component + "Deprecated"
} else {
condType = component + ReadySuffix
}
condType := component + ReadySuffix
conditionsv1.RemoveStatusCondition(conditions, conditionsv1.ConditionType(condType))
}

Expand Down
3 changes: 0 additions & 3 deletions docs/api-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,6 @@ Package trustyai provides utility functions to config TrustyAI, a bias/fairness


TrustyAI struct holds the configuration for the TrustyAI component.
## DEPRECATED ## : Installation of TrustyAI operator is deprecated in RHOAI.
If TrustyAI operator is installed, it will be removed
Changes in managemenstState are not supported.



Expand Down
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,6 @@ func main() {
}
}

// Remove TrustyAI for RHOAI
// TODO: Remove below check when trustyai manifests are removed in midstream
if err = upgrade.RemoveDeprecatedTrustyAI(setupClient, platform); err != nil {
setupLog.Error(err, "unable to remove trustyai from DSC")
}

var cleanExistingResourceFunc manager.RunnableFunc = func(ctx context.Context) error {
if err = upgrade.CleanupExistingResource(ctx, setupClient, platform, dscApplicationsNamespace, dscMonitoringNamespace); err != nil {
setupLog.Error(err, "unable to perform cleanup")
Expand Down
29 changes: 4 additions & 25 deletions pkg/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import (
"github.com/opendatahub-io/opendatahub-operator/v2/components/modelmeshserving"
"github.com/opendatahub-io/opendatahub-operator/v2/components/ray"
"github.com/opendatahub-io/opendatahub-operator/v2/components/trainingoperator"
"github.com/opendatahub-io/opendatahub-operator/v2/components/trustyai"
"github.com/opendatahub-io/opendatahub-operator/v2/components/workbenches"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/cluster"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/cluster/gvk"
Expand Down Expand Up @@ -91,6 +92,9 @@ func CreateDefaultDSC(ctx context.Context, cli client.Client) error {
TrainingOperator: trainingoperator.TrainingOperator{
Component: components.Component{ManagementState: operatorv1.Removed},
},
TrustyAI: trustyai.TrustyAI{
Component: components.Component{ManagementState: operatorv1.Removed},
},
},
},
}
Expand Down Expand Up @@ -427,31 +431,6 @@ func removOdhApplicationsCR(ctx context.Context, cli client.Client, gvk schema.G
return nil
}

func RemoveDeprecatedTrustyAI(cli client.Client, platform cluster.Platform) error {
existingDSCList := &dsc.DataScienceClusterList{}
err := cli.List(context.TODO(), existingDSCList)
if err != nil {
return fmt.Errorf("error getting existing DSC: %w", err)
}

switch len(existingDSCList.Items) {
case 0:
return nil
case 1:
existingDSC := existingDSCList.Items[0]
if platform == cluster.ManagedRhods || platform == cluster.SelfManagedRhods {
if existingDSC.Spec.Components.TrustyAI.ManagementState != operatorv1.Removed {
existingDSC.Spec.Components.TrustyAI.ManagementState = operatorv1.Removed
err := cli.Update(context.TODO(), &existingDSC)
if err != nil {
return fmt.Errorf("error updating TrustyAI component: %w", err)
}
}
}
}
return nil
}

func RemoveLabel(cli client.Client, objectName string, labelKey string) error {
foundNamespace := &corev1.Namespace{}
if err := cli.Get(context.TODO(), client.ObjectKey{Name: objectName}, foundNamespace); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func setupDSCInstance() *dsc.DataScienceCluster {
},
TrustyAI: trustyai.TrustyAI{
Component: components.Component{
ManagementState: operatorv1.Managed,
ManagementState: operatorv1.Removed,
},
},
TrainingOperator: trainingoperator.TrainingOperator{
Expand Down

0 comments on commit 338dcb6

Please sign in to comment.