Move apis package to a sub-module#5077
Conversation
|
hey @swiatekm, quick question about |
304400c to
00ae37a
Compare
I'm fine moving or refactoring it. We're going to be dropping v1alpha1 Collectors soon either way. |
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
…to internal package Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
215e391 to
3c908e2
Compare
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
@swiatekm I moved the conversion functions into helper functions and now the |
Looks pretty good to me. I think we can even move the conversion code completely into internal/webhook/conversion.go. There isn't any good reason for it to live in the api module. WDYT @open-telemetry/operator-approvers ? |
I'm okay with it, if others are okay with it will commit the change. |
Signed-off-by: Ilia Petrov <ilia.yavorov.petrov@gmail.com>
E2E Test Results 38 files 261 suites 2h 20m 12s ⏱️ Results for commit 4232c2e. ♻️ This comment has been updated with latest results. |
P.S. I already moved it. If v1alpha1 is going to be removed anyway, I think it’s fine to merge this beforehand. |
swiatekm
left a comment
There was a problem hiding this comment.
The changes look good to me. I think we're also going to need dependabot config updates so we can keep the shared dependencies synchronized, but that can happen in a follow-up.
Since this is a major change, I'm going to need more approvals here, with at least one more maintainer approval. @open-telemetry/operator-approvers if you're opposed to this, this is your last chance to speak up.
Is there some example dependabot config for such case? |
I'm honestly not sure if it supports this very well. If not, we'll move Go dependency updates to renovate, which I'm confident is capable of it. We'd wanted to do this for a while anyway and just never got around to it. The api package specifically has few enough dependencies that it's not going to be a big deal even if we need to do some manual syncing until we figure it out. |
pavolloffay
left a comment
There was a problem hiding this comment.
Could we also move the v1alpha1 to keep all the APIs in one place? the v1alpha1 hosts more than just the collector.
Description:
This is a continuation of PR #4989. The
apispackage is moved to a dedicated sub-module.Link to tracking Issue(s):
github.com/goccy/go-yaml#4362Testing:
No new tests are added, just adapt some of the existing ones