From 6daa99cdd8a592dfd9325be068e30a53edb642b9 Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Fri, 9 Aug 2019 04:59:24 +0200 Subject: [PATCH] Remove references to selflinks (#15751) --- .../_posts/2018-01-00-Introducing-Client-Go-Version-6.md | 2 +- .../2018-03-00-How-To-Integrate-Rollingupdate-Strategy.md | 2 -- content/en/docs/concepts/configuration/secret.md | 4 ---- .../custom-resources/custom-resource-definitions.md | 5 +---- .../tasks/access-kubernetes-api/http-proxy-access-api.md | 2 -- .../en/docs/tasks/administer-cluster/reconfigure-kubelet.md | 1 - .../tasks/configure-pod-container/configure-pod-configmap.md | 5 ----- .../configure-pod-container/configure-service-account.md | 3 --- .../debug-application-introspection.md | 2 -- .../en/docs/tasks/debug-application-cluster/debug-service.md | 1 - content/en/docs/tutorials/stateful-application/cassandra.md | 1 - content/ko/docs/tutorials/stateful-application/cassandra.md | 1 - content/zh/docs/concepts/configuration/secret.md | 1 - content/zh/docs/tasks/administer-cluster/cpu-memory-limit.md | 1 - .../configuration/configure-redis-using-configmap.md | 1 - content/zh/docs/tutorials/stateful-application/cassandra.md | 2 -- 16 files changed, 2 insertions(+), 32 deletions(-) diff --git a/content/en/blog/_posts/2018-01-00-Introducing-Client-Go-Version-6.md b/content/en/blog/_posts/2018-01-00-Introducing-Client-Go-Version-6.md index 067d555cdf..d66845f809 100644 --- a/content/en/blog/_posts/2018-01-00-Introducing-Client-Go-Version-6.md +++ b/content/en/blog/_posts/2018-01-00-Introducing-Client-Go-Version-6.md @@ -74,7 +74,7 @@ spec: ``` $ kubectl create -f app.yaml -The App "example-app" is invalid: []: Invalid value: map[string]interface {}{"apiVersion":"mygroup.example.com/v1", "kind":"App", "metadata":map[string]interface {}{"creationTimestamp":"2017-08-31T20:52:54Z", "uid":"5c674651-8e8e-11e7-86ad-f0761cb232d1", "selfLink":"", "clusterName":"", "name":"example-app", "namespace":"default", "deletionTimestamp":interface {}(nil), "deletionGracePeriodSeconds":(\*int64)(nil)}, "spec":map[string]interface {}{"replicas":15, "version":"v1.0.2"}}: +The App "example-app" is invalid: []: Invalid value: map[string]interface {}{"apiVersion":"mygroup.example.com/v1", "kind":"App", "metadata":map[string]interface {}{"creationTimestamp":"2017-08-31T20:52:54Z", "uid":"5c674651-8e8e-11e7-86ad-f0761cb232d1", "clusterName":"", "name":"example-app", "namespace":"default", "deletionTimestamp":interface {}(nil), "deletionGracePeriodSeconds":(\*int64)(nil)}, "spec":map[string]interface {}{"replicas":15, "version":"v1.0.2"}}: validation failure list: spec.replicas in body should be less than or equal to 10 spec.version in body should be one of [v1.0.0 v1.0.1] diff --git a/content/en/blog/_posts/2018-03-00-How-To-Integrate-Rollingupdate-Strategy.md b/content/en/blog/_posts/2018-03-00-How-To-Integrate-Rollingupdate-Strategy.md index fa2279ec70..5cd4742df5 100644 --- a/content/en/blog/_posts/2018-03-00-How-To-Integrate-Rollingupdate-Strategy.md +++ b/content/en/blog/_posts/2018-03-00-How-To-Integrate-Rollingupdate-Strategy.md @@ -168,8 +168,6 @@ items: resourceVersion: "415852" - selfLink: /apis/mysql.orain.com/v1/namespaces/default/mysqlclusters/clustershard-c - uid: 6bb089bb-b56f-11e7-ae02-525400e717a6 spec: diff --git a/content/en/docs/concepts/configuration/secret.md b/content/en/docs/concepts/configuration/secret.md index 6c15dc8bed..1ff4d81c09 100644 --- a/content/en/docs/concepts/configuration/secret.md +++ b/content/en/docs/concepts/configuration/secret.md @@ -209,7 +209,6 @@ metadata: name: mysecret namespace: default resourceVersion: "7225" - selfLink: /api/v1/namespaces/default/secrets/mysecret uid: c280ad2e-e916-11e8-98f2-025000000001 type: Opaque data: @@ -241,7 +240,6 @@ metadata: name: mysecret namespace: default resourceVersion: "7579" - selfLink: /api/v1/namespaces/default/secrets/mysecret uid: 91460ecb-e917-11e8-98f2-025000000001 type: Opaque data: @@ -342,7 +340,6 @@ metadata: name: mysecret namespace: default resourceVersion: "164619" - selfLink: /api/v1/namespaces/default/secrets/mysecret uid: cfee02d6-c137-11e5-8d73-42010af00002 type: Opaque data: @@ -386,7 +383,6 @@ metadata: name: mysecret namespace: default resourceVersion: "164619" - selfLink: /api/v1/namespaces/default/secrets/mysecret uid: cfee02d6-c137-11e5-8d73-42010af00002 type: Opaque ``` diff --git a/content/en/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions.md b/content/en/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions.md index 19d06b7c06..690b76053d 100644 --- a/content/en/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions.md +++ b/content/en/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions.md @@ -166,14 +166,12 @@ items: name: my-new-cron-object namespace: default resourceVersion: "285" - selfLink: /apis/stable.example.com/v1/namespaces/default/crontabs/my-new-cron-object uid: 9423255b-4600-11e7-af6a-28d2447dc82b spec: cronSpec: '* * * * */5' image: my-awesome-cron-image metadata: resourceVersion: "" - selfLink: "" ``` ## Delete a CustomResourceDefinition @@ -354,7 +352,6 @@ metadata: name: my-new-cron-object namespace: default resourceVersion: "285" - selfLink: /apis/stable.example.com/v1/namespaces/default/crontabs/my-new-cron-object uid: 9423255b-4600-11e7-af6a-28d2447dc82b spec: cronSpec: '* * * * */5' @@ -658,7 +655,7 @@ kubectl apply -f my-crontab.yaml you will get an error: ```console -The CronTab "my-new-cron-object" is invalid: []: Invalid value: map[string]interface {}{"apiVersion":"stable.example.com/v1", "kind":"CronTab", "metadata":map[string]interface {}{"name":"my-new-cron-object", "namespace":"default", "deletionTimestamp":interface {}(nil), "deletionGracePeriodSeconds":(*int64)(nil), "creationTimestamp":"2017-09-05T05:20:07Z", "uid":"e14d79e7-91f9-11e7-a598-f0761cb232d1", "selfLink":"", "clusterName":""}, "spec":map[string]interface {}{"cronSpec":"* * * *", "image":"my-awesome-cron-image", "replicas":15}}: +The CronTab "my-new-cron-object" is invalid: []: Invalid value: map[string]interface {}{"apiVersion":"stable.example.com/v1", "kind":"CronTab", "metadata":map[string]interface {}{"name":"my-new-cron-object", "namespace":"default", "deletionTimestamp":interface {}(nil), "deletionGracePeriodSeconds":(*int64)(nil), "creationTimestamp":"2017-09-05T05:20:07Z", "uid":"e14d79e7-91f9-11e7-a598-f0761cb232d1", "clusterName":""}, "spec":map[string]interface {}{"cronSpec":"* * * *", "image":"my-awesome-cron-image", "replicas":15}}: validation failure list: spec.cronSpec in body should match '^(\d+|\*)(/\d+)?(\s+(\d+|\*)(/\d+)?){4}$' spec.replicas in body should be less than or equal to 10 diff --git a/content/en/docs/tasks/access-kubernetes-api/http-proxy-access-api.md b/content/en/docs/tasks/access-kubernetes-api/http-proxy-access-api.md index 5519ef0052..62a2fe5603 100644 --- a/content/en/docs/tasks/access-kubernetes-api/http-proxy-access-api.md +++ b/content/en/docs/tasks/access-kubernetes-api/http-proxy-access-api.md @@ -59,7 +59,6 @@ Get a list of pods: "kind": "PodList", "apiVersion": "v1", "metadata": { - "selfLink": "/api/v1/namespaces/default/pods", "resourceVersion": "33074" }, "items": [ @@ -68,7 +67,6 @@ Get a list of pods: "name": "kubernetes-bootcamp-2321272333-ix8pt", "generateName": "kubernetes-bootcamp-2321272333-", "namespace": "default", - "selfLink": "/api/v1/namespaces/default/pods/kubernetes-bootcamp-2321272333-ix8pt", "uid": "ba21457c-6b1d-11e6-85f7-1ef9f1dab92b", "resourceVersion": "33003", "creationTimestamp": "2016-08-25T23:43:30Z", diff --git a/content/en/docs/tasks/administer-cluster/reconfigure-kubelet.md b/content/en/docs/tasks/administer-cluster/reconfigure-kubelet.md index 7c916b3e67..5102e5958f 100644 --- a/content/en/docs/tasks/administer-cluster/reconfigure-kubelet.md +++ b/content/en/docs/tasks/administer-cluster/reconfigure-kubelet.md @@ -155,7 +155,6 @@ metadata: name: my-node-config-gkt4c2m4b2 namespace: kube-system resourceVersion: "119980" - selfLink: /api/v1/namespaces/kube-system/configmaps/my-node-config-gkt4c2m4b2 uid: 946d785e-998a-11e7-a8dd-42010a800006 data: kubelet: | diff --git a/content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md b/content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md index b05fa5ab70..7840599fe2 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md +++ b/content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md @@ -102,7 +102,6 @@ metadata: name: game-config namespace: default resourceVersion: "516" - selfLink: /api/v1/namespaces/default/configmaps/game-config uid: b4952dc3-d670-11e5-8cd0-68f728db1985 data: game.properties: | @@ -217,7 +216,6 @@ metadata: name: game-config-env-file namespace: default resourceVersion: "809965" - selfLink: /api/v1/namespaces/default/configmaps/game-config-env-file uid: d9d1ca5b-eb34-11e7-887b-42010a8002b8 data: allowed: '"true"' @@ -252,7 +250,6 @@ metadata: name: config-multi-env-files namespace: default resourceVersion: "810136" - selfLink: /api/v1/namespaces/default/configmaps/config-multi-env-files uid: 252c4572-eb35-11e7-887b-42010a8002b8 data: color: purple @@ -290,7 +287,6 @@ metadata: name: game-config-3 namespace: default resourceVersion: "530" - selfLink: /api/v1/namespaces/default/configmaps/game-config-3 uid: 05f8da22-d671-11e5-8cd0-68f728db1985 data: game-special-key: | @@ -326,7 +322,6 @@ metadata: name: special-config namespace: default resourceVersion: "651" - selfLink: /api/v1/namespaces/default/configmaps/special-config uid: dadce046-d673-11e5-8cd0-68f728db1985 data: special.how: very diff --git a/content/en/docs/tasks/configure-pod-container/configure-service-account.md b/content/en/docs/tasks/configure-pod-container/configure-service-account.md index 0d2e7e4114..24e3c9bf09 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-service-account.md +++ b/content/en/docs/tasks/configure-pod-container/configure-service-account.md @@ -113,7 +113,6 @@ metadata: name: build-robot namespace: default resourceVersion: "272500" - selfLink: /api/v1/namespaces/default/serviceaccounts/build-robot uid: 721ab723-13bc-11e5-aec2-42010af0021e secrets: - name: build-robot-token-bvbk5 @@ -220,7 +219,6 @@ metadata: name: default namespace: default resourceVersion: "243024" - selfLink: /api/v1/namespaces/default/serviceaccounts/default uid: 052fb0f4-3d50-11e5-b066-42010af0d7b6 secrets: - name: default-token-uudge @@ -237,7 +235,6 @@ metadata: creationTimestamp: 2015-08-07T22:02:39Z name: default namespace: default - selfLink: /api/v1/namespaces/default/serviceaccounts/default uid: 052fb0f4-3d50-11e5-b066-42010af0d7b6 secrets: - name: default-token-uudge diff --git a/content/en/docs/tasks/debug-application-cluster/debug-application-introspection.md b/content/en/docs/tasks/debug-application-cluster/debug-application-introspection.md index 2ae12d2d48..2f5d6e7eda 100644 --- a/content/en/docs/tasks/debug-application-cluster/debug-application-introspection.md +++ b/content/en/docs/tasks/debug-application-cluster/debug-application-introspection.md @@ -214,7 +214,6 @@ metadata: name: nginx-deployment-1006230814-6winp namespace: default resourceVersion: "133447" - selfLink: /api/v1/namespaces/default/pods/nginx-deployment-1006230814-6winp uid: 4c879808-f161-11e5-9a78-42010af00005 spec: containers: @@ -356,7 +355,6 @@ metadata: kubernetes.io/hostname: kubernetes-node-861h name: kubernetes-node-861h resourceVersion: "757" - selfLink: /api/v1/nodes/kubernetes-node-861h uid: 2a69374e-274b-11e5-a234-42010af0d969 spec: externalID: "15233045891481496305" diff --git a/content/en/docs/tasks/debug-application-cluster/debug-service.md b/content/en/docs/tasks/debug-application-cluster/debug-service.md index 4a6a578b39..148f65113e 100644 --- a/content/en/docs/tasks/debug-application-cluster/debug-service.md +++ b/content/en/docs/tasks/debug-application-cluster/debug-service.md @@ -312,7 +312,6 @@ kubectl get service hostnames -o json "metadata": { "name": "hostnames", "namespace": "default", - "selfLink": "/api/v1/namespaces/default/services/hostnames", "uid": "428c8b6c-24bc-11e5-936d-42010af0a9bc", "resourceVersion": "347189", "creationTimestamp": "2015-07-07T15:24:29Z", diff --git a/content/en/docs/tutorials/stateful-application/cassandra.md b/content/en/docs/tutorials/stateful-application/cassandra.md index 06615a5149..a20d93926d 100644 --- a/content/en/docs/tutorials/stateful-application/cassandra.md +++ b/content/en/docs/tutorials/stateful-application/cassandra.md @@ -199,7 +199,6 @@ Use `kubectl edit` to modify the size of a Cassandra StatefulSet. name: cassandra namespace: default resourceVersion: "323" - selfLink: /apis/apps/v1/namespaces/default/statefulsets/cassandra uid: 7a219483-6185-11e6-a910-42010a8a0fc0 spec: replicas: 3 diff --git a/content/ko/docs/tutorials/stateful-application/cassandra.md b/content/ko/docs/tutorials/stateful-application/cassandra.md index 92bcf00693..17f85f4887 100644 --- a/content/ko/docs/tutorials/stateful-application/cassandra.md +++ b/content/ko/docs/tutorials/stateful-application/cassandra.md @@ -198,7 +198,6 @@ cassandra ClusterIP None 9042/TCP 45s name: cassandra namespace: default resourceVersion: "323" - selfLink: /apis/apps/v1/namespaces/default/statefulsets/cassandra uid: 7a219483-6185-11e6-a910-42010a8a0fc0 spec: replicas: 3 diff --git a/content/zh/docs/concepts/configuration/secret.md b/content/zh/docs/concepts/configuration/secret.md index 9f582468f4..a415bd5e00 100644 --- a/content/zh/docs/concepts/configuration/secret.md +++ b/content/zh/docs/concepts/configuration/secret.md @@ -122,7 +122,6 @@ metadata: name: mysecret namespace: default resourceVersion: "164619" - selfLink: /api/v1/namespaces/default/secrets/mysecret uid: cfee02d6-c137-11e5-8d73-42010af00002 type: Opaque ``` diff --git a/content/zh/docs/tasks/administer-cluster/cpu-memory-limit.md b/content/zh/docs/tasks/administer-cluster/cpu-memory-limit.md index 3988b9b9c8..ab3d4f7de4 100644 --- a/content/zh/docs/tasks/administer-cluster/cpu-memory-limit.md +++ b/content/zh/docs/tasks/administer-cluster/cpu-memory-limit.md @@ -132,7 +132,6 @@ nginx-2040093540-s8vzu 1/1 Running 0 11s ```shell $ kubectl get pods nginx-2040093540-s8vzu --namespace=limit-example -o yaml | grep resources -C 8 resourceVersion: "57" - selfLink: /api/v1/namespaces/limit-example/pods/nginx-2040093540-ivimu uid: 67b20741-f53b-11e5-b066-64510658e388 spec: containers: diff --git a/content/zh/docs/tutorials/configuration/configure-redis-using-configmap.md b/content/zh/docs/tutorials/configuration/configure-redis-using-configmap.md index dcfbc65fd5..2df83c30c8 100644 --- a/content/zh/docs/tutorials/configuration/configure-redis-using-configmap.md +++ b/content/zh/docs/tutorials/configuration/configure-redis-using-configmap.md @@ -55,7 +55,6 @@ content_template: templates/tutorial name: example-redis-config namespace: default resourceVersion: "24686" - selfLink: /api/v1/namespaces/default/configmaps/example-redis-config uid: 460a2b6e-f6a3-11e5-8ae5-42010af00002 ``` diff --git a/content/zh/docs/tutorials/stateful-application/cassandra.md b/content/zh/docs/tutorials/stateful-application/cassandra.md index 3238587d9e..e12d9a913a 100644 --- a/content/zh/docs/tutorials/stateful-application/cassandra.md +++ b/content/zh/docs/tutorials/stateful-application/cassandra.md @@ -387,7 +387,6 @@ metadata: name: cassandra namespace: default resourceVersion: "323" - selfLink: /apis/apps/v1beta1/namespaces/default/statefulsets/cassandra uid: 7a219483-6185-11e6-a910-42010a8a0fc0 spec: replicas: 3 @@ -558,7 +557,6 @@ metadata: name: cassandra namespace: default resourceVersion: "944373" - selfLink: /api/v1/namespaces/default/endpoints/cassandra uid: a3d6c25f-1865-11e5-a34e-42010af01bcc subsets: - addresses: