Skip to content

Conversation

FxKu
Copy link
Member

@FxKu FxKu commented Dec 2, 2019

v1beta1 is marked as deprecated in K8s 1.16. CRD structure changes from:

spec:
  additionalPrinterColumns: {}
  subresources:
    status: {}
  version: v1
  validation:
    openAPIV3Schema: {}
spec:
  versions:
    name: v1
    additionalPrinterColumns: {}
    subresources:
      status: {}
    schema:
      openAPIV3Schema: {}

EDIT: v1 for CRDs is not available before v1.16 (see this thread) which results into this error:

no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1"

So this PR has to wait. When creating CRDs on v1.16 clusters, they will get transformed into the new schema, for what we saw in tests.

@FxKu FxKu force-pushed the move-to-apiextension-v1 branch from f350742 to ce80e5b Compare September 21, 2020 11:24
@Hades32
Copy link

Hades32 commented Oct 13, 2020

I'm getting errors in Helm about this now. Seems it has moved to a hard-deprecation...

Could you re-base this PR?

@sdudoladov
Copy link
Member

👍

1 similar comment
@FxKu
Copy link
Member Author

FxKu commented Nov 2, 2020

👍

@FxKu FxKu merged commit d764195 into master Nov 2, 2020
PetterSa pushed a commit to PetterSa/postgres-operator that referenced this pull request Nov 19, 2020
* move to apiextensions from v1beta1 to v1

* remove metadata from CRD validation

* some forgotten change
PetterSa added a commit to PetterSa/postgres-operator that referenced this pull request Nov 19, 2020
@FxKu FxKu added this to the 1.6 milestone Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants