Skip to content

Use new crd-schema-gen in Makefile - #70

Merged
openshift-merge-robot merged 7 commits into
openshift:masterfrom
damemi:new-crd-gen
Jul 19, 2019
Merged

openshift-merge-robot merged 7 commits into
openshift:masterfrom
damemi:new-crd-gen

Conversation

@damemi

@damemi damemi commented Jul 11, 2019

Copy link
Copy Markdown
Contributor

This uses the new CRD schema gen and should fix bugs around descriptions not being shown in oc explain

@openshift-ci-robot openshift-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jul 11, 2019
@sttts

sttts commented Jul 11, 2019

Copy link
Copy Markdown
Contributor

/approve
/lgtm

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 11, 2019
@damemi

damemi commented Jul 11, 2019

Copy link
Copy Markdown
Contributor Author

/retest

3 similar comments
@sttts

sttts commented Jul 12, 2019

Copy link
Copy Markdown
Contributor

/retest

@damemi

damemi commented Jul 15, 2019

Copy link
Copy Markdown
Contributor Author

/retest

@damemi

damemi commented Jul 15, 2019

Copy link
Copy Markdown
Contributor Author

/retest

@damemi

damemi commented Jul 15, 2019

Copy link
Copy Markdown
Contributor Author

Trying to debug ci failure, found this in kube-apiserver-operator logs:

type: 'Warning' reason: 'ServiceMonitorCreateFailed' Failed to create ServiceMonitor.monitoring.coreos.com/v1: the server could not find the requested resource
W0715 18:37:00.541769       1 observe_images.go:134] image.config.openshift.io/cluster: not found
W0715 18:37:00.541816       1 auth_metadata.go:44] authentications.config.openshift.io/cluster: not found
W0715 18:37:00.541861       1 observe_images.go:84] image.config.openshift.io/cluster: not found
W0715 18:37:00.541919       1 observe_scheduler.go:33] scheduler.config.openshift.io/cluster: not found
W0715 18:37:00.543622       1 observe_images.go:40] image.config.openshift.io/cluster: not found
W0715 18:37:03.626052       1 auth_metadata.go:44] authentications.config.openshift.io/cluster: not found
W0715 18:37:03.626078       1 observe_scheduler.go:33] scheduler.config.openshift.io/cluster: not found
W0715 18:37:03.626087       1 observe_images.go:84] image.config.openshift.io/cluster: not found
W0715 18:37:03.626101       1 observe_images.go:134] image.config.openshift.io/cluster: not found
W0715 18:37:03.626109       1 observe_images.go:40] image.config.openshift.io/cluster: not found

looks like these resources aren't found, possibly an error in their validations. @deads2k you pointed this out to me, do you have any idea where to look to see what tries to create these resources?

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 16, 2019
@openshift-ci-robot openshift-ci-robot removed lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jul 16, 2019
@damemi

damemi commented Jul 16, 2019

Copy link
Copy Markdown
Contributor Author

Made some changes:

  1. Bumped to bring in missing // +optional marker in API
  2. Removed apiextensions-apiserver dep
  3. Updated Makefile to generate CRDs for all manifest (not just the config types, we also have quota, authorization, and security manifests). I was hoping I could do this with one line that just passes all of openshift/api to the generator but this caused the generator to fail with a lot of errors like this: github.com/openshift/cluster-config-operator/230188424/pkg/apis/config/v1:-: CRD for Network.config.openshift.io has no storage version. Maybe something to look into but I don't think this adds too many operations since we only clone the generator once

@damemi

damemi commented Jul 16, 2019 •

Copy link
Copy Markdown
Contributor Author

And it seems bumping has caused prometheus to fail on the procfs dependency of... itself?

# github.com/openshift/cluster-config-operator/vendor/github.com/prometheus/client_golang/prometheus
vendor/github.com/prometheus/client_golang/prometheus/process_collector_other.go:23:12: undefined: procfs.NewDefaultFS
vendor/github.com/prometheus/client_golang/prometheus/process_collector_other.go:40:19: p.Stat undefined (type procfs.Proc has no field or method Stat)
vendor/github.com/prometheus/client_golang/prometheus/process_collector_other.go:59:21: p.Limits undefined (type procfs.Proc has no field or method Limits)

Maybe something with pinned versions of deps pinning versions of other deps

Update: pinning prometheus to the versions found in library-go's glide.lock seems to have resolved this build error. I don't know why library-go is pinned to that version (as it doesn't seem to be manually pinned in glide.yaml), but my guess is that one of the dependencies there that is pinned to a specific version depends on that specific version of prometheus.

@damemi

damemi commented Jul 17, 2019

Copy link
Copy Markdown
Contributor Author

/retest

3 similar comments
@damemi

damemi commented Jul 17, 2019

Copy link
Copy Markdown
Contributor Author

/retest

@damemi

damemi commented Jul 17, 2019

Copy link
Copy Markdown
Contributor Author

/retest

@damemi

damemi commented Jul 18, 2019

Copy link
Copy Markdown
Contributor Author

/retest

@damemi

damemi commented Jul 19, 2019

Copy link
Copy Markdown
Contributor Author

/retest

@deads2k

deads2k commented Jul 19, 2019

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 19, 2019
@openshift-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: damemi, deads2k, sttts

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

The pull request process is described here

Details 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

type: object
type: array
required:
- type

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. 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.

6 participants