Repository navigation
Move CRD fixup hack for 3.11 - #88
Conversation
Due to an OLM bug in OCP 3.11, the generated CRD needs some tweaking. Previously this was being done via a bespoke script invoked through a go:generate directive. After boilerplate adoption, this script was doing `operator-sdk generate` redundantly (it was already part of the `op-generate` target). This commit removes the script and the redundant `operator-sdk generate`s, and adds a temporary `make` target to do the CRD fixup. All of this will go away once we no longer need to run on 3.11.
| # call it. | ||
| .PHONY: crd-fixup | ||
| crd-fixup: | ||
| yq d -i deploy/crds/deadmanssnitch.managed.openshift.io_deadmanssnitchintegrations_crd.yaml spec.validation.openAPIV3Schema.type |
There was a problem hiding this comment.
Do we have a standardized version of yq?
|
Is this change going to be in the boilerplate? I am asking as another operator has concerns for the CRD deployment |
|
/approve |
Yeah, that's a good question. I'd like to solve this one by hand the first time around to make sure it's working, and then we can look at making it generic (we'll have to discover which files to apply the fixup to). It's temporary (only as long as 3.11 lives) so not worth putting a whole lot of effort into. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 2uasimojo, dustman9000, jewzaam The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Due to an OLM bug in OCP 3.11, the generated CRD needs some tweaking. Previously this was being done via a bespoke script invoked through a go:generate directive. After boilerplate adoption, this script was doing
operator-sdk generateredundantly (it was already part of theop-generatetarget).This commit removes the script and the redundant
operator-sdk generates, and adds a temporarymaketarget to do the CRD fixup. All of this will go away once we no longer need to run on 3.11.