-
Notifications
You must be signed in to change notification settings - Fork 25
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
Makefile changes for addition of run bundle in Java Plugin. #84
Makefile changes for addition of run bundle in Java Plugin. #84
Conversation
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 shouldn't move the Makefile
to create api.
/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.
Some more items.
@jmrodri - Worked on all the review comments. Could you please review once. |
…ti-createapi modified code for handling multiple create api commands
…ti-createapi update space
I ran it twice and the update looks great. $ diff -u Makefile /tmp/Makefile
--- Makefile 2022-06-01 23:21:22.691820093 -0400
+++ /tmp/Makefile 2022-06-01 23:21:14.750800304 -0400
@@ -49,7 +49,7 @@
.PHONY: bundle
bundle: ## Generate bundle manifests and metadata, then validate generated files.
## marker
- cat target/kubernetes/memcacheds.cache.example.com-v1.yml target/kubernetes/jokes.cache.example.com-v1.yml target/kubernetes/kubernetes.yml | operator-sdk generate bundle -q --overwrite --version 0.1.1 --default-channel=stable --channels=stable --package=memcached-quarkus-operator
+ cat target/kubernetes/memcacheds.cache.example.com-v1.yml target/kubernetes/kubernetes.yml | operator-sdk generate bundle -q --overwrite --version 0.1.1 --default-channel=stable --channels=stable --package=memcached-quarkus-operator
operator-sdk bundle validate ./bundle
.PHONY: bundle-build |
makefileBundleVarFragment = ` | ||
##@Bundle | ||
.PHONY: bundle | ||
bundle: ## Generate bundle manifests and metadata, then validate generated files. |
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 won't hold this PR up but I think we need to make this depend on a build target.
.PHONY: build
build:
mvn install
.PHONY: bundle
bundle: build
cat target...
Basically in our other projects if we run make bundle
it will do a generation and create the manifests required. But in Java, it won't. But that's because we're not calling anything from make bundle
.
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.
Yes agree, we must add mvn install
before generating the bundle else it will fail if the User is not compiled the project before generating the bundle manifest. Let me try to add this to the existing logic.
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.
Quick question here, when the User tries the below command at that moment itself it will generate the /target
directory.
make docker-build docker-push IMG=quay.io/YOURUSER/memcached-quarkus-operator:0.0.1
Do you still think we still need to add mvn clean install
in the bundle structure?
…ti-createapi modified minor changes
That's great. Thank you for confirming 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.
Had a couple minor nits but nothing that should hold this PR. Tested the changes locally and everything looks good 👍
…ti-createapi added logs for plugin Makefile
…ti-createapi remove comments from plugin Makefile
…ti-createapi remove comments from plugin Makefile
This fix will add changes to Makefile for
run bundle
. As we need version and group name, I moved Makefile from templates to API.Able to scaffold out Makefile with required changes and able to generate the bundle files and able to run it too.
Please find below the output after running the bundle command:
operator-sdk run bundle docker.io/013859989/memcached-quarkus-operator-bundle:v0.0.98