Merge pull request #82161 from d-kuro/feature/fix-broken-link

Fix broken link.

Kubernetes-commit: 9c25981f359603333b3323b44e812b293887749b
This commit is contained in:
Kubernetes Publisher 2019-09-11 10:39:42 -07:00
commit b2dd2e61ff
4 changed files with 9 additions and 9 deletions

4
Godeps/Godeps.json generated
View File

@ -368,7 +368,7 @@
},
{
"ImportPath": "k8s.io/api",
"Rev": "7364b6bdad65"
"Rev": "fb749d2f1064"
},
{
"ImportPath": "k8s.io/apimachinery",
@ -376,7 +376,7 @@
},
{
"ImportPath": "k8s.io/client-go",
"Rev": "3fe2abece89e"
"Rev": "67a413f31aea"
},
{
"ImportPath": "k8s.io/code-generator",

View File

@ -159,7 +159,7 @@ The CRD in [`crd-status-subresource.yaml`](./artifacts/examples/crd-status-subre
for custom resources.
This means that [`UpdateStatus`](./controller.go#L330) can be used by the controller to update only the status part of the custom resource.
To understand why only the status part of the custom resource should be updated, please refer to the [Kubernetes API conventions](https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status).
To understand why only the status part of the custom resource should be updated, please refer to the [Kubernetes API conventions](https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status).
In the above steps, use `crd-status-subresource.yaml` to create the CRD:

8
go.mod
View File

@ -5,9 +5,9 @@ module k8s.io/sample-controller
go 1.12
require (
k8s.io/api v0.0.0-20190831074750-7364b6bdad65
k8s.io/api v0.0.0-20190905160310-fb749d2f1064
k8s.io/apimachinery v0.0.0-20190831074630-461753078381
k8s.io/client-go v0.0.0-20190831074946-3fe2abece89e
k8s.io/client-go v0.0.0-20190906195228-67a413f31aea
k8s.io/code-generator v0.0.0-20190831074504-732c9ca86353
k8s.io/klog v0.4.0
)
@ -20,8 +20,8 @@ replace (
golang.org/x/sys => golang.org/x/sys v0.0.0-20190209173611-3b5209105503
golang.org/x/text => golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db
golang.org/x/time => golang.org/x/time v0.0.0-20161028155119-f51c12702a4d
k8s.io/api => k8s.io/api v0.0.0-20190831074750-7364b6bdad65
k8s.io/api => k8s.io/api v0.0.0-20190905160310-fb749d2f1064
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20190831074630-461753078381
k8s.io/client-go => k8s.io/client-go v0.0.0-20190831074946-3fe2abece89e
k8s.io/client-go => k8s.io/client-go v0.0.0-20190906195228-67a413f31aea
k8s.io/code-generator => k8s.io/code-generator v0.0.0-20190831074504-732c9ca86353
)

4
go.sum
View File

@ -198,9 +198,9 @@ gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
k8s.io/api v0.0.0-20190831074750-7364b6bdad65/go.mod h1:u09ZxrpPFcoUNEQM2GsqT/KpglKAtXdEcK+tSMilQ3Q=
k8s.io/api v0.0.0-20190905160310-fb749d2f1064/go.mod h1:u09ZxrpPFcoUNEQM2GsqT/KpglKAtXdEcK+tSMilQ3Q=
k8s.io/apimachinery v0.0.0-20190831074630-461753078381/go.mod h1:nL6pwRT8NgfF8TT68DBI8uEePRt89cSvoXUVqbkWHq4=
k8s.io/client-go v0.0.0-20190831074946-3fe2abece89e/go.mod h1:hAiMqq+tCk9hxFvWr2DoRiVyCYEGpni4eOcGCQLOEfM=
k8s.io/client-go v0.0.0-20190906195228-67a413f31aea/go.mod h1:xIjk2+YAazaE3BA0+nCwEMFulHzcgsrvtlVWwDkcMhI=
k8s.io/code-generator v0.0.0-20190831074504-732c9ca86353/go.mod h1:V5BD6M4CyaN5m+VthcclXWsVcT1Hu+glwa1bi3MIsyE=
k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6 h1:4s3/R4+OYYYUKptXPhZKjQ04WJ6EhQQVFdjOFvCazDk=
k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=