-
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
NETOBSERV-764 - ADD v1beta2 api version with simplified Loki configuration options #329
Conversation
b2acb9b
to
79729ca
Compare
79729ca
to
c7f58b1
Compare
@jpinsonneau with my latest update to this code I have a working v1beta2 that behaves exactly as the v1beta1. Now it is the new hub. I compiled and tested on a cluster. Would be nice to have a second pair of eyes testing it as it is. I'll proceed to add changes to the loki types. |
Tested and it works as expected 👍 Code looks good also. I wonder if there is a way to simplify these changes in the future instead of changing all the imports 🤔 |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #329 +/- ##
==========================================
- Coverage 55.69% 55.01% -0.69%
==========================================
Files 47 47
Lines 6063 6358 +295
==========================================
+ Hits 3377 3498 +121
- Misses 2447 2625 +178
+ Partials 239 235 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
3090f1f
to
c6d1398
Compare
It's only the second time we introduce a new CRD version so I must say I'm not very familiar with the process, but in my understanding when doing so, we don't change immediately the "stored" version, it still has to be the previous one that is stored, for at least one release. @msherif1234 do you confirm if this is correct? Side question: should we stop serving and/or remove v1alpha1? |
|
Thanks @acmenezes for starting this! |
c6d1398
to
030a7c0
Compare
e815bde
to
6f4c39d
Compare
Kafka: flowslatest.FlowCollectorKafka{ | ||
Address: "kafka", | ||
Topic: "flp", | ||
}, | ||
} | ||
} | ||
|
||
func getLoki(lokiMode ...string) flowslatest.FlowCollectorLoki { |
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.
this looks a bit weird to me to allow variable args, while only the 0 index is used, for switching between modes . Is there a reason to do that instead of an explicit switch / single arg?
(anyway this can be addressed in a follow-up)
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.
the goal was to have the ability to call getConfig
with some optionnal param(s) like getConfig("LOKISTACK")
and keep the default empty getConfig()
Can you please add any thoughts on testing in NETOBSERV-1302 so we can improve all at once ?
I fixed the tests according to @msherif1234 solution in 282b28f Thanks for the help 🥳 It's not perfect but it forces |
FYI I'm working on a followup introducing missing modes and automating the hack CRD |
Co-authored-by: Joel Takvorian <[email protected]>
New images:
They will expire after two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:148d4a5 make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-148d4a5 Or as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-148d4a5
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
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.
thanks, LGTM, I'll report my unresolved comments on the follow-up PR
@nathan-weinberg since the API changed, I guess this will impact your test bench, at least if you want to create the latest API version and use Please let us know if you have any issue, and feel free to merge when you are ready. |
Thanks for the heads up @jpinsonneau - two quick questions, first does this PR require pre-merge QE testing, second will old flowcollector configs still be compatable? If the latter and not the former I can create a QE automation task to update it sometime this release and we can go ahead and merge this, if the former I can do both at once |
/cc @Amoghrd |
No, it can be done after to unlock other PRs (any touching API is impacted)
Yes it is ! you can create |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@acmenezes big thanks for the initial work and for your patience! |
On this PR:
Example usage (also available in
config/samples/flows_v1beta2_flowcollector_lokistack.yaml
):DOC: openshift/openshift-docs#63276