-
Notifications
You must be signed in to change notification settings - Fork 34
Feature/crd humio view #257
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
|
I can see that the e2e tests are failing where running make test works. I will gladly accept some hints on how to proceed 👍 |
Tests print out the latest `By()` so adding them different places makes error messages much more clear.
Sync upstream
|
I just had a look at the failing test, it looks like it's failing because the Humio View test tries to create a repository that already exists. We should change the |
|
Ah, that should be an easy fix. Will you go ahead or should I @kaspernissen ? |
|
I think I might have it. |
|
Unfortunately, didn't fix the failing test. We found the issue, which seems to be an addition in the cli package, that now results in the expectation to not match; https://github.com/humio/cli/blame/dea38288df5de0e5e4c52a049207b7322ba1bc4c/api/repositories.go#L15 @mahlunar is working on a fix. |
|
Fixed. The Repository Id was the culprit which failed on assertions. I have added a new struct in the test file that excludes the Id field. Let me know if this is ok. |
SaaldjorMike
left a comment
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.
LGTM. The only comment I have is that you need to make sure to incorporate the latest changes on master and regenerate the CRD manifests. That is because we are now using a slightly newer controller-gen version, and I'd much prefer if we have all CRD files generated based on the same version.
To generate the CRD's again, you have to remove the old controller-gen binary and then generate the CRD manifests. Generating CRD manifests will automatically grab the controller-gen version but currently it does not handle updates to it that well. So this would be what you need to do after incorporating the latest changes on master:
rm ~/go/bin/controller-gen
make manifests
Then add the updated CRD files to this PR. After that we should be ready to go.
Thank you so much for this contribution, it is much appreciated!
Sync master
Co-authored-by: Bjørn <bso@lunar.app>
SaaldjorMike
left a comment
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.
LGTM.
|
Rebase done and updated manifests. |
* Add support for Humio Views * Bump humio/cli version to v0.28.1 Co-authored-by: Kasper Nissen <kni@lunar.app> Co-authored-by: Bjørn <bso@lunar.app>
Fixes #207
Changes
Added HumioView CRD
Name and Connections can now be set.
Description is omitted for now as we would need an update to the view api
Controller
Added support for adding, updating and deleting views
Tests performed
I have run all tests via "make test".
I have also spun up a humio cluster via the hack tools and observed the changes to the humio views in the cluster.
Please let me know if anything is missing or should be changed.