Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃摉 Added link for cronjob tutorial #3411

Merged
merged 1 commit into from
May 16, 2023

Conversation

lauchokyip
Copy link
Contributor

Description: Added link for cronjob tutorial

Motivation: When reading through kubebuilder book, I saw the the Cronjob tutorial was mentioned but there was no link that points to it

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 15, 2023
@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 15, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @lauchokyip. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@@ -1,7 +1,7 @@
# Admission Webhook for Core Types

It is very easy to build admission webhooks for CRDs, which has been covered in
the CronJob tutorial. Given that kubebuilder doesn't support webhook scaffolding
the [CronJob tutorial](https://github.com/kubernetes-sigs/kubebuilder/tree/master/docs/book/src/cronjob-tutorial). Given that kubebuilder doesn't support webhook scaffolding
Copy link
Member

Choose a reason for hiding this comment

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

All links need to be within alias so

Suggested change
the [CronJob tutorial](https://github.com/kubernetes-sigs/kubebuilder/tree/master/docs/book/src/cronjob-tutorial). Given that kubebuilder doesn't support webhook scaffolding
the [CronJob tutorial][cronjob-tutorial]. Given that kubebuilder doesn't support webhook scaffolding

Either, they need to be defined at the bottom of the page, and when the link is for the docs itself, it must be using the relative path.

Can you please change it out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I observed there are a lot of links that aren't within aliases tho

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Hi @lauchokyip,

Feel free to correct any links you come across that lack aliases. Ideally, they shouldn't exist.

Utilizing aliases and adhering to the documentation standards assist us in keeping the documents well-maintained.

Copy link
Member

Choose a reason for hiding this comment

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

Also, if the following criteria for the docs are not in your Contributing guide, would be great get your help to add them:

To keep the maintainability of our docs, links must be:

  • Added with alias:

// TODO add example

  • They should be added at the bottom of the doc
  • If the link is for a Kubebuilder doc then, it should use relative paths instead of the URL

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @lauchokyip,

Feel free to correct any links you come across that lack aliases. Ideally, they shouldn't exist.

Utilizing aliases and adhering to the documentation standards assist us in keeping the documents well-maintained.

We could gather help from good-first-issue . I don't have the resources now but I can lead the effort when I have time

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, if the following criteria for the docs are not in your Contributing guide, would be great get your help to add them:

To keep the maintainability of our docs, links must be:

  • Added with alias:

// TODO add example

  • They should be added at the bottom of the doc
  • If the link is for a Kubebuilder doc then, it should use relative paths instead of the URL

Sounds good, I think this should be in another PR since this title is "Added link for cronjob tutorial" , wdyt?

Copy link
Member

Choose a reason for hiding this comment

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

HI @lauchokyip,

I think the most important is we ensure via reviews that we follow up that.
But if someone would like to fix the places that we get the link merged without comply with the rule all fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@camilamacedo86 , Do you mean by adding what you proposed into https://github.com/kubernetes-sigs/kubebuilder/blob/master/CONTRIBUTING.md#how-to-contribute-to-docs? Sorry I don't quite understand what "ensure via reviews that we follow up that" mean?

I was thinking of also adding "For a smooth PR process, please ensure you read the CONTRIBUTING.md and that you include the following information:" and point people to the CONTRIBUTING guideline

Copy link
Member

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

/ok-to-test
/lgtm
/approved

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 16, 2023
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 16, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, lauchokyip

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 16, 2023
@k8s-ci-robot k8s-ci-robot merged commit abbc8dd into kubernetes-sigs:master May 16, 2023
8 checks passed
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants