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

Add openAPIV3Schema to CRDs #1403

Closed
wants to merge 3 commits into from
Closed

Conversation

sanchezl
Copy link
Contributor

No description provided.

@sanchezl
Copy link
Contributor Author

/hold

@openshift-ci-robot openshift-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Jan 22, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sanchezl
To complete the pull request process, please assign ericavonb
You can assign the PR to them by writing /assign @ericavonb in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sanchezl sanchezl changed the title Crd gen schema Add openAPIV3Schema to CRDs Jan 24, 2020
@sanchezl
Copy link
Contributor Author

Needs coreos/ignition#917 resolved.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 24, 2020
@openshift-ci-robot
Copy link
Contributor

@sanchezl: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

yuqi-zhang added a commit to yuqi-zhang/machine-config-operator that referenced this pull request Feb 18, 2020
Generate validation for:

containerruntimeconfig
controllerconfig
kubeletconfig
machineconfig
machineconfigpool

Using update-codegen-crds target from
https://github.com/openshift/build-machinery-go, which will be
included in a separate commit as it is not directly usable with the
MCO repo until coreos/ignition#917 is
resolved. The current generation is done via hacking ignition's
config/v2_2/types/schema.go to have dummy `json:",inline"` for fields
that are causing errors.

Some background on this, there were 2 attempts to add generated
schemas in: openshift#1403
and openshift#955.
This supercedes those with updated generation methods.

Signed-off-by: Yu Qi Zhang <jerzhang@redhat.com>
openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/machine-config-operator that referenced this pull request Feb 27, 2020
Generate validation for:

containerruntimeconfig
controllerconfig
kubeletconfig
machineconfig
machineconfigpool

Using update-codegen-crds target from
https://github.com/openshift/build-machinery-go, which will be
included in a separate commit as it is not directly usable with the
MCO repo until coreos/ignition#917 is
resolved. The current generation is done via hacking ignition's
config/v2_2/types/schema.go to have dummy `json:",inline"` for fields
that are causing errors.

Some background on this, there were 2 attempts to add generated
schemas in: openshift#1403
and openshift#955.
This supercedes those with updated generation methods.

Signed-off-by: Yu Qi Zhang <jerzhang@redhat.com>
@yuqi-zhang
Copy link
Contributor

I think we can close this in favour of #1485, and we can work on the generation later after idubinskiy/schematyper#18 and #996 in #1486

@LorbusChris
Copy link
Member

Once #996 has merged we could immediately move the api definitions over to the api repo. Therefore my question is, should try to solve this locally in this repo, or over in api?

@yuqi-zhang
Copy link
Contributor

should try to solve this locally

by this do you mean the definitions themselves or the auto generation? The definitions themselves have been merged. The generation of manifests don't have to live in the MCO repo.

@LorbusChris
Copy link
Member

ok awesome. Then the question should've really been: Do we move the api over immediately after unblocking that, or is there a reason to wait with that?

vrutkovs pushed a commit to vrutkovs/machine-config-operator that referenced this pull request Mar 1, 2020
Generate validation for:

containerruntimeconfig
controllerconfig
kubeletconfig
machineconfig
machineconfigpool

Using update-codegen-crds target from
https://github.com/openshift/build-machinery-go, which will be
included in a separate commit as it is not directly usable with the
MCO repo until coreos/ignition#917 is
resolved. The current generation is done via hacking ignition's
config/v2_2/types/schema.go to have dummy `json:",inline"` for fields
that are causing errors.

Some background on this, there were 2 attempts to add generated
schemas in: openshift#1403
and openshift#955.
This supercedes those with updated generation methods.

Signed-off-by: Yu Qi Zhang <jerzhang@redhat.com>
@openshift-ci-robot
Copy link
Contributor

@sanchezl: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-scaleup-rhel7 34c673c link /test e2e-aws-scaleup-rhel7
ci/prow/images 34c673c link /test images
ci/prow/unit 34c673c link /test unit
ci/prow/e2e-gcp-op 34c673c link /test e2e-gcp-op
ci/prow/e2e-aws 34c673c link /test e2e-aws
ci/prow/e2e-gcp-upgrade 34c673c link /test e2e-gcp-upgrade
ci/prow/verify 34c673c link /test verify
ci/prow/e2e-ovn-step-registry 34c673c link /test e2e-ovn-step-registry

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kikisdeliveryservice
Copy link
Contributor

I think we can close this in favour of #1485, and we can work on the generation later after idubinskiy/schematyper#18 and #996 in #1486

closing as per the above message. if this is in error, please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants