-
Notifications
You must be signed in to change notification settings - Fork 604
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
kubectl explain for ContainerSource #3859
Conversation
Hi @aavarghese. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/cc @lionelvillard |
/ok-to-test |
/test pull-knative-eventing-conformance-tests |
The YAML is not valid: |
Now the CRD is too big: @nachocano @nlopezgi @aavarghese I suggest to just drop the |
x-kubernetes-preserve-unknown-fields: true | ||
description: 'ContainerSource is an event source that starts a container image which generates events under certain situations and sends messages to a sink URI' | ||
properties: | ||
spec: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the things I noted from the generator is that it is creating one more identation than necessary. Note spec is two levels down from properties in line 38 and ceOverrides is down two from properties in line 41. This extra identation will add up and might result in the file having more characters than necessary?
It might be worth to fix the identation, there seems to be lots of lines that are very short due to being over-indented. See my comment in the PR above. Might be worth trying to fix before loosing content. |
type: object | ||
properties: | ||
preferredDuringSchedulingIgnoredDuringExecution: | ||
description: 'The scheduler will prefer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block is repeated identically 2 times maybe? you can use placeholders to avoid duplication as I did in #3869 (see https://github.com/knative/eventing/pull/3869/files#diff-360926796c72432f2956878c2251f3d8R221). You can probably look for other duplicate blocks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On further analysis, looks like that block isn't duplicated entirely the same. There are a few words that have been changed between blocks - like "affinity" vs "non-affinity"....so unfortunately, I can't use a placeholder in this example. Looking for more dup blocks....
There's also duplication that can be avoided via use of placeholders, see how I did it in https://github.com/knative/eventing/pull/3869/files#diff-360926796c72432f2956878c2251f3d8R221 |
Great. Thanks for the suggestions. I won't be able to make another pass through this very soon since I'm taking days off this week. I will try to get another version out for testing asap... |
…ription Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
…ription Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
After many hours of making manual changes to this giant yaml (fixing indentations, joining multiple lines etc), I was unable to get it to a size that meets the requirement. Just too BIG. And there aren't many blocks that are exactly the same, so I wasn't able to leverage placeholders. I used Visual Studio's Check Duplicate lines plugin to help me here... At the end, as per @lionelvillard's suggestion, I modified the PodSpec description to see |
/test pull-knative-eventing-integration-tests |
I see this error in integration tests:
|
@nachocano can you take a look at the errors above? Maybe the e2e test is wrong? |
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
The following jobs failed:
Failed non-flaky tests preventing automatic retry of pull-knative-eventing-conformance-tests:
|
Not sure if its helpful for your error, but in my PRs I found I had to remove the |
/test pull-knative-eventing-conformance-tests |
My apologies, I just saw this. I'm being bombarded with emails, I think I have around 200 not read... Thanks for doing this @aavarghese and thanks @lionelvillard and @nlopezgi for reviewing! |
I didn't see that log. Maybe was from a previous run before removing the podSpec from the yaml? BTW, I manually applied this changed CRD and created a ContainerSource and it worked... |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aavarghese, lionelvillard The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Proposed Changes
Add content in CRDs to generate kubectl explain content for ContainerSource ONLY
🐛 partial fix for bug #3054