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

Add glossary term for CRD #6594

Merged
merged 5 commits into from
Feb 16, 2018
Merged

Conversation

Bubblemelon
Copy link
Contributor

@Bubblemelon Bubblemelon commented Dec 5, 2017

This resolves part of issue #5993, adding Custom Resource Definition replacing Third Party Resource.


This change is Reviewable

Custom Resource Definition, that replaces Third Party Resources.
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 5, 2017
@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


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. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Dec 5, 2017
@Bradamant3
Copy link
Contributor

@Bubblemelon you need to sign the Linux Foundation CLA. Also check the Travis build error -- looks as though there's some munged syntax in your commit. (Haven't looked at it yet ...)

@Bubblemelon
Copy link
Contributor Author

I have just finished signing the cla terms and agreements.

@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 Dec 5, 2017
Copy link
Contributor

@Bradamant3 Bradamant3 left a comment

Choose a reason for hiding this comment

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

Difficult to make this one short, complete, and accurate, but check out individual line comments for some suggestions.

- fundamental
- operation
short-description: >
A custom resource definition is the representation of a customization of a particular Kubernetes installation.
Copy link
Contributor

Choose a reason for hiding this comment

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

short description should be a fragment. When we automatically add it to a docs topic, the first part is automatically added. So should start "The representation of ..."
But ... this is also pretty thin as a short description. You can customize a K8s cluster lots o' ways -- what makes a CRD different? (Feel free to ping on Slack if you have questions)

short-description: >
A custom resource definition is the representation of a customization of a particular Kubernetes installation.
long-description: >
A resource definition that defines the endpoint in the Kubernetes API that stores a collection of API objects of a certain kind that is specified.
Copy link
Contributor

Choose a reason for hiding this comment

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

This suggests that you need to add a CRD to be able to call an existing endpoint. But in fact you write a CRD to create custom resources (so that you don't have to write a whole custom K8s API server). If you want to do some more research, here's a great blog post by one of my Heptio colleagues: https://blog.heptio.com/an-introduction-to-extending-kubernetes-with-customresourcedefinitions-76deb675b27a
This is a super tricky term and concept, so bonus points for tackling it!

@Bradamant3
Copy link
Contributor

Oh, and the munged syntax I think is with the tag location.

@Bubblemelon
Copy link
Contributor Author

Hello @Bradamant3, thanks for giving the the heads up. There's some silly formating errors. :)

Minor formating error
@k8sio-netlify-preview-bot
Copy link
Collaborator

k8sio-netlify-preview-bot commented Dec 5, 2017

Deploy preview ready!

Built with commit 312d686

https://deploy-preview-6594--kubernetes-io-master-staging.netlify.com

@Bubblemelon
Copy link
Contributor Author

turns out the id: key is necessary !

@Bubblemelon
Copy link
Contributor Author

Hi @Bradamant3 , mind giving me clues on how to pass this travis-ci check ?

Copy link
Contributor

@Bradamant3 Bradamant3 left a comment

Choose a reason for hiding this comment

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

OK, looks as though you've got the file happy in the build. Now take a look at the line-specific review comments from my first review -- let me know if anything isn't clear.

short-description: >
A custom resource definition is the representation of a customization of a particular Kubernetes installation.
long-description: >
A resource definition that defines the endpoint in the Kubernetes API that stores a collection of API objects of a certain kind that is specified.
Copy link
Contributor

Choose a reason for hiding this comment

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

that is specified reads awkwardly, probably can be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay noted!

Copy link
Member

@nikhita nikhita left a comment

Choose a reason for hiding this comment

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

@Bubblemelon Thanks for submitting this PR! 🎉

Left a bunch of comments but the PR is awesome as-is. 😄

@@ -0,0 +1,10 @@
id: Custom Resource Definition
Copy link
Member

Choose a reason for hiding this comment

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

CustomResourceDefinition is one word.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done ! 😄

@@ -0,0 +1,10 @@
id: Custom Resource Definition
name: Custom Resource Definition
Copy link
Member

Choose a reason for hiding this comment

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

CustomResourceDefinition is one word.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

name: Custom Resource Definition
tags:
- fundamental
- operation
Copy link
Member

@nikhita nikhita Dec 21, 2017

Choose a reason for hiding this comment

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

Also extension.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

tags:
- fundamental
- operation
full-link: docs/tasks/access-kubernetes-api/migrate-third-party-resource/
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done 😃

- operation
full-link: docs/tasks/access-kubernetes-api/migrate-third-party-resource/
short-description: >
A custom resource definition is the representation of a customization of a particular Kubernetes installation.
Copy link
Member

@nikhita nikhita Dec 21, 2017

Choose a reason for hiding this comment

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

Something like: An API object that provides a way of extending the Kubernetes API by defining custom objects.?

Would prefer to use the word "API object" to stay consistent with Deployment, Service, etc. Also, because it is an API object. :)

Copy link
Contributor

Choose a reason for hiding this comment

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

The trouble with "API object" in this context is that an object is created from a call to a resource. Which, in this case, is a resource created by the CRD. (The core docs page on CRDs is confusing here, and makes a muddle out of "endpoint", "resource", "object".) There's no easy solution here, I'm afraid. Also, short description still needs to be made a fragment.

short-description: >
A custom resource definition is the representation of a customization of a particular Kubernetes installation.
long-description: >
A resource definition that defines the endpoint in the Kubernetes API that stores a collection of API objects of a certain kind that is specified.
Copy link
Member

Choose a reason for hiding this comment

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

Something like: Creating a CustomResourceDefinition creates a new RESTful API endpoint which can be used to create and manage custom resources.?

We should also have a glossary term for custom resources (and we could link it here). Most users who search for CRDs also search for custom resources.

tags:
- fundamental
- operation
full-link: docs/tasks/access-kubernetes-api/migrate-third-party-resource/
Copy link
Member

Choose a reason for hiding this comment

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

Would also add aka below this. See https://github.com/kubernetes/website/blob/master/_data/glossary/_example.yml#L4.

Points under aka:

  • CRD
  • Formerly known as Third Party Resource (TPR)

Copy link
Member

@nikhita nikhita Dec 21, 2017

Choose a reason for hiding this comment

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

Also, related below aka. See https://github.com/kubernetes/website/blob/master/_data/glossary/_example.yml#L8.

Points under related:

  • id for the glossary of custom resources (please create a dummy link here, we can add the glossary for custom resources later)

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 @nikhita ! Thanks for providing all these great suggestions. The _example.yml was particularly helpful. 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll leave the related section aside for now until someone responds to your request on this issue. However I would agree that custom resources should have its own glossary definition 😄

Copy link
Member

Choose a reason for hiding this comment

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

I'll leave the related section aside for now until someone responds to your request on this issue.

Sure, makes sense. 👍

@nikhita
Copy link
Member

nikhita commented Dec 21, 2017

@Bubblemelon Can you update the PR title to say something like Add glossary term for CRD? Would be easier to search/link issues later. :)

@tengqm tengqm changed the title Resolving part of issue #5993 Add glossary term for CRD Dec 25, 2017
Made a minor edit to "name" and "id" and added "aka" section, but should require a "related" section. The related section may have the Custom Resource term, but there is currently no glossary term for Custom Resource.
@nikhita
Copy link
Member

nikhita commented Jan 4, 2018

@Bubblemelon Thanks for making the changes! 😄 Can you also update the description?

I think we can use custom objects even without mentioning the glossary term for custom resources. But I would like someone from the docs team to comment if this fine.

Copy link
Contributor

@Bradamant3 Bradamant3 left a comment

Choose a reason for hiding this comment

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

Still needs some more work. This is a difficult item -- kudos for taking it on!

- operation
full-link: docs/tasks/access-kubernetes-api/migrate-third-party-resource/
short-description: >
A custom resource definition is the representation of a customization of a particular Kubernetes installation.
Copy link
Contributor

Choose a reason for hiding this comment

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

The trouble with "API object" in this context is that an object is created from a call to a resource. Which, in this case, is a resource created by the CRD. (The core docs page on CRDs is confusing here, and makes a muddle out of "endpoint", "resource", "object".) There's no easy solution here, I'm afraid. Also, short description still needs to be made a fragment.

@Bradamant3 Bradamant3 closed this Feb 16, 2018
@Bradamant3 Bradamant3 reopened this Feb 16, 2018
@Bradamant3
Copy link
Contributor

/lgtm
Merging bc there are still needed changes, but this is a first-time contributor from the docs summit at Kubecon Austin 2017. It's embarrassingly late, and there are too many review comments for a newcomer to parse easily. n.b. let's do a better job of steering folks who are new to both docs and K8s toward more straightforward glossary terms. CRDs are difficult. Thanks @Bubblemelon for getting us started here!

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Bradamant3

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 Feb 16, 2018
@Bradamant3 Bradamant3 dismissed their stale review February 16, 2018 16:42

need to merge and make more changes in new PR

@k8s-ci-robot k8s-ci-robot merged commit 01a981b into kubernetes:master Feb 16, 2018
bsalamat pushed a commit to bsalamat/kubernetes.github.io that referenced this pull request Feb 23, 2018
* Add files via upload

Custom Resource Definition, that replaces Third Party Resources.

* Update customresourcedefinition.yaml

Minor formating error

* Update customresourcedefinition.yaml

missing id key

* Update customresourcedefinition.yaml

deleted aka key

* Update customresourcedefinition.yaml

Made a minor edit to "name" and "id" and added "aka" section, but should require a "related" section. The related section may have the Custom Resource term, but there is currently no glossary term for Custom Resource.
tehut pushed a commit to tehut/website that referenced this pull request Mar 8, 2018
* Add files via upload

Custom Resource Definition, that replaces Third Party Resources.

* Update customresourcedefinition.yaml

Minor formating error

* Update customresourcedefinition.yaml

missing id key

* Update customresourcedefinition.yaml

deleted aka key

* Update customresourcedefinition.yaml

Made a minor edit to "name" and "id" and added "aka" section, but should require a "related" section. The related section may have the Custom Resource term, but there is currently no glossary term for Custom Resource.
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/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants