-
Notifications
You must be signed in to change notification settings - Fork 7
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
ENTESB-14406 Provide metering labels for Camel K Operator and deployed pods #56
ENTESB-14406 Provide metering labels for Camel K Operator and deployed pods #56
Conversation
The downside I see with the current approach is that the product / metering labels defined in the code must be re-applied for each new product branch. Ideally, these would be defined outside of the operator code, so that a new product branch can be created from the corresponding branch, without additional patches, and customisation script run in product build can be re-applied as is. |
I thought about that, perhaps a more complex approach can inject generated code, but that would be more complex. |
Intuitively, the logic that adds labels to controllers (Deployment, KnativeService, CronJob) would take a list of labels from a build time variable. That logic can be added upstream. Only the build time variable is set during the downstream build in https://github.com/jboss-fuse/fuse-camel-k, as we do for other product customisation. The customisation of the operator deployment can be done directly into the bundle https://github.com/jboss-fuse/fuse-camel-k-prod-operator-metadata/blob/integration-1.0/manifests/camel-k.clusterserviceversion.yaml#L293. |
This build time variable approach to change operator-deployment.yaml and deployment/knative/cron*.go will left uncommited files, then the productized process should commit them to the tag/branch along ? |
No it's not about changing files. For the operator deployment, it's done with https://github.com/jboss-fuse/fuse-camel-k-prod-operator-metadata/pull/44. I don't think there is nothing else needed. For Pods labels, the idea is to have the mechanism upstream to add some labels based on a built time variable, like we already did for other product customisation: https://github.com/jboss-fuse/fuse-camel-k/blob/fuse-8.0-openshift-rhel-8/Dockerfile#L40. That left no uncommitted changes. |
makes sense, I will change the PR to take this approach. Thanks. |
I will close this in favor of the upstream one apache#2646 |
https://issues.redhat.com/browse/ENTESB-14406