Skip to content

Conversation

dinhxuanvu
Copy link
Member

  1. Fix conversion error due to incompatible type
  2. Refactor validate CRD code to reduce duplication
  3. Support v1.CRD type

Signed-off-by: Vu Dinh vdinh@redhat.com

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 17, 2020
@dinhxuanvu dinhxuanvu requested review from exdx and jpeeler January 17, 2020 04:18
Copy link
Contributor

@exdx exdx left a comment

Choose a reason for hiding this comment

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

LGTM. I came to the same conclusion from my test

@dinhxuanvu
Copy link
Member Author

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 17, 2020
1. Fix conversion error due to incompatible type
1. Refactor validate CRD code to reduce duplication
2. Support v1.CRD type

Signed-off-by: Vu Dinh <vdinh@redhat.com>
Copy link

@jpeeler jpeeler left a comment

Choose a reason for hiding this comment

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

Change looks good to me. It also looks like a very easy candidate for an accompanying unit test.

@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 20, 2020
Signed-off-by: Vu Dinh <vdinh@redhat.com>

results := []errors.ManifestResult{}
switch tt.version {
case "v1":
Copy link

Choose a reason for hiding this comment

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

I'd make this default rather than the beta version. But really only if you want to.

Copy link

@jpeeler jpeeler left a comment

Choose a reason for hiding this comment

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

My comment was only a weak suggestion. LGTM

@dinhxuanvu dinhxuanvu merged commit 80fd2f1 into operator-framework:master Jan 20, 2020
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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants