Skip to content

Commit

Permalink
chore: remove references to jvm-build-service
Browse files Browse the repository at this point in the history
- jvm-build-service is currently not being used by anyone
- It is going to undergo major breaking changes and is going to be
  removed for now until the changes are done
- Current tests are probably going to be useless due to the rewrite
  • Loading branch information
tnevrlka committed Dec 11, 2024
1 parent 79e3c06 commit 8449f48
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 642 deletions.
2 changes: 1 addition & 1 deletion magefiles/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/magefile/mage/sh"
)

const quayPrefixesToDeleteRegexp = "rhtap[-_]demo|happy-path|multi-platform|ex-registry|gitlab|build-e2e|build-templates|byoc|user1|spi|release-|integration|jvm|stat-rep|nbe|stack|rs[-_]demos|push-pyxis"
const quayPrefixesToDeleteRegexp = "rhtap[-_]demo|happy-path|multi-platform|ex-registry|gitlab|build-e2e|build-templates|byoc|user1|spi|release-|integration|stat-rep|nbe|stack|rs[-_]demos|push-pyxis"

func getRemoteAndBranchNameFromPRLink(url string) (remote, branchName string, err error) {
ghRes := &GithubPRInfo{}
Expand Down
2 changes: 0 additions & 2 deletions pkg/clients/jvmbuildservice/OWNERS

This file was deleted.

18 changes: 0 additions & 18 deletions pkg/clients/jvmbuildservice/artifact_builds.go

This file was deleted.

37 changes: 0 additions & 37 deletions pkg/clients/jvmbuildservice/caches.go

This file was deleted.

15 changes: 0 additions & 15 deletions pkg/clients/jvmbuildservice/controller.go

This file was deleted.

18 changes: 0 additions & 18 deletions pkg/clients/jvmbuildservice/dependency_builds.go

This file was deleted.

70 changes: 0 additions & 70 deletions pkg/clients/jvmbuildservice/jbs_configs.go

This file was deleted.

13 changes: 0 additions & 13 deletions pkg/clients/jvmbuildservice/rebuilt_artifacts.go

This file was deleted.

3 changes: 0 additions & 3 deletions pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@ const (
QuayRepositorySecretName = "quay-repository"
QuayRepositorySecretNamespace = "e2e-secrets"

JVMBuildImageSecretName = "jvm-build-image-secrets"
JBSConfigName = "jvm-build-config"

BuildPipelineConfigConfigMapYamlURL = "https://raw.githubusercontent.com/redhat-appstudio/infra-deployments/main/components/build-service/base/build-pipeline-config/build-pipeline-config.yaml"

DefaultImagePushRepo = "quay.io/" + DefaultQuayOrg + "/test-images"
Expand Down
37 changes: 14 additions & 23 deletions pkg/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/konflux-ci/e2e-tests/pkg/clients/has"
"github.com/konflux-ci/e2e-tests/pkg/clients/imagecontroller"
"github.com/konflux-ci/e2e-tests/pkg/clients/integration"
"github.com/konflux-ci/e2e-tests/pkg/clients/jvmbuildservice"
kubeCl "github.com/konflux-ci/e2e-tests/pkg/clients/kubernetes"
"github.com/konflux-ci/e2e-tests/pkg/clients/release"
"github.com/konflux-ci/e2e-tests/pkg/clients/tekton"
Expand All @@ -25,14 +24,13 @@ import (
)

type ControllerHub struct {
HasController *has.HasController
CommonController *common.SuiteController
TektonController *tekton.TektonController
GitOpsController *gitops.GitopsController
ReleaseController *release.ReleaseController
IntegrationController *integration.IntegrationController
JvmbuildserviceController *jvmbuildservice.JvmbuildserviceController
ImageController *imagecontroller.ImageController
HasController *has.HasController
CommonController *common.SuiteController
TektonController *tekton.TektonController
GitOpsController *gitops.GitopsController
ReleaseController *release.ReleaseController
IntegrationController *integration.IntegrationController
ImageController *imagecontroller.ImageController
}

type Framework struct {
Expand Down Expand Up @@ -201,26 +199,19 @@ func InitControllerHub(cc *kubeCl.CustomClient) (*ControllerHub, error) {
return nil, err
}

// Initialize JVM Build Service Controller
jvmbuildserviceController, err := jvmbuildservice.NewSuiteController(cc)
if err != nil {
return nil, err
}

// Initialize Image Controller
imageController, err := imagecontroller.NewSuiteController(cc)
if err != nil {
return nil, err
}

return &ControllerHub{
HasController: hasController,
CommonController: commonCtrl,
TektonController: tektonController,
GitOpsController: gitopsController,
ReleaseController: releaseController,
IntegrationController: integrationController,
JvmbuildserviceController: jvmbuildserviceController,
ImageController: imageController,
HasController: hasController,
CommonController: commonCtrl,
TektonController: tektonController,
GitOpsController: gitopsController,
ReleaseController: releaseController,
IntegrationController: integrationController,
ImageController: imageController,
}, nil
}
Loading

0 comments on commit 8449f48

Please sign in to comment.