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

Ensure legacy and current CRD spec version support #154

Merged
merged 9 commits into from
Nov 30, 2020
Merged

Conversation

ccremer
Copy link
Contributor

@ccremer ccremer commented Nov 26, 2020

  • Makefile now generates CRD specs for v1 and v1beta1 (see CRD compatibility support discussion #153 )
  • Structural changes in the CRD directories
  • Scaffolds e2e tests for local and CI/CD runs (actual framework is left open for later)

@ccremer ccremer changed the base branch from master to development November 26, 2020 10:22
@ccremer ccremer force-pushed the crd-support branch 4 times, most recently from abde3dd to cfdd349 Compare November 26, 2020 10:53
@ccremer ccremer requested review from Kidswiss and tobru November 26, 2020 11:03
@ccremer ccremer marked this pull request as ready for review November 26, 2020 11:03
@ccremer ccremer linked an issue Nov 26, 2020 that may be closed by this pull request
Makefile Outdated Show resolved Hide resolved
@ccremer ccremer requested a review from Kidswiss November 27, 2020 09:34
@ccremer ccremer force-pushed the crd-support branch 2 times, most recently from c95e63c to ed8dd3c Compare November 27, 2020 10:10
Makefile Outdated Show resolved Hide resolved
@Kidswiss
Copy link
Contributor

Kidswiss commented Nov 27, 2020

make manifests currently creates the v1 and v1beta1 folders in the project root. Is that really intended?

Puts controller-gen into version control of go.mod and renovate instead of Makefile
New version reformats the CRDs by removing multiline-strings
So that the client uses the same API versions as the server
Updates K8s API since kustomize uses a newer version
@ccremer
Copy link
Contributor Author

ccremer commented Nov 27, 2020

make manifests currently creates the v1 and v1beta1 folders in the project root. Is that really intended?

No it's not. Can you try with latest changes? Are you on Mac or Linux?

Neither old or new k8s would allow the v1beta1 with validation enabled.
Let's see if e2e tests are working once added later.
generate now takes several seconds to complete. Running tests and starting
the Operator for e2e tests wastes several seconds for stuff that doesn't change
often
@Kidswiss
Copy link
Contributor

Now it's creating the CRDs in the correct folder 👍

@ccremer ccremer merged commit 5e566d5 into development Nov 30, 2020
@ccremer ccremer deleted the crd-support branch November 30, 2020 08:47
@ccremer ccremer added the change Generic change that is neither a fix or feature label Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change Generic change that is neither a fix or feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CRD compatibility support discussion
3 participants