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

v1 is specified in apiVersion field #4127

Closed
wants to merge 1 commit into from
Closed

Conversation

madorn
Copy link
Contributor

@madorn madorn commented Jun 17, 2017

The use of not here may be confusing to newcomers.

Is the intention to suggest the apiVersion field defaults to v1 unless otherwise specified?

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
For 1.7 Features: set Milestone to 1.7 and Base Branch to release-1.7
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

NOTE: Please check the “Allow edits from maintainers” box below to allow
reviewers fix problems on your patch and speed up the review process.
Please delete this note before submitting the pull request.


This change is Reviewable

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 17, 2017
@chenopis chenopis requested a review from ahmetb June 19, 2017 23:25
@ahmetb
Copy link
Member

ahmetb commented Jun 20, 2017

I am not equipped to answer this question myself (I am confused too) so I will defer the tech review to someone else. cc: @kubernetes/sig-api-machinery-pr-reviews

@@ -77,7 +77,7 @@ The API group is specified in a REST path and in the `apiVersion` field of a ser
Currently there are several API groups in use:

1. the "core" (oftentimes called "legacy", due to not having explicit group name) group, which is at
REST path `/api/v1` and is not specified as part of the `apiVersion` field, e.g. `apiVersion: v1`.
REST path `/api/v1` and is specified as part of the `apiVersion` field, e.g. `apiVersion: v1`.
Copy link
Contributor

Choose a reason for hiding this comment

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

it is meant that the apiVersion value is not /v1 (i.e. empty group name), but v1.

Copy link
Member

Choose a reason for hiding this comment

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

@madorn 👋 hello there, do you have time to address the PR feedback?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ahmetb @sttts thanks for clarification. it would be more clear to newcomers if we remove the use of not here and just suggest using apiVersion: v1.

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we should reformulate the sentence and avoid "be or not be specified". Seems to be hard to understand.

Copy link
Contributor

Choose a reason for hiding this comment

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

So, should the sentence be:

The core group, often referred to as legacy, is at REST path /api/v1 and can be accessed using apiVersion: v1.

Copy link
Contributor

Choose a reason for hiding this comment

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

"can be accessed using ..." still sounds odd.

How about

The core group, often referred to as the "legacy group", is at the REST path /api/v1 and uses `apiVersion: v1`.

E.g. the same wording as in the next paragraph.

@chenopis
Copy link
Contributor

@madorn @sttts Is my suggestion for rewording the sentence sufficient?

@steveperry-53
Copy link
Contributor

Ping @madorn @sttts

@xiangpengzhao xiangpengzhao added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 19, 2017
@steveperry-53
Copy link
Contributor

Sorry, I don't agree with this change. The group name "core" is not specified as part of the apiVersion field. So this sentence seems incorrect to me:

the “core” ... group, which is at REST path /api/v1 and is specified as part of the apiVersion field, e.g. apiVersion: v1.

@sttts
Copy link
Contributor

sttts commented Oct 19, 2017

@steveperry-53 compare my comment #4127 (comment). The point of the PR is to clarify exactly this. So the issue is still open and correct variants are proposed in the review comments. We are just waiting for the PR being updated.

@sttts sttts reopened this Oct 19, 2017
@steveperry-53
Copy link
Contributor

@madorn @stts @cheopis @ahmetb
Now that this PR has been reopened, let's move forward. @madorn Please make the suggested change.

I'm OK with this:
The core group, often referred to as the "legacy group", is at the REST path /api/v1 and uses apiVersion: v1.

@ahmetb
Copy link
Member

ahmetb commented Oct 19, 2017

I think the best course of action is to close this PR and open another.

@steveperry-53
Copy link
Contributor

In the interest of moving this forward, I'm going to create a duplicate.
Duplicate of #6024.

@ahmetb ahmetb removed their request for review November 10, 2017 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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.

8 participants