-
Notifications
You must be signed in to change notification settings - Fork 68
✨ OPRUN-3731: Move catalogd entrypoint #1802
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
✨ OPRUN-3731: Move catalogd entrypoint #1802
Conversation
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
dd73555 to
0ed91d1
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1802 +/- ##
=======================================
Coverage 68.34% 68.34%
=======================================
Files 62 62
Lines 5117 5117
=======================================
Hits 3497 3497
Misses 1390 1390
Partials 230 230
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Makefile
Outdated
| CATALOGD_BINARIES=catalogd | ||
| LINUX_BINARIES=$(join $(addprefix linux/,$(CATALOGD_BINARIES)), ) | ||
|
|
||
| BUILDCMD = go build -tags '$(GO_BUILD_TAGS)' -ldflags '$(GO_BUILD_LDFLAGS)' -gcflags '$(GO_BUILD_GCFLAGS)' -asmflags '$(GO_BUILD_ASMFLAGS)' -o $(BUILDBIN)/$(notdir $@) ./cmd/$(notdir $@) | ||
|
|
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.
This shouldn't be necessary, as catalogd and operator-controller binaries should be able to use the same set of build rules/recipes.
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.
This should be resolved.
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.
Still need to remove this?
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.
those have been cleaned up.
fa2de51 to
f304e62
Compare
Makefile
Outdated
|
|
||
| .PHONY: kind-load | ||
| kind-load: $(KIND) #EXHELP Loads the currently constructed images into the KIND cluster. | ||
| $(CONTAINER_RUNTIME) save $(IMG) | $(KIND) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME) |
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.
IMG should be renamed to OPCON_IMG or OPERATOR_CONTROLLER_IMG for symmetry.
It probably also makes sense to change IMAGE_REPO into IMG_NAMESPACE (or similar), and then have:
ifeq ($(origin IMG_NAMESPACE), undefined)
IMG_NAMESPACE := quay.io/operator-framework
endif
export IMG_NAMESPACE
ifeq ($(origin IMAGE_TAG), undefined)
IMAGE_TAG := devel
endif
export IMAGE_TAG
OPCON_IMG :=$(IMG_NAMESPACE)/operator-controller:$(IMAGE_TAG)
CATALOGD_IMG := $(IMG_NAMESPACE)/catalogd:$(IMAGE_TAG)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.
It is possible to introduce the IMG_NAMESPACE variable however, it seems that the OPERATOR_CONTROLLER_IMAGE_REPO and CATALOGD_IMAGE_REPO variables may need to stay around as they are passed to the release target in the make file. See
Line 353 in 5107960
| 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.
done. Let me know if the current solution works
8d867d8 to
0d8387e
Compare
Move catalogd entrypoint and merge catalogd and operator-controller make files Signed-off-by: Edmund Ochieng <[email protected]>
0d8387e to
93d62dc
Compare
| ifeq ($(origin IMAGE_REPO), undefined) | ||
| IMAGE_REPO := quay.io/operator-framework/operator-controller | ||
| ifeq ($(origin IMG_NAMESPACE), undefined) | ||
| IMG_NAMESPACE := quay.io/operator-framework |
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 would prefer REGISTRY
instead since we publish the image into the registry
but I do not think that it is a blocker for this one.
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 like REGISTRY better, too, but we can update later
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.
+1 agree with @camilamacedo86
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
|
/hold |
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.
/unhold
/lgtm
I personally prefer OPCON and CATD for some of these variable names, to make them shorter and closer in length to each other, but it's not a blocker.
|
Looks like we left the dockerignore file in catalogd/ https://github.com/operator-framework/operator-controller/blob/main/catalogd/.dockerignore , sending a PR for this. |
|
PR to move the dockerignore fine #1813 |
Description
This pull request aims to move the catalogd entrypoint from
operator-controller/catalogd/cmd/catalogdtooperator-controller/cmd/catalogd.The above action is a continuation of the monorepo work detailed in issue #1340
While this PR achieves the high level task, more work is ongoing to optimize the makefile to re-use for instance the build command.
Reviewer Checklist
Related to #1340