Skip to content

Bump Custom Resource Definitions to apiextensions.k8s.io/v1 - #3175

Merged
brancz merged 6 commits into
prometheus-operator:masterfrom
dgrisonnet:crd-v1
Apr 29, 2020
Merged

brancz merged 6 commits into
prometheus-operator:masterfrom
dgrisonnet:crd-v1

Conversation

@dgrisonnet

Copy link
Copy Markdown
Contributor

Description:

In addition to bumping CRDs to apiextensions.k8s.io/v1 we still want to use apiextensions.k8s.io/v1beta1 in order to be compatible with Kubernetes < 1.16. Thus, we want to generate both v1 and v1beta1 CRDs.

Fix #3137

Changes:

  • move CRD generation logic from Makefile to scripts/generate-crds.go
  • generate both v1 and v1beta1 CRDs
  • v1 CRDs are generated in: (no changes here)
    • example/prometheus-operator-crd/
    • jsonnet/prometheus-operator
    • bundle.yaml
  • v1beta1 CRDs are generated in:
    • example/prometheus-operator-crd/v1beta1
    • jsonnet/prometheus-operator/crd-v1beta1
    • bundle-v1beta1-crd.yaml
  • bump CRD version in e2e tests
  • update README quickstart

cc @lilic @simonpasquier @paulfantom @pgier @s-urbaniak

@lilic

lilic commented Apr 28, 2020

Copy link
Copy Markdown
Contributor

Do you mind rebasing, thanks!

@brancz

brancz commented Apr 29, 2020

Copy link
Copy Markdown
Contributor

Very nice work! 🎉

@brancz
brancz merged commit 2b20e60 into prometheus-operator:master Apr 29, 2020
aiyengar2 pushed a commit to aiyengar2/system-charts that referenced this pull request Nov 12, 2020
Completely modifies the CRDs to use apiextensions.k8s.io/v1 instead of apiextensions.k8s.io/v1beta1.

This requires users to have k8s 1.16+ in order to be able to install the CRDs.

Related Upstream PR: prometheus-operator/prometheus-operator#3175
aiyengar2 pushed a commit to aiyengar2/system-charts that referenced this pull request Nov 12, 2020
Completely modifies the CRDs to use apiextensions.k8s.io/v1 instead of apiextensions.k8s.io/v1beta1.

This requires users to have k8s 1.16+ in order to be able to install the CRDs.

Related Upstream PR: prometheus-operator/prometheus-operator#3175
aiyengar2 pushed a commit to aiyengar2/system-charts that referenced this pull request Nov 12, 2020
Completely modifies the CRDs to use apiextensions.k8s.io/v1 instead of apiextensions.k8s.io/v1beta1.

This requires users to have k8s 1.16+ in order to be able to install the CRDs.

Related Upstream PR: prometheus-operator/prometheus-operator#3175
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch to apiextensions.k8s.io/v1 for CRDs

3 participants