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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate site content: contributing docs #4709

Conversation

dani-santos-code
Copy link
Contributor

This PR is part of the larger docs consolidation issue: #4338

I copied over the files from cli-experimental, ran locally and it seems to be correct

Screen Shot 2022-07-13 at 9 56 03 PM

I followed a similar pattern we see in this other migration PR

@k8s-ci-robot
Copy link
Contributor

@dani-santos-code: This PR has multiple commits, and the default merge method is: merge.
You can request commits to be squashed using the label: tide/merge-method-squash

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.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 14, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Jul 14, 2022
@k8s-ci-robot
Copy link
Contributor

Welcome @dani-santos-code!

It looks like this is your first PR to kubernetes-sigs/kustomize 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/kustomize has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 14, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @dani-santos-code. 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.

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 14, 2022
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jul 14, 2022
@natasha41575
Copy link
Contributor

/ok-to-test

@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 Jul 15, 2022
@natasha41575
Copy link
Contributor

@KnVerey Would it be possible to set up a netlify preview in CI like we have in cli-experimental here?

@KnVerey
Copy link
Contributor

KnVerey commented Jul 19, 2022

@KnVerey Would it be possible to set up a netlify preview in CI like we have in cli-experimental here?

I want to make sure we don't publish the site "for real" anywhere before it is ready, but you're right that the preview would be very handy. I've put in a request at kubernetes/org#3564. If it is approved, we will need to figure out how to disable deploys off the master branch (or failing that, disable crawlers).

{{< /alert >}}

## Call stack
Call stack when running `kustomize build`, with links to code:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this part changed quite a bit. I updated all the links, but since the code changed quite a bit, I'd like some confirmation on what to display here. Also, not quite sure if we want to capture every single call...

for reference, this is what we had before: https://kubectl.docs.kubernetes.io/contributing/kustomize/howitworks/

alternatively, we can just mention the main functions: Build Command(the entry point), MakeKustomizer, Run, and the bit that writes the output to a yaml file.

what do you think? I'm not sure it is so helpful linking to every single func and the additional descriptions, since we can read them once we navigate through the code.

Once one identifies the entry point and the main functions, it's easy to navigate on Github, by clicking through. I wouldn't go back to this doc in order to do that.

At least, I found it a bit confusing when following the instructions

@KnVerey

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with you @dani-santos-code -- it's more important to identify the key entrypoints for exploration than to walk through every bit, which will get stale, and which probably isn't a good experience for the reader anyway. As a new contributor, you're really the target audience here! So feel free to rewrite this page to reflect the portion you find interesting/useful. 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed here: b42597e. let me know if this rewording is ok

@dani-santos-code
Copy link
Contributor Author

thank you for your feedback @natasha41575. I think I addressed most of your feedback. Would appreciate a re-review. Thank you! 🙏

[kind/feature]: https://github.com/kubernetes-sigs/kustomize/labels/kind%2Ffeature
[sig-cli bi-weekly]: https://github.com/kubernetes/community/tree/master/sig-cli#meetings

Following is the process for proposing a new Kustomize feature:
Copy link
Contributor

Choose a reason for hiding this comment

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

We have instructions about this in three places:

I've added a note to the new coordination spreadsheet about this. I'm thinking 1+2 should move to the issue template, the rest should be integrated with https://github.com/kubernetes-sigs/kustomize/tree/master/proposals where missing, and this page should just point there. If you want to add that to this PR then go for it, but otherwise we can defer it. At minimum, let's remove step 3 (which we don't want them to do in the general case), step 7 (not really relevant IMO), and the "Expect comments..." line, which isn't realistic, as much as I wish it were.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, okie! makes sense!

I think just adding to the docs you shared makes sense since it already outlines what one should do. And yeah, I went through the issue template. It adds the label and everything.

So opting to just point to the proposals doc. Addressed here:
eeb237d

site/content/en/contribute/howitworks/_index.md Outdated Show resolved Hide resolved
site/content/en/contribute/howitworks/_index.md Outdated Show resolved Hide resolved
{{< /alert >}}

## Call stack
Call stack when running `kustomize build`, with links to code:
Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with you @dani-santos-code -- it's more important to identify the key entrypoints for exploration than to walk through every bit, which will get stale, and which probably isn't a good experience for the reader anyway. As a new contributor, you're really the target audience here! So feel free to rewrite this page to reflect the portion you find interesting/useful. 😄


Add `go` to your PATH

### Install kubeval
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's change this to just Install tools and have them run make install-tools, so we don't have to keep these lists up to date (currently incomplete).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated here: 324de9c

site/content/en/contribute/mac/_index.md Outdated Show resolved Hide resolved
site/content/en/contribute/windows/_index.md Outdated Show resolved Hide resolved
site/content/en/contribute/windows/_index.md Outdated Show resolved Hide resolved
- Navigate to the Kustomize `travis` directory
- ```Example: C:\_go\src\sigs.k8s.io\kustomize\travis```
- Now Execute:
- ```.\Invoke-PreCommit.ps1```
Copy link
Contributor

Choose a reason for hiding this comment

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

@natasha41575 wdyt about deleting the Windows doc and the script referenced here entirely? I can't test it, but at a glance I suspect that what this will run is very incomplete compared to the make verify-kustomize-repo target we use. And e.g. the Travis reference above is definitely long-invalid. As much as I'd love to have a Windows contributor, a doc we can't/don't effectively maintain probably won't be helpful in any case.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's go ahead and remove this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed here: b32b355

site/content/en/contribute/_index.md Show resolved Hide resolved
@KnVerey
Copy link
Contributor

KnVerey commented Sep 29, 2022

/tide merge-method-squash

@KnVerey
Copy link
Contributor

KnVerey commented Sep 29, 2022

/label tide/merge-method-squash

@k8s-ci-robot k8s-ci-robot added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Sep 29, 2022
@KnVerey
Copy link
Contributor

KnVerey commented Sep 29, 2022

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 29, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dani-santos-code, KnVerey

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 Sep 29, 2022
@k8s-ci-robot k8s-ci-robot merged commit 506dc4f into kubernetes-sigs:master Sep 29, 2022
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/L Denotes a PR that changes 100-499 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants