Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
f893245f
Commit
f893245f
authored
Sep 17, 2015
by
Alex Mohr
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14103 from feihujiang/fixWrongPathOfDocument
Fixes the wrong path of documents
parents
959c1a14
51f59f3c
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
11 deletions
+11
-11
interfaces.go
pkg/api/meta/interfaces.go
+1
-1
types.go
pkg/api/types.go
+1
-1
types.go
pkg/api/v1/types.go
+1
-1
types_swagger_doc_generated.go
pkg/api/v1/types_swagger_doc_generated.go
+1
-1
validation.go
pkg/api/validation/validation.go
+2
-2
doc.go
pkg/client/unversioned/doc.go
+1
-1
manager_test.go
pkg/kubelet/dockertools/manager_test.go
+1
-1
master_test.go
pkg/master/master_test.go
+1
-1
codec_test.go
pkg/registry/thirdpartyresourcedata/codec_test.go
+1
-1
patch.go
pkg/util/strategicpatch/patch.go
+1
-1
No files found.
pkg/api/meta/interfaces.go
View file @
f893245f
...
@@ -141,7 +141,7 @@ type RESTMapping struct {
...
@@ -141,7 +141,7 @@ type RESTMapping struct {
// RESTMapper allows clients to map resources to kind, and map kind and version
// RESTMapper allows clients to map resources to kind, and map kind and version
// to interfaces for manipulating those objects. It is primarily intended for
// to interfaces for manipulating those objects. It is primarily intended for
// consumers of Kubernetes compatible REST APIs as defined in docs/api-conventions.md.
// consumers of Kubernetes compatible REST APIs as defined in docs/
devel/
api-conventions.md.
//
//
// The Kubernetes API provides versioned resources and object kinds which are scoped
// The Kubernetes API provides versioned resources and object kinds which are scoped
// to API groups. In other words, kinds and resources should not be assumed to be
// to API groups. In other words, kinds and resources should not be assumed to be
...
...
pkg/api/types.go
View file @
f893245f
...
@@ -1465,7 +1465,7 @@ type NodeAddress struct {
...
@@ -1465,7 +1465,7 @@ type NodeAddress struct {
}
}
// NodeResources is an object for conveying resource information about a node.
// NodeResources is an object for conveying resource information about a node.
// see http://
docs.k8s.io
/design/resources.md for more details.
// see http://
releases.k8s.io/HEAD/docs
/design/resources.md for more details.
type
NodeResources
struct
{
type
NodeResources
struct
{
// Capacity represents the available resources of a node
// Capacity represents the available resources of a node
Capacity
ResourceList
`json:"capacity,omitempty"`
Capacity
ResourceList
`json:"capacity,omitempty"`
...
...
pkg/api/v1/types.go
View file @
f893245f
...
@@ -2650,7 +2650,7 @@ type ThirdPartyResource struct {
...
@@ -2650,7 +2650,7 @@ type ThirdPartyResource struct {
type
ThirdPartyResourceList
struct
{
type
ThirdPartyResourceList
struct
{
TypeMeta
`json:",inline"`
TypeMeta
`json:",inline"`
// Standard list metadata.
// Standard list metadata.
// More info: http://
docs.k8s.io
/api-conventions.md#metadata
// More info: http://
releases.k8s.io/HEAD/docs/devel
/api-conventions.md#metadata
ListMeta
`json:"metadata,omitempty"`
ListMeta
`json:"metadata,omitempty"`
// Items is a list of schema objects.
// Items is a list of schema objects.
...
...
pkg/api/v1/types_swagger_doc_generated.go
View file @
f893245f
...
@@ -1378,7 +1378,7 @@ func (ThirdPartyResourceData) SwaggerDoc() map[string]string {
...
@@ -1378,7 +1378,7 @@ func (ThirdPartyResourceData) SwaggerDoc() map[string]string {
var
map_ThirdPartyResourceList
=
map
[
string
]
string
{
var
map_ThirdPartyResourceList
=
map
[
string
]
string
{
""
:
"ThirdPartyResourceList is a list of ThirdPartyResource."
,
""
:
"ThirdPartyResourceList is a list of ThirdPartyResource."
,
"metadata"
:
"Standard list metadata. More info: http://
docs.k8s.io
/api-conventions.md#metadata"
,
"metadata"
:
"Standard list metadata. More info: http://
releases.k8s.io/HEAD/docs/devel
/api-conventions.md#metadata"
,
"items"
:
"Items is a list of schema objects."
,
"items"
:
"Items is a list of schema objects."
,
}
}
...
...
pkg/api/validation/validation.go
View file @
f893245f
...
@@ -1412,7 +1412,7 @@ func ValidateNodeUpdate(oldNode *api.Node, node *api.Node) errs.ValidationErrorL
...
@@ -1412,7 +1412,7 @@ func ValidateNodeUpdate(oldNode *api.Node, node *api.Node) errs.ValidationErrorL
}
}
// Validate compute resource typename.
// Validate compute resource typename.
// Refer to docs/resources.md for more details.
// Refer to docs/
design/
resources.md for more details.
func
validateResourceName
(
value
string
,
field
string
)
errs
.
ValidationErrorList
{
func
validateResourceName
(
value
string
,
field
string
)
errs
.
ValidationErrorList
{
allErrs
:=
errs
.
ValidationErrorList
{}
allErrs
:=
errs
.
ValidationErrorList
{}
if
!
validation
.
IsQualifiedName
(
value
)
{
if
!
validation
.
IsQualifiedName
(
value
)
{
...
@@ -1433,7 +1433,7 @@ func ValidateLimitRange(limitRange *api.LimitRange) errs.ValidationErrorList {
...
@@ -1433,7 +1433,7 @@ func ValidateLimitRange(limitRange *api.LimitRange) errs.ValidationErrorList {
allErrs
:=
errs
.
ValidationErrorList
{}
allErrs
:=
errs
.
ValidationErrorList
{}
allErrs
=
append
(
allErrs
,
ValidateObjectMeta
(
&
limitRange
.
ObjectMeta
,
true
,
ValidateLimitRangeName
)
.
Prefix
(
"metadata"
)
...
)
allErrs
=
append
(
allErrs
,
ValidateObjectMeta
(
&
limitRange
.
ObjectMeta
,
true
,
ValidateLimitRangeName
)
.
Prefix
(
"metadata"
)
...
)
// ensure resource names are properly qualified per docs/resources.md
// ensure resource names are properly qualified per docs/
design/
resources.md
limitTypeSet
:=
map
[
api
.
LimitType
]
bool
{}
limitTypeSet
:=
map
[
api
.
LimitType
]
bool
{}
for
i
:=
range
limitRange
.
Spec
.
Limits
{
for
i
:=
range
limitRange
.
Spec
.
Limits
{
limit
:=
limitRange
.
Spec
.
Limits
[
i
]
limit
:=
limitRange
.
Spec
.
Limits
[
i
]
...
...
pkg/client/unversioned/doc.go
View file @
f893245f
...
@@ -52,7 +52,7 @@ More advanced consumers may wish to provide their own transport via a http.Round
...
@@ -52,7 +52,7 @@ More advanced consumers may wish to provide their own transport via a http.Round
}
}
client, err := client.New(config)
client, err := client.New(config)
The RESTClient type implements the Kubernetes API conventions (see `docs/api-conventions.md`)
The RESTClient type implements the Kubernetes API conventions (see `docs/
devel/
api-conventions.md`)
for a given API path and is intended for use by consumers implementing their own Kubernetes
for a given API path and is intended for use by consumers implementing their own Kubernetes
compatible APIs.
compatible APIs.
*/
*/
...
...
pkg/kubelet/dockertools/manager_test.go
View file @
f893245f
...
@@ -569,7 +569,7 @@ func replaceProber(dm *DockerManager, result probe.Result, err error) {
...
@@ -569,7 +569,7 @@ func replaceProber(dm *DockerManager, result probe.Result, err error) {
// Unknown or error.
// Unknown or error.
//
//
// PLEASE READ THE PROBE DOCS BEFORE CHANGING THIS TEST IF YOU ARE UNSURE HOW PROBES ARE SUPPOSED TO WORK:
// PLEASE READ THE PROBE DOCS BEFORE CHANGING THIS TEST IF YOU ARE UNSURE HOW PROBES ARE SUPPOSED TO WORK:
// (See https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/pod-states.md#pod-conditions)
// (See https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/
user-guide/
pod-states.md#pod-conditions)
func
TestProbeContainer
(
t
*
testing
.
T
)
{
func
TestProbeContainer
(
t
*
testing
.
T
)
{
manager
,
_
:=
newTestDockerManager
()
manager
,
_
:=
newTestDockerManager
()
dc
:=
&
docker
.
APIContainers
{
dc
:=
&
docker
.
APIContainers
{
...
...
pkg/master/master_test.go
View file @
f893245f
...
@@ -434,7 +434,7 @@ type Foo struct {
...
@@ -434,7 +434,7 @@ type Foo struct {
type
FooList
struct
{
type
FooList
struct
{
api
.
TypeMeta
`json:",inline"`
api
.
TypeMeta
`json:",inline"`
api
.
ListMeta
`json:"metadata,omitempty" description:"standard list metadata; see http://
docs.k8s.io
/api-conventions.md#metadata"`
api
.
ListMeta
`json:"metadata,omitempty" description:"standard list metadata; see http://
releases.k8s.io/HEAD/docs/devel
/api-conventions.md#metadata"`
items
[]
Foo
`json:"items"`
items
[]
Foo
`json:"items"`
}
}
...
...
pkg/registry/thirdpartyresourcedata/codec_test.go
View file @
f893245f
...
@@ -37,7 +37,7 @@ type Foo struct {
...
@@ -37,7 +37,7 @@ type Foo struct {
type
FooList
struct
{
type
FooList
struct
{
api
.
TypeMeta
`json:",inline"`
api
.
TypeMeta
`json:",inline"`
api
.
ListMeta
`json:"metadata,omitempty" description:"standard list metadata; see http://
docs.k8s.io
/api-conventions.md#metadata"`
api
.
ListMeta
`json:"metadata,omitempty" description:"standard list metadata; see http://
releases.k8s.io/HEAD/docs/devel
/api-conventions.md#metadata"`
items
[]
Foo
`json:"items"`
items
[]
Foo
`json:"items"`
}
}
...
...
pkg/util/strategicpatch/patch.go
View file @
f893245f
...
@@ -30,7 +30,7 @@ import (
...
@@ -30,7 +30,7 @@ import (
// certain fields with metadata that indicates whether the elements of JSON
// certain fields with metadata that indicates whether the elements of JSON
// lists should be merged or replaced.
// lists should be merged or replaced.
//
//
// For more information, see the PATCH section of docs/api-conventions.md.
// For more information, see the PATCH section of docs/
devel/
api-conventions.md.
//
//
// Some of the content of this package was borrowed with minor adaptations from
// Some of the content of this package was borrowed with minor adaptations from
// evanphx/json-patch and openshift/origin.
// evanphx/json-patch and openshift/origin.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment