Skip to content

Commit

Permalink
Chabge imports for catalogd and unified go.mod
Browse files Browse the repository at this point in the history
- We are finding and replace the catalogd imports
- We removed the go.mod and sum.mod from catalogd dir
- Also, we remove the specific GitHub action that verify the go version from catalogd since it is done for operator-controller
- By last we updated all catalogd GitHub actions to use the go.mod from ROOT DIR
  • Loading branch information
camilamacedo86 committed Jan 2, 2025
1 parent 40baf83 commit 909a141
Show file tree
Hide file tree
Showing 44 changed files with 64 additions and 823 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/catalogd-crd-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version-file: catalogd/go.mod
go-version-file: go.mod

- name: Run make verify-crd-compatibility
working-directory: catalogd
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/catalogd-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "catalogd/go.mod"
go-version-file: "go.mod"
- name: Run Demo Update
working-directory: catalogd
run: make demo-update
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/catalogd-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "catalogd/go.mod"
go-version-file: "go.mod"
- name: Run the upgrade e2e test
working-directory: catalogd
run: make test-upgrade-e2e
2 changes: 1 addition & 1 deletion .github/workflows/catalogd-go-apidiff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "catalogd/go.mod"
go-version-file: "go.mod"
id: go
- name: Run go-apidiff
working-directory: catalogd
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/catalogd-go-verdiff.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/catalogd-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: "catalogd/go.mod"
go-version-file: "go.mod"

- name: Docker Login
if: ${{ github.event_name != 'pull_request' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/catalogd-sanity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "catalogd/go.mod"
go-version-file: "go.mod"
- name: Run lint checks
working-directory: catalogd
run: make lint GOLANGCI_LINT_ARGS="--out-format github-actions"
2 changes: 1 addition & 1 deletion .github/workflows/catalogd-tilt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: catalogd/go.mod
go-version-file: go.mod
- name: Install Tilt
run: |
TILT_VERSION="0.33.3"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/catalogd-unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "catalogd/go.mod"
go-version-file: "go.mod"

- name: Unit Test
working-directory: catalogd
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tilt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
id: get-catalogd-version
run: |
cd operator-controller
echo "CATALOGD_VERSION=$(go list -mod=mod -m -f "{{.Version}}" github.com/operator-framework/catalogd)" >> "$GITHUB_OUTPUT"
echo "CATALOGD_VERSION=$(go list -mod=mod -m -f "{{.Version}}" github.com/operator-framework/operator-controller/catalogd)" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@v4
with:
repository: operator-framework/catalogd
Expand Down
20 changes: 10 additions & 10 deletions catalogd/cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ import (
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
crwebhook "sigs.k8s.io/controller-runtime/pkg/webhook"

catalogdv1 "github.com/operator-framework/catalogd/api/v1"
corecontrollers "github.com/operator-framework/catalogd/internal/controllers/core"
"github.com/operator-framework/catalogd/internal/features"
"github.com/operator-framework/catalogd/internal/garbagecollection"
catalogdmetrics "github.com/operator-framework/catalogd/internal/metrics"
"github.com/operator-framework/catalogd/internal/serverutil"
"github.com/operator-framework/catalogd/internal/source"
"github.com/operator-framework/catalogd/internal/storage"
"github.com/operator-framework/catalogd/internal/version"
"github.com/operator-framework/catalogd/internal/webhook"
catalogdv1 "github.com/operator-framework/operator-controller/catalogd/api/v1"
corecontrollers "github.com/operator-framework/operator-controller/catalogd/internal/controllers/core"
"github.com/operator-framework/operator-controller/catalogd/internal/features"
"github.com/operator-framework/operator-controller/catalogd/internal/garbagecollection"
catalogdmetrics "github.com/operator-framework/operator-controller/catalogd/internal/metrics"
"github.com/operator-framework/operator-controller/catalogd/internal/serverutil"
"github.com/operator-framework/operator-controller/catalogd/internal/source"
"github.com/operator-framework/operator-controller/catalogd/internal/storage"
"github.com/operator-framework/operator-controller/catalogd/internal/version"
"github.com/operator-framework/operator-controller/catalogd/internal/webhook"
)

var (
Expand Down
175 changes: 0 additions & 175 deletions catalogd/go.mod

This file was deleted.

Loading

0 comments on commit 909a141

Please sign in to comment.