-
Notifications
You must be signed in to change notification settings - Fork 523
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
oc:build does not update labels and annotations in Openshift Build resource #2500
Comments
When generating OpenShift resources, they go through enrichment phase. However, we only seem to invoke This task gets called via OpenShiftBuildService here GitEnricher (enricher responsible for adding git labels/annotations) seem to be applied only in Maybe we should update GitEnricher to be applied with |
Suggested changes:
|
Describe the bug
(As discussed with @rohanKanojia on Gitter)
jKube does not update pom version and git information in labels (.metadata.labels.version) and annotations (jkube.io/git-branch and kube.io/git-commit) with current information from the Maven build. Instead the information is just copied from the BuildConfig.
Tested on OpenShift 4.12 with Maven 3.9.4 and jKube 1.3.0 (from Red Hat Fuse)
Eclipse JKube version
1.3.0
Component
Kubernetes Maven Plugin
Apache Maven version
other (please specify in additional context)
Gradle version
None
Steps to reproduce
Expected behavior
Latest OpenShift Build should be updated with latest POM version and Git information (branch and commit key)
Runtime
OpenShift
Kubernetes API Server version
other (please specify in additional context)
Environment
macOS
Eclipse JKube Logs
No response
Sample Reproducer Project
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: