-
Notifications
You must be signed in to change notification settings - Fork 1.5k
📖 Improve comments and fix typos for cronjob tutorial #4724
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
base: master
Are you sure you want to change the base?
Conversation
Hi @chethanm99. 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-sigs/prow repository. |
/ok-to-test |
/lgtm cancel Please ensure the following steps are completed before we proceed with this PR:
Note: We generate the projects used in the tutorials, and then layer additional code through the hack/docs scripts. We cannot move forward until these updates are properly applied. Also, please squash your commits — this PR should contain only one commit for the final proposal. Thank you! |
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.
Need to run make generate-docs
to properly update the samples samples used in the docs with the changes.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: chethanm99 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 |
Thanks for the guidance on running The command fails with: This happens in However, the source file ( I've verified that my commits didn't modify this source file ( Could you please advise on how to proceed? Thanks! |
That happened because the changes broke the sample generation process. We automatically generate the samples under the docs/ folder, then insert, replace, or update code based on predefined patterns. It looks like you modified a text string (probably a constant) that comes from the default scaffold. Because of that, the generator can no longer find the original text to replace. It could also be due to a customization applied on top of previously generated code. In this way, you need to find where the error is faced ( what is the replace that is not done, and why the original text is no longer found ) .. Let us know if you need a help with. |
Hi @camilamacedo86 , Thanks, I understand the process. I've done the investigation you suggested ("find where the error is faced... and why the original text is no longer found"). The specific replace that fails is in The reason the text isn't found isn't due to my modifications to that file (I verified that docs/book/src/cronjob-tutorial/testdata/project/api/v1/cronjob_types.go was untouched by my commits), but because the source file itself only contains "CronJobSpec defines the desired state of CronJob" instead of the large block the script expects. So, the script seems to be looking for text that doesn't exist in the source it's processing. How should I handle this discrepancy to get make generate-docs to pass for my PR? |
Hi @chethanm99, Could you please ensure that your PR is rebased with the latest master branch? After rebasing, please run:
The testdata check ensures that all sample projects and docs are properly generated. This validation runs for all PRs. So if the issue persists after rebasing, it's likely caused by changes in this specific PR. Thanks a lot! I hope this helps you move forward. 🙌 |
Updated the files of cronjob_tutorial with minor grammatical changes, particularly api_design.go , controller_implementation.go , e2e_implementation.go , generate_cronjob.go , main_revisited.go , sample.go , writing_tests_controller.go, writing_tests_env.g to enhance readability and guide developers and contributors.