-
Notifications
You must be signed in to change notification settings - Fork 30
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
Migrate to kubebuilder v4 layout #1092
Migrate to kubebuilder v4 layout #1092
Conversation
56c0231
to
0a595ac
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1092 +/- ##
==========================================
- Coverage 67.93% 58.64% -9.29%
==========================================
Files 110 113 +3
Lines 8731 10145 +1414
==========================================
+ Hits 5931 5950 +19
- Misses 2503 3892 +1389
- Partials 297 303 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
return err | ||
} |
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.
Can you keep the message here? I think it gives context and help debugging stuff
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.
I think this is fine, as we don't want to mask errors.
Some nits. Thanks! |
Signed-off-by: Ruben Vargas <[email protected]>
Signed-off-by: Ruben Vargas <[email protected]>
Signed-off-by: Ruben Vargas <[email protected]>
Signed-off-by: Ruben Vargas <[email protected]>
Signed-off-by: Ruben Vargas <[email protected]>
Signed-off-by: Ruben Vargas <[email protected]>
Signed-off-by: Ruben Vargas <[email protected]>
34d2a4a
to
02466ad
Compare
@iblancasa I've already address some of your comments @iblancasa @andreasgerstmayr Could you review this ? Thanks! |
Signed-off-by: Ruben Vargas <[email protected]>
lgtm overall, great work! 💯 |
d9fe4e0
to
ab36568
Compare
Signed-off-by: Ruben Vargas <[email protected]>
Last thing before merging, did you run the OpenShift e2e tests and confirm that they're still working? |
Signed-off-by: Ruben Vargas <[email protected]>
Pass almost all OCP tests except some due must gather issues
I don't understand why this step fails
@IshwarKanse Could you help me testing this on your side? May be is something on my environment. Thanks |
I think the namespace where the operator is installed must end in |
@andreasgerstmayr Yeah, we use openshift-tempo-operator namespace in CI. https://github.com/openshift/release/blob/master/ci-operator/config/openshift/grafana-tempo-operator/openshift-grafana-tempo-operator-main__upstream-ocp-4.16-amd64-aws-ipi-shared-vpc-phz-sts.yaml#L62 https://github.com/openshift/release/blob/master/ci-operator/step-registry/distributed-tracing/tests/tempo/upstream/distributed-tracing-tests-tempo-upstream-commands.sh I'll check this next week once I'm back from leave. |
@@ -488,7 +488,7 @@ docs/spec/%: bundle/community/manifests/% | gen-api-docs | |||
$(GEN_API_DOCS) < $^ > $@ | |||
|
|||
docs/operator/config.yaml: gen-api-docs | |||
$(GEN_API_DOCS) -pkg github.com/grafana/tempo-operator/apis/config/v1alpha1 -type ProjectConfig -format multiline > $@ | |||
$(GEN_API_DOCS) -pkg github.com/grafana/tempo-operator/api/config/v1alpha1 -type ProjectConfig -format multiline > $@ |
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.
Can you explain this change? Maybe a link to documentation?
I think the apis
was used for multi version projects.
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.
and our PROJECT uses multigroup
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.
Not anymore. is part of the layout changes
The directory apis was renamed to api to follow the standard
The controller(s) directory has been moved under a new directory called internal and renamed to singular as well controller
The main.go previously scaffolded in the root directory has been moved under a new directory called cmd
@@ -1,6 +1,6 @@ | |||
domain: grafana.com | |||
layout: | |||
- go.kubebuilder.io/v3 | |||
- go.kubebuilder.io/v4 |
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.
Can you point me to the docs for this file?
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.
Sure, you can see the detailed steps here:
https://book.kubebuilder.io/migration/manually_migration_guide_gov3_to_gov4
@andreasgerstmayr I installed the operator in openshift-tempo-operator project and ran the tests. The must-gather steps pass.
|
No description provided.