Skip to content
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

upgrade decco to k8s v1.16.x APIs #18

Merged
merged 2 commits into from
Jun 15, 2020
Merged

upgrade decco to k8s v1.16.x APIs #18

merged 2 commits into from
Jun 15, 2020

Conversation

bcle
Copy link
Contributor

@bcle bcle commented May 19, 2020

The following resources have moved to newer API sets:

  • Deployments
  • Ingresses
  • CRD (reverted because v1 requires validation schema, while v1beta1 is still supported until 1.19)

See https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.16.md#deprecations-and-removals for details

@bcle bcle requested a review from erwinvaneyk May 19, 2020 20:07
@bcle
Copy link
Contributor Author

bcle commented May 19, 2020

Testing on staging cluster reveals that CRD registration is failing and needs more work:

time="2020-05-19T22:33:02Z" level=error msg="resync failed: fail to create CRD: CustomResourceDefinition.apiextensions.k8s.io \"spaces.decco.platform9.com\" is invalid: spec.versions[0].schema.openAPIV3Schema: Required value: schemas are required" watchname=spaces-in-all-namespaces
time="2020-05-19T22:33:02Z" level=info msg="retry in 30s..." watchname=spaces-in-all-namespaces

Copy link
Contributor

@erwinvaneyk erwinvaneyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering, don't the manifests (and manifest templates) also need to updated?

@bcle
Copy link
Contributor Author

bcle commented May 20, 2020

Wondering, don't the manifests (and manifest templates) also need to updated?

The only manifest that I see that would need updating is decco-apps-crd.yaml (the reason it exists as opposed to being created by the operator is a little obscure, it's a chicken-and-egg problem that I can explain if you like). But since I reverted the CRD changes for now (due to the need to supply a validation schema, which seems like it'll require some non-trivial work), there's no immediate need to do this now. Did you see any others that need updating?

@erwinvaneyk
Copy link
Contributor

Ah ok, I thought we were also using manifests/templates/decco-deployment.yaml.tmpl, which would need updating to apps/v1 too.

Related to the validation schemas, it is something that kubebuilder generates for us in the Decco V2 work. So, if we merge #13, I can prepare the next PR that adds the validation schema to the CRDs.

@bcle bcle requested a review from brandune June 15, 2020 07:13
@bcle bcle merged commit 282f404 into master Jun 15, 2020
bcle added a commit that referenced this pull request Jul 10, 2020
* upgrade decco to k8s v1.16.x APIs

* revert CRD changes because not ready to provide required validation schema

Co-authored-by: Bich Le <leb@platform9.com>
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.

3 participants