-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add go/v3-alpha #4232
Add go/v3-alpha #4232
Conversation
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'm still hesitant to add v3-alpha samples because it is in alpha, but I guess we do need to test our integrations. We also need e2e tests for v3-alpha.
"--version", mh.ctx.Version, | ||
"--kind", mh.ctx.Kind, | ||
"--defaulting", | ||
"--defaulting") |
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.
"--defaulting") | |
"--programmatic-validation") |
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.
Currently, the sample works with defaulting
. If we change it for v3 we need to change it for v2. Otherwise, we are unable to compare both to check what changed besides increasing the changes/mock/test that cannot be re-used both at this moment. But we can do it in a follow-up. See: #4234
PS.: I also think that would be better get it done after we are using the samples in the e2e tests #4056 becuase we can ensure better this change.
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.
You've specified --defaulting
twice
HI @estroz,
IMO: Regards samples/tesdata I agree 100% with you that we make clear to users that it is an alpha plugin. See the changelog. However, we are providing a new option for the users then, we also need to have an example over that. Otherwise, it makes it very harder and increases our effort either to contribute with the further changes and solve the issues raised in the repo. Note as well that:
Regards e2e tests with v3-alpha I agree with you. But I'd like to introduce it in a follow after we get merged the #4056 to try to reduce the effort in the CI. WDYT? Could we agree with that? |
91055c1
to
ce16b0a
Compare
ce16b0a
to
aa51201
Compare
Total drive-by: Before we merge this, we need to decide what our support statement will be for v3-alpha projects, and if its anything other than "full support like all other plugins AND full backwards-compatibility guarantees", then we need to very clearly document what the support will be and what guarantees and non-guarantees there are for backward and forward compatibility. I'm worried about telling people they need to use v3-alpha to get access to Kubernetes 1.20 features, and then in the same breath telling them that we can't support them because they're using an alpha feature and that we'll also break their project in the future (e.g. if/when the phase 2 plugins work changes the format of the PROJECT file) /hold |
IMO we can:
|
Based on last week's discussion, I think we all agreed that kubebuilder's project version 3 and its go/v3 plugin need to be finalized before we will accept them and begin using them in the SDK. These milestones are prerequisites for scaffolding 1.20-compatible projects because the version of controller-runtime that will support 1.20 (likely v0.8.0) will inherit the breaking changes made in controller-runtime v0.7.0 that are incompatible with the currently supported go.kubebuilder.io/v2 plugin. |
Hi @joelanford, Yes. I will close this one and then, this PR can be used as a helper for when we are able to do it since here we are generating the sample with v3/go plugin. Pinging @estroz @jmrodri and @varshaprasad96 @asmacdo only for let they know that it has what is required for we add the support to the new plugin as it is being stabilized. |
Description of the change:
Motivation for the change:
Follow-ups