-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
⚠️ [Monorepo] PHASE 1 - Add Catalogd to Operator-Controller Repository #1542
⚠️ [Monorepo] PHASE 1 - Add Catalogd to Operator-Controller Repository #1542
Conversation
We do not want to fail the job if codecov fails to upload the report due to rate limiting. Signed-off-by: Mikalai Radchuk <[email protected]>
Signed-off-by: Andy Goldstein <[email protected]>
Signed-off-by: Andy Goldstein <[email protected]>
Signed-off-by: Andy Goldstein <[email protected]>
Signed-off-by: Andy Goldstein <[email protected]>
Signed-off-by: Andy Goldstein <[email protected]>
Signed-off-by: Andy Goldstein <[email protected]>
Marking the CatalogMetadataAPI feature gate as Deprecated before introducing the HTTP server as a default mechanism to serve catalog contents Signed-off-by: Rashmi Gottipati <[email protected]>
Signed-off-by: Joe Lanford <[email protected]>
Signed-off-by: Joe Lanford <[email protected]>
closes operator-framework#113 Signed-off-by: Anik <[email protected]>
Signed-off-by: Jordan Keister <[email protected]>
…rk#148) Closes operator-framework#113 Signed-off-by: Anik <[email protected]>
* add metrics to catalogd http server that can be used for calculating the Apdex Score and assess the health of the http server that is serving catalog contents to clients Signed-off-by: Bryce Palmer <[email protected]> * quick fixes from review comments Signed-off-by: Bryce Palmer <[email protected]> * rename package from server --> metrics Signed-off-by: Bryce Palmer <[email protected]> * rename package from server --> metrics Signed-off-by: Bryce Palmer <[email protected]> --------- Signed-off-by: Bryce Palmer <[email protected]>
…work#166) * (docs): Add docs on fetching contents via HTTP server Signed-off-by: Bryce Palmer <[email protected]> * add curl examples Signed-off-by: Bryce Palmer <[email protected]> --------- Signed-off-by: Bryce Palmer <[email protected]> Signed-off-by: Bryce Palmer <[email protected]>
…erator-framework#169) * (refactor): Remove deprecated CatalogMetadata and associated code Signed-off-by: Bryce Palmer <[email protected]> * go mod tidy Signed-off-by: Bryce Palmer <[email protected]> --------- Signed-off-by: Bryce Palmer <[email protected]>
closes operator-framework#119 Signed-off-by: Anik <[email protected]>
Signed-off-by: Joe Lanford <[email protected]>
Add release guide Signed-off-by: Catherine Chan-Tse <[email protected]>
* Add contributing guide to catalogd Signed-off-by: Rashmi Gottipati <[email protected]> * Address review comments Signed-off-by: Rashmi Gottipati <[email protected]> --------- Signed-off-by: Rashmi Gottipati <[email protected]>
Signed-off-by: kevinrizza <[email protected]>
Add default printer columns Signed-off-by: kevinrizza <[email protected]>
Closes operator-framework#155, operator-framework#160 Signed-off-by: Anik Bhattacharjee <[email protected]>
…operator-framework#145) (feat): direct image registry client unpacker Signed-off-by: Bryce Palmer <[email protected]>
…k#196) * (techdebt): refactor catalog controller unit tests to no longer use Ginkgo and instead use the native Go testing and testify Signed-off-by: Bryce Palmer <[email protected]> * remove rebase detritus, unnecessary IIFE, and featuregate comments/blocks. goimports. Signed-off-by: Bryce Palmer <[email protected]> --------- Signed-off-by: Bryce Palmer <[email protected]>
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.17.0. - [Commits](golang/net@v0.10.0...v0.17.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…mpatible (operator-framework#195) Bump github.com/docker/docker Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.1+incompatible to 23.0.3+incompatible. - [Release notes](https://github.com/docker/docker/releases) - [Commits](moby/moby@v23.0.1...v23.0.3) --- updated-dependencies: - dependency-name: github.com/docker/docker dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…work#185) Implements https://docs.google.com/document/d/1iWSrWL9pYRJ5Ua3VYErkK1Q2lAusBUeDCh66Ew4lDbQ/edit?usp=sharing Closes operator-framework#180 Signed-off-by: Anik Bhattacharjee <[email protected]>
GoDoc for Phase Signed-off-by: Anik Bhattacharjee <[email protected]>
@@ -321,7 +321,7 @@ export GORELEASER_ARGS | |||
|
|||
.PHONY: release | |||
release: $(GORELEASER) #EXHELP Runs goreleaser for the operator-controller. By default, this will run only as a snapshot and will not publish any artifacts unless it is run with different arguments. To override the arguments, run with "GORELEASER_ARGS=...". When run as a github action from a tag, this target will publish a full release. | |||
$(GORELEASER) $(GORELEASER_ARGS) | |||
OPERATOR_CONTROLLER_IMAGE_REPO=$(IMAGE_REPO) CATALOGD_IMAGE_REPO=$(CATALOG_IMAGE_REPO) $(GORELEASER) $(GORELEASER_ARGS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I tested this successfully.
catalogd/tilt.md
Outdated
|
||
Any time you change any of the files listed in the `deps` section in the `<binary name>_binary` `local_resource`, | ||
Tilt automatically rebuilds the go binary. As soon as the binary is rebuilt, Tilt pushes it (and only it) into the | ||
appropriate running container, and then restarts the process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have https://github.com/operator-framework/operator-controller/blob/main/docs/contribute/developer.md. But this doc might contain more details. Wondering if we should keep it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just checked, and the info is the same.
The ONLY extra info in the catalogd doc is
Shortly after starting, Tilt processes the `Tiltfile`, resulting in:
- Building the go binaries
- Building the images
- Loading the images into kind
- Running kustomize and applying everything except the Deployments that reference the images above
- Modifying the Deployments to use the just-built images
- Creating the Deployments
## Making code changes
Any time you change any of the files listed in the `deps` section in the `<binary name>_binary` `local_resource`,
Tilt automatically rebuilds the go binary. As soon as the binary is rebuilt, Tilt pushes it (and only it) into the
appropriate running container, and then restarts the process.
It has been added to the root document.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be good once all outstanding issues are resolved. Specifically, Todd's comment.
- Consolidated the release process to use `operator-controller.yaml` for all requirements. - Removed `catalogd.yaml` as it is no longer necessary. - Simplified the release action: - A single release action now generates images and binaries for both projects. - Unified process ensures consistent release management across the monorepo.
b097c3a
to
c84462a
Compare
- Updated the root `Makefile` with a unified `test-unit` target to execute unit tests for the entire project. - Removed the `test-unit` target from the `Makefile` under the `catalogd` directory as it is no longer needed.
c84462a
to
cc01a31
Compare
- Added `.tilt-support` directory at the root, updated to work with both `operator-controller` and `catalogd`. - Removed the Tilt workflow from the `catalogd` directory, consolidating all configurations into the root Tilt setup. - Updated configurations to use `catalogd` from the source code instead of fetching it from `github.com/operator-framework/catalogd`. Co-authored-by: Joe Lanford <[email protected]>
- Removed `check-go-version.sh` from `catalogd/hack/scripts` as it is no longer needed. - Both projects now rely on the `go.mod` file at the root directory for Go version checks. - Removed duplicated files from the repository: - `CODEOWNERS` - `CONTRIBUTING.md` - `DOC` - `LICENSE.md` - Use hack/boilerplate.go.txt from root and remove duplication
- Standardized Bingo definitions across `catalogd` and `operator-controller`. - Ensured both projects use the same Bingo config to maintain consistency
cc01a31
to
8b875ef
Compare
pushd .. | ||
git clone https://github.com/operator-framework/tilt-support | ||
popd | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joelanford ^ I removed it since now we have it locally.
@LalatenduMohanty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
75bb73e
Description
This PR integrates the
catalogd
project into theoperator-controller
monorepo and addresses several follow-up issues to ensure seamless functionality. Additionally, it moves the CI jobs implemented forcatalogd
to the root of the repository for a unified setup.EPIC: #1335
Key Changes
Add catalogd to the Monorepo
catalogd
source code into theoperator-controller
repository with the script. (see script changes here)Follow-Up Changes
catalogd
-specific CI jobs to the root directoryPHASE 1
Following the items addressed:
Commits Overview
Commits Done via Script
Below is a summary of the initial commits generated by the migration script:
Commits Done as Follow-Up
After the script ran, several follow-up commits were made to allow us get this first step merged: