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

Change 'make generate' to write only a single CRD #978

Merged
merged 2 commits into from
Mar 25, 2020

Conversation

jpkrohling
Copy link
Contributor

Fixes #977 by using tail to chop off the first two lines of the CRD file.

Signed-off-by: Juraci Paixão Kröhling [email protected]

@jpkrohling jpkrohling requested a review from pavolloffay March 18, 2020 14:10
@jpkrohling jpkrohling force-pushed the 977-CRDs-as-single-items branch from afde0ac to 7699cff Compare March 18, 2020 14:11
@codecov
Copy link

codecov bot commented Mar 18, 2020

Codecov Report

Merging #978 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #978   +/-   ##
=======================================
  Coverage   64.47%   64.47%           
=======================================
  Files          82       82           
  Lines        6536     6536           
=======================================
  Hits         4214     4214           
  Misses       2179     2179           
  Partials      143      143           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9aced39...444819c. Read the comment docs.

Copy link
Member

@pavolloffay pavolloffay left a comment

Choose a reason for hiding this comment

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

Chop off the yaml!

# the controller-gen will generate a list of CRDs, but the operator-sdk tooling expects
# a single item
# the proper solutions are, in order:
# 1) find a controller-gen switch that makes it write only one CRD. Such a switch doesn't exist yet: https://git.io/JvX5D
Copy link
Member

Choose a reason for hiding this comment

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

It might be worth opening an issue in the controller-gen repo to let them know that this is causing problems.

@jpkrohling
Copy link
Contributor Author

@pavolloffay I updated the PR after you reviewed. Would you mind taking a look again, even if only at the latest commit?

@jpkrohling jpkrohling merged commit cc2cff4 into jaegertracing:master Mar 25, 2020
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.

CRD generator creates a list of CRDs instead of a single CRD
2 participants