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

Improve README.md with better example and descriptions. #250

Merged
merged 2 commits into from
Mar 22, 2019

Conversation

brendandburns
Copy link
Contributor

Fixes #249

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 5, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 5, 2019
Copy link
Contributor

@itowlson itowlson left a comment

Choose a reason for hiding this comment

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

Think there might be a mixup around the creating and deleting sections, otherwise looks good!

## Generating code
### Listing Objects
```c#
var namespaces = client.ListNamespace();
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: We should prefer showing the async methods to the blocking ones. It is easy to translate in either direction of course, but we should set the expectation that async is the 'normal' way to do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the examples are all sync right now. Let's do this in a separate PR.

README.md Outdated
var result = client.CreateNamespace(ns);
Console.WriteLine(result);

var result = client.CreateNamespace(ns);
Copy link
Contributor

Choose a reason for hiding this comment

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

Not clear why you're doing this twice. Is it a copypasta, or are you intending to show the behaviour if a user creates an already-created resource? If the latter then suggest commenting it to explain the expected output.

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually I think it must be a copypasta because redeclaring result won't compile will it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, copy/paste

README.md Outdated
```

# Usage
### Deleting Objects
Copy link
Contributor

Choose a reason for hiding this comment

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

Covered under Creating and Deleting Objects or did you mean to move the delete code from there to under here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops. fixed.

README.md Outdated
```

# Usage
### Deleting Objects
```c#
Copy link
Contributor

Choose a reason for hiding this comment

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

Possible unclosed Markdown tag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed.

@brendandburns
Copy link
Contributor Author

@itowlson friendly ping on this one :)

@brendandburns
Copy link
Contributor Author

@itowlson pingity ping ping :)

Thanks!

@brendandburns brendandburns added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 22, 2019
@k8s-ci-robot k8s-ci-robot merged commit bf995e5 into kubernetes-client:master Mar 22, 2019
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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants