-
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
feat: create CRDs as apiextensions.k8s.io/v1 #2025
feat: create CRDs as apiextensions.k8s.io/v1 #2025
Conversation
7d8a7d1
to
1ffed6e
Compare
1ffed6e
to
f56c580
Compare
Needs rebase. I think we don't have to keep supporting Kubernetes 1.10. Supporting the officially supported Kubernetes versions, minus a couple versions as we see fit should be more than enough in my opinion. I would also consider removing the CRD installation from Dex (or at least make it optional). CRDs are better installed by the user or the Helm chart IMHO. These aren't blockers of this PR, but I think it's a good conversation starter. My only concern about this PR is that we need to make sure, that we have an upgrade path from older CRD versions. If that's a |
Actually, we do not need to upgrade previously created CRDs. Kubernetes does it for us. If CRDs were deployed earlier, it is fine. We will be able to access them using old and new API versions (one apiVersion is called storage version, the others are called served versions). I like the idea to add the flag or option to prevent CRDs creation by Dex, as it is in other Kubernetes operators/controllers. In Flant, we also want to manage CRDs ourselves. |
f56c580
to
ddf3fcb
Compare
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
ddf3fcb
to
7a24725
Compare
Kubernetes 1.22 is scheduled for Aug 4
|
Let's schedule 2.30 for July. I'd like to get 2.29 released ASAP. |
@sagikazarmark - Hey there, |
@omesser there is no scheduled date yet.
Is it? I thought it will only get removed in 1.22 @nabokihms I think this is good to go. A couple questions:
Are you sure? I think this will make Dex uninstallable on k8s <1.16. If that's the case, I think it would make sense to at least document that fact. How are upgrades going to work? |
Therefore no upgrade is required, and no breaking changes are provided! |
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.
Perfect! I looked at the implementation and it looks good to me!
@sagikazarmark - You're right, apologies, I've seen some contradicting info there, there's this from 1.16 stating it would be removed by 1.19, for example (and a lot of other products took it that way):
But later release notes support that v1beta is still served by 1.19 (while it's deprecated it should still be served), and will only be completely removed in 1.22: |
Signed-off-by: m.nabokikh maksim.nabokikh@flant.com
Overview
What this PR does / why we need it
Fixes #1895
Special notes for your reviewer
There is no test that proves crds creation in kubernetes clusters >= 1.10 works (related to #1999).
Does this PR introduce a user-facing change?
It is not a breaking change.