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
LogMojo: Change access modifiers to protected for use in XML configuration #877
Comments
May I take this? |
I have changed the access modifier and deployed the |
The placement is fine, however you're probably testing with the released version and not the SNAPSHOT. Try running the following command |
I missed installing the plugin after changing the code. The goal now logs the deployment and terminates with below exception.
The exception confused me a little bit. I thought there was some problem with the execution. Is this the expected behavior? |
Description
In #868, we changed variable names of these configuration options for log goal. Now that the variable names are correct, we can expose their access so that they can be used in plugin configuration:
https://github.com/eclipse/jkube/blob/85f507ef25ed5c3b9284db893032eaec0c963451/kubernetes-maven-plugin/plugin/src/main/java/org/eclipse/jkube/maven/plugin/mojo/develop/LogMojo.java#L36-L41
private
toprotected
Second part can be tested by deploying some quickstart(for example
quickstarts/maven/spring-boot
to some Kubernetes Cluster and then adding these configuration options to plugin configuration. For example, this plugin configuration should not tail logs(default behavior is to follow logs) whenmvn k8s:log
/mvn oc:log
is run:For testing on Kubernetes/OpenShift cluster, you can use minikube or Red Hat Developer Sandbox for OpenShift instance.
The text was updated successfully, but these errors were encountered: