-
Notifications
You must be signed in to change notification settings - Fork 1.6k
🐛 : doc: fix multiversion tutorial sample error: metadata.annotations: Too long: must have at most 262144 bytes #2862
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
🐛 : doc: fix multiversion tutorial sample error: metadata.annotations: Too long: must have at most 262144 bytes #2862
Conversation
Hi @laxmikantbpandhare. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
Hi @camilamacedo86 - I was able to recreate the issue. There are two ways through which we can fix this issue.
Please take a look and let me know your thoughts. |
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.
@laxmikantbpandhare I think this looks good but I have one concern with using kubectl replace
instead of kubectl apply
.
My understanding with kubectl apply
is that it will create the resource if it does not exist or update it if it does exist. This seems like the functionality we would want.
I could be wrong, but my understanding of kubectl replace
is that it will only replace something that already exists. If you run make install
or make deploy
with this change on a fresh KinD cluster does it still work as expected?
@everettraven _ I tried |
@camilamacedo86 @everettraven - Updated PR. Please take a look once. |
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.
I think this looks good and will fix the case in the issue, but I wonder if we should also apply this to the scaffolds?
Is there a reason why this occurs in this specific tutorial and not on a regular basis?
Thoughts @camilamacedo86 ?
@everettraven - this is the file that is causing this issue - https://raw.githubusercontent.com/kubernetes-sigs/kubebuilder/master/docs/book/src/multiversion-tutorial/testdata/project/config/crd/bases/batch.tutorial.kubebuilder.io_cronjobs.yaml If you see the above file then it is a large file and has too many |
@laxmikantbpandhare Ah, thanks for that information! I went through the tutorial and having the extra context clears up the confusion I was having. This change looks good to me so I will go ahead and approve the PR. |
/ok-to-test |
@camilamacedo86 could you please take a look. |
skipped descrioption during creation of annotations updated according to PR review comments updated according to PR review comments
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, everettraven, laxmikantbpandhare 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 |
This will fix #2556
Before fixing this issue, it is failing like below:
After fix, it worked.