-
Notifications
You must be signed in to change notification settings - Fork 63
Split the populator image #135
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
Conversation
Building the |
29c4d18
to
c776210
Compare
works now (somehow, my guess it's either luck or changing it into cmd directory) :) |
Codecov ReportBase: 33.89% // Head: 33.91% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #135 +/- ##
==========================================
+ Coverage 33.89% 33.91% +0.02%
==========================================
Files 42 42
Lines 8098 8093 -5
==========================================
Hits 2745 2745
+ Misses 5136 5131 -5
Partials 217 217
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Right I forgot we have the group and kind
…On Sunday, February 5, 2023, Liran Rotenberg ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In cmd/populator-controller/populator-controller.go
<#135 (comment)>:
> + flag.StringVar(&kubeconfig, "kubeconfig", "", "Path to a kubeconfig. Only required if out-of-cluster.")
+ }
+ flag.StringVar(&masterURL, "master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
+ flag.StringVar(&imageName, "image-name", "", "Image to use for populating")
+ // Metrics args
+ flag.StringVar(&httpEndpoint, "http-endpoint", "", "The TCP network address where the HTTP server for diagnostics, including metrics and leader election health check, will listen (example: `:8080`). The default is empty string, which means the server is disabled.")
+ flag.StringVar(&metricsPath, "metrics-path", "/metrics", "The HTTP path where prometheus metrics will be exposed. Default is `/metrics`.")
+ // Other args
+ flag.StringVar(&namespace, "namespace", "konveyor-forklift", "Namespace to deploy controller")
+ flag.Parse()
+
+ var (
+ gk = schema.GroupKind{Group: groupName, Kind: kind}
+ gvr = schema.GroupVersionResource{Group: groupName, Version: apiVersion, Resource: resource}
+ )
+ imageName = "quay.io/lrotenbe/ovirt-populator:test"
if it's in the CR, we can use the populator-controller image to take it in
provide it to the the library, without modifying the library further.
—
Reply to this email directly, view it on GitHub
<#135 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQKN4UGH5OTXYIXK7YMMVLWV5QEBANCNFSM6AAAAAAUMU4FG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
So, I think we don't really need to change a thing? once we have other kinds we may change the image based on that? or we should providing an image anyway in the CR? |
@liranr23 you mean another provider type that uses volume-populator? if so I don't see why not to do it before - even if ovirt is the only provider, I'd still expect the image of the populator to be configurable (and propagated from the controller that takes the forklift or mtv image that is set in the operator) |
benny and i discussed offline, we think a configmap might be a solution for this. i'm still bothered with how the controller will know which kind he will be looking for. |
operator/config/crd/bases/forklift.konveyor.io_ovirtvolumepopulators.yaml
Outdated
Show resolved
Hide resolved
This patch will split the populator image. One image acts as a controller to the populator - 'populator-controller' and the actual populator action will be executed by the 'ovirt-populator' image. This will allow a separation in logic, allowing to add more source providers images and use the same controller for all. Signed-off-by: Liran Rotenberg <[email protected]>
Triggers the push for the split images. Signed-off-by: Liran Rotenberg <[email protected]>
0e78067
to
0c200aa
Compare
Kudos, SonarCloud Quality Gate passed!
|
@liranr23 please check the failure in: |
This patch will split the populator image.
One image acts as a controller to the populator - 'populator-controller' and the actual populator action will be executed by the 'ovirt-populator' image.
This will allow a separation in logic, allowing to add more source providers images and use the same controller for all.
Signed-off-by: Liran Rotenberg [email protected]