Skip to content

Commit

Permalink
Remove fetch releases action from dashboard & e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ugiordan committed Jan 29, 2025
1 parent 4e0deb2 commit d706b92
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 2 deletions.
2 changes: 0 additions & 2 deletions controllers/components/dashboard/dashboard_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import (
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/actions/deploy"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/actions/gc"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/actions/render/kustomize"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/actions/status/releases"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/actions/updatestatus"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/handlers"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/predicates/component"
Expand Down Expand Up @@ -90,7 +89,6 @@ func (s *componentHandler) NewComponentReconciler(ctx context.Context, mgr ctrl.
// actions
WithAction(initialize).
WithAction(devFlags).
WithAction(releases.NewAction()).
WithAction(configureDependencies).
WithAction(kustomize.NewAction(
kustomize.WithCache(),
Expand Down
4 changes: 4 additions & 0 deletions controllers/components/workbenches/workbenches_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ package workbenches

import (
"context"
"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/actions/status/releases"
odhdeploy "github.com/opendatahub-io/opendatahub-operator/v2/pkg/deploy"
"path"

admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
appsv1 "k8s.io/api/apps/v1"
Expand Down Expand Up @@ -60,6 +63,7 @@ func (s *componentHandler) NewComponentReconciler(ctx context.Context, mgr ctrl.
).
WithAction(initialize).
WithAction(devFlags).
WithAction(releases.NewAction(releases.WithMetadataFilePath(path.Join(odhdeploy.DefaultManifestPath, ComponentName, kfNotebookControllerPath, releases.ComponentMetadataFilename)))).
WithAction(configureDependencies).
WithAction(kustomize.NewAction(
kustomize.WithCache(),
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/codeflare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func codeflareTestSuite(t *testing.T) {
t.Run("Validate operands have OwnerReferences", componentCtx.ValidateOperandsOwnerReferences)
t.Run("Validate update operand resources", componentCtx.ValidateUpdateDeploymentsResources)
t.Run("Validate component disabled", componentCtx.ValidateComponentDisabled)
t.Run("Validate component releases", componentCtx.ValidateComponentReleases)
}

type CodeFlareTestCtx struct {
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/kserve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func kserveTestSuite(t *testing.T) {
t.Run("Validate default certs", componentCtx.validateDefaultCertsAvailable)
t.Run("Validate update operand resources", componentCtx.ValidateUpdateDeploymentsResources)
t.Run("Validate component disabled", componentCtx.ValidateComponentDisabled)
t.Run("Validate component releases", componentCtx.ValidateComponentReleases)
}

type KserveTestCtx struct {
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/kueue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func kueueTestSuite(t *testing.T) {
t.Run("Validate Kueue Dynamically create VAP and VAPB", componentCtx.validateKueueVAPReady)
t.Run("Validate CRDs reinstated", componentCtx.validateCRDReinstated)
t.Run("Validate component disabled", componentCtx.ValidateComponentDisabled)
t.Run("Validate component releases", componentCtx.ValidateComponentReleases)
}

type KueueTestCtx struct {
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/modelmeshserving_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func modelMeshServingTestSuite(t *testing.T) {
t.Run("Validate operands have OwnerReferences", componentCtx.ValidateOperandsOwnerReferences)
t.Run("Validate update operand resources", componentCtx.ValidateUpdateDeploymentsResources)
t.Run("Validate component disabled", componentCtx.ValidateComponentDisabled)
t.Run("Validate component releases", componentCtx.ValidateComponentReleases)
}

type ModelMeshServingTestCtx struct {
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/modelregistry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func modelRegistryTestSuite(t *testing.T) {
t.Run("Validate ServiceMeshMember", componentCtx.validateModelRegistryServiceMeshMember)

t.Run("Validate component disabled", componentCtx.ValidateComponentDisabled)
t.Run("Validate component releases", componentCtx.ValidateComponentReleases)
}

func (c *ModelRegistryTestCtx) validateSpec(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/ray_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func rayTestSuite(t *testing.T) {
t.Run("Validate operands have OwnerReferences", componentCtx.ValidateOperandsOwnerReferences)
t.Run("Validate update operand resources", componentCtx.ValidateUpdateDeploymentsResources)
t.Run("Validate component disabled", componentCtx.ValidateComponentDisabled)
t.Run("Validate component releases", componentCtx.ValidateComponentReleases)
}

type RayTestCtx struct {
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/trainingoperator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func trainingOperatorTestSuite(t *testing.T) {
t.Run("Validate operands have OwnerReferences", componentCtx.ValidateOperandsOwnerReferences)
t.Run("Validate update operand resources", componentCtx.ValidateUpdateDeploymentsResources)
t.Run("Validate component disabled", componentCtx.ValidateComponentDisabled)
t.Run("Validate component releases", componentCtx.ValidateComponentReleases)
}

type TrainingOperatorTestCtx struct {
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/trustyai_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func trustyAITestSuite(t *testing.T) {
t.Run("Validate operands have OwnerReferences", componentCtx.ValidateOperandsOwnerReferences)
t.Run("Validate update operand resources", componentCtx.ValidateUpdateDeploymentsResources)
t.Run("Validate component disabled", componentCtx.ValidateComponentDisabled)
t.Run("Validate component releases", componentCtx.ValidateComponentReleases)
}

type TrustyAITestCtx struct {
Expand Down

0 comments on commit d706b92

Please sign in to comment.