Skip to content

Commit

Permalink
Update api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
VaishnaviHire authored and openshift-merge-bot[bot] committed Sep 18, 2024
1 parent 8c56301 commit 78d42fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 0 additions & 2 deletions docs/DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ To deploy ODH components seamlessly, ODH operator will watch two CRDs:
name: knative-serving
modelmeshserving:
managementState: Managed
modelregistry:
managementState: Managed
ray:
managementState: Managed
kueue:
Expand Down
4 changes: 2 additions & 2 deletions docs/upgrade-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ spec:
kueue:
managementState: Managed
trainingoperator:
managementState: Managed
managementState: Removed
workbenches:
managementState: Managed
trustyai:
managementState: Managed
managementState: Removed
EOF
```
10 changes: 4 additions & 6 deletions tests/e2e/creation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (tc *testContext) requireInstalled(t *testing.T, gvk schema.GroupVersionKin
list.SetGroupVersionKind(gvk)

err := tc.customClient.List(tc.ctx, list)
require.NotEmptyf(t, err, "Could not get %s list", gvk.Kind)
require.NoErrorf(t, err, "Could not get %s list", gvk.Kind)
require.NotEmptyf(t, list.Items, "%s has not been installed", gvk.Kind)
}

Expand Down Expand Up @@ -383,7 +383,7 @@ func (tc *testContext) testOwnerrefrences() error {
// Test Dashboard component
if tc.testDsc.Spec.Components.Dashboard.ManagementState == operatorv1.Managed {
appDeployments, err := tc.kubeClient.AppsV1().Deployments(tc.applicationsNamespace).List(tc.ctx, metav1.ListOptions{
LabelSelector: labels.ODH.Component(tc.testDsc.Spec.Components.Dashboard.GetComponentName()),
LabelSelector: labels.ODH.Component("rhods-dashboard"),
})
if err != nil {
return fmt.Errorf("error listing component deployments %w", err)
Expand Down Expand Up @@ -439,8 +439,7 @@ func (tc *testContext) testDefaultCertsAvailable() error {
func (tc *testContext) testUpdateComponentReconcile() error {
// Test Updating Dashboard Replicas
appDeployments, err := tc.kubeClient.AppsV1().Deployments(tc.applicationsNamespace).List(tc.ctx, metav1.ListOptions{

LabelSelector: labels.ODH.Component(tc.testDsc.Spec.Components.Dashboard.GetComponentName()),
LabelSelector: labels.ODH.Component("rhods-dashboard"),
})
if err != nil {
return err
Expand Down Expand Up @@ -491,8 +490,7 @@ func (tc *testContext) testUpdateDSCComponentEnabled() error {

if tc.testDsc.Spec.Components.Dashboard.ManagementState == operatorv1.Managed {
appDeployments, err := tc.kubeClient.AppsV1().Deployments(tc.applicationsNamespace).List(tc.ctx, metav1.ListOptions{

LabelSelector: labels.ODH.Component(tc.testDsc.Spec.Components.Dashboard.GetComponentName()),
LabelSelector: labels.ODH.Component("rhods-dashboard"),
})
if err != nil {
return fmt.Errorf("error getting enabled component %v", "rhods-dashboard")
Expand Down

0 comments on commit 78d42fd

Please sign in to comment.