Remove references to selflinks (#15751)

This commit is contained in:
Wojciech Tyczynski
2019-08-09 04:59:24 +02:00
committed by Kubernetes Prow Robot
parent aa4b72c9dd
commit 6daa99cdd8
16 changed files with 2 additions and 32 deletions
@@ -74,7 +74,7 @@ spec:
``` ```
$ kubectl create -f app.yaml $ 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: validation failure list:
spec.replicas in body should be less than or equal to 10 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] spec.version in body should be one of [v1.0.0 v1.0.1]
@@ -168,8 +168,6 @@ items:
resourceVersion: "415852" resourceVersion: "415852"
selfLink: /apis/mysql.orain.com/v1/namespaces/default/mysqlclusters/clustershard-c
uid: 6bb089bb-b56f-11e7-ae02-525400e717a6 uid: 6bb089bb-b56f-11e7-ae02-525400e717a6
spec: spec:
@@ -209,7 +209,6 @@ metadata:
name: mysecret name: mysecret
namespace: default namespace: default
resourceVersion: "7225" resourceVersion: "7225"
selfLink: /api/v1/namespaces/default/secrets/mysecret
uid: c280ad2e-e916-11e8-98f2-025000000001 uid: c280ad2e-e916-11e8-98f2-025000000001
type: Opaque type: Opaque
data: data:
@@ -241,7 +240,6 @@ metadata:
name: mysecret name: mysecret
namespace: default namespace: default
resourceVersion: "7579" resourceVersion: "7579"
selfLink: /api/v1/namespaces/default/secrets/mysecret
uid: 91460ecb-e917-11e8-98f2-025000000001 uid: 91460ecb-e917-11e8-98f2-025000000001
type: Opaque type: Opaque
data: data:
@@ -342,7 +340,6 @@ metadata:
name: mysecret name: mysecret
namespace: default namespace: default
resourceVersion: "164619" resourceVersion: "164619"
selfLink: /api/v1/namespaces/default/secrets/mysecret
uid: cfee02d6-c137-11e5-8d73-42010af00002 uid: cfee02d6-c137-11e5-8d73-42010af00002
type: Opaque type: Opaque
data: data:
@@ -386,7 +383,6 @@ metadata:
name: mysecret name: mysecret
namespace: default namespace: default
resourceVersion: "164619" resourceVersion: "164619"
selfLink: /api/v1/namespaces/default/secrets/mysecret
uid: cfee02d6-c137-11e5-8d73-42010af00002 uid: cfee02d6-c137-11e5-8d73-42010af00002
type: Opaque type: Opaque
``` ```
@@ -166,14 +166,12 @@ items:
name: my-new-cron-object name: my-new-cron-object
namespace: default namespace: default
resourceVersion: "285" resourceVersion: "285"
selfLink: /apis/stable.example.com/v1/namespaces/default/crontabs/my-new-cron-object
uid: 9423255b-4600-11e7-af6a-28d2447dc82b uid: 9423255b-4600-11e7-af6a-28d2447dc82b
spec: spec:
cronSpec: '* * * * */5' cronSpec: '* * * * */5'
image: my-awesome-cron-image image: my-awesome-cron-image
metadata: metadata:
resourceVersion: "" resourceVersion: ""
selfLink: ""
``` ```
## Delete a CustomResourceDefinition ## Delete a CustomResourceDefinition
@@ -354,7 +352,6 @@ metadata:
name: my-new-cron-object name: my-new-cron-object
namespace: default namespace: default
resourceVersion: "285" resourceVersion: "285"
selfLink: /apis/stable.example.com/v1/namespaces/default/crontabs/my-new-cron-object
uid: 9423255b-4600-11e7-af6a-28d2447dc82b uid: 9423255b-4600-11e7-af6a-28d2447dc82b
spec: spec:
cronSpec: '* * * * */5' cronSpec: '* * * * */5'
@@ -658,7 +655,7 @@ kubectl apply -f my-crontab.yaml
you will get an error: you will get an error:
```console ```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: validation failure list:
spec.cronSpec in body should match '^(\d+|\*)(/\d+)?(\s+(\d+|\*)(/\d+)?){4}$' spec.cronSpec in body should match '^(\d+|\*)(/\d+)?(\s+(\d+|\*)(/\d+)?){4}$'
spec.replicas in body should be less than or equal to 10 spec.replicas in body should be less than or equal to 10
@@ -59,7 +59,6 @@ Get a list of pods:
"kind": "PodList", "kind": "PodList",
"apiVersion": "v1", "apiVersion": "v1",
"metadata": { "metadata": {
"selfLink": "/api/v1/namespaces/default/pods",
"resourceVersion": "33074" "resourceVersion": "33074"
}, },
"items": [ "items": [
@@ -68,7 +67,6 @@ Get a list of pods:
"name": "kubernetes-bootcamp-2321272333-ix8pt", "name": "kubernetes-bootcamp-2321272333-ix8pt",
"generateName": "kubernetes-bootcamp-2321272333-", "generateName": "kubernetes-bootcamp-2321272333-",
"namespace": "default", "namespace": "default",
"selfLink": "/api/v1/namespaces/default/pods/kubernetes-bootcamp-2321272333-ix8pt",
"uid": "ba21457c-6b1d-11e6-85f7-1ef9f1dab92b", "uid": "ba21457c-6b1d-11e6-85f7-1ef9f1dab92b",
"resourceVersion": "33003", "resourceVersion": "33003",
"creationTimestamp": "2016-08-25T23:43:30Z", "creationTimestamp": "2016-08-25T23:43:30Z",
@@ -155,7 +155,6 @@ metadata:
name: my-node-config-gkt4c2m4b2 name: my-node-config-gkt4c2m4b2
namespace: kube-system namespace: kube-system
resourceVersion: "119980" resourceVersion: "119980"
selfLink: /api/v1/namespaces/kube-system/configmaps/my-node-config-gkt4c2m4b2
uid: 946d785e-998a-11e7-a8dd-42010a800006 uid: 946d785e-998a-11e7-a8dd-42010a800006
data: data:
kubelet: | kubelet: |
@@ -102,7 +102,6 @@ metadata:
name: game-config name: game-config
namespace: default namespace: default
resourceVersion: "516" resourceVersion: "516"
selfLink: /api/v1/namespaces/default/configmaps/game-config
uid: b4952dc3-d670-11e5-8cd0-68f728db1985 uid: b4952dc3-d670-11e5-8cd0-68f728db1985
data: data:
game.properties: | game.properties: |
@@ -217,7 +216,6 @@ metadata:
name: game-config-env-file name: game-config-env-file
namespace: default namespace: default
resourceVersion: "809965" resourceVersion: "809965"
selfLink: /api/v1/namespaces/default/configmaps/game-config-env-file
uid: d9d1ca5b-eb34-11e7-887b-42010a8002b8 uid: d9d1ca5b-eb34-11e7-887b-42010a8002b8
data: data:
allowed: '"true"' allowed: '"true"'
@@ -252,7 +250,6 @@ metadata:
name: config-multi-env-files name: config-multi-env-files
namespace: default namespace: default
resourceVersion: "810136" resourceVersion: "810136"
selfLink: /api/v1/namespaces/default/configmaps/config-multi-env-files
uid: 252c4572-eb35-11e7-887b-42010a8002b8 uid: 252c4572-eb35-11e7-887b-42010a8002b8
data: data:
color: purple color: purple
@@ -290,7 +287,6 @@ metadata:
name: game-config-3 name: game-config-3
namespace: default namespace: default
resourceVersion: "530" resourceVersion: "530"
selfLink: /api/v1/namespaces/default/configmaps/game-config-3
uid: 05f8da22-d671-11e5-8cd0-68f728db1985 uid: 05f8da22-d671-11e5-8cd0-68f728db1985
data: data:
game-special-key: | game-special-key: |
@@ -326,7 +322,6 @@ metadata:
name: special-config name: special-config
namespace: default namespace: default
resourceVersion: "651" resourceVersion: "651"
selfLink: /api/v1/namespaces/default/configmaps/special-config
uid: dadce046-d673-11e5-8cd0-68f728db1985 uid: dadce046-d673-11e5-8cd0-68f728db1985
data: data:
special.how: very special.how: very
@@ -113,7 +113,6 @@ metadata:
name: build-robot name: build-robot
namespace: default namespace: default
resourceVersion: "272500" resourceVersion: "272500"
selfLink: /api/v1/namespaces/default/serviceaccounts/build-robot
uid: 721ab723-13bc-11e5-aec2-42010af0021e uid: 721ab723-13bc-11e5-aec2-42010af0021e
secrets: secrets:
- name: build-robot-token-bvbk5 - name: build-robot-token-bvbk5
@@ -220,7 +219,6 @@ metadata:
name: default name: default
namespace: default namespace: default
resourceVersion: "243024" resourceVersion: "243024"
selfLink: /api/v1/namespaces/default/serviceaccounts/default
uid: 052fb0f4-3d50-11e5-b066-42010af0d7b6 uid: 052fb0f4-3d50-11e5-b066-42010af0d7b6
secrets: secrets:
- name: default-token-uudge - name: default-token-uudge
@@ -237,7 +235,6 @@ metadata:
creationTimestamp: 2015-08-07T22:02:39Z creationTimestamp: 2015-08-07T22:02:39Z
name: default name: default
namespace: default namespace: default
selfLink: /api/v1/namespaces/default/serviceaccounts/default
uid: 052fb0f4-3d50-11e5-b066-42010af0d7b6 uid: 052fb0f4-3d50-11e5-b066-42010af0d7b6
secrets: secrets:
- name: default-token-uudge - name: default-token-uudge
@@ -214,7 +214,6 @@ metadata:
name: nginx-deployment-1006230814-6winp name: nginx-deployment-1006230814-6winp
namespace: default namespace: default
resourceVersion: "133447" resourceVersion: "133447"
selfLink: /api/v1/namespaces/default/pods/nginx-deployment-1006230814-6winp
uid: 4c879808-f161-11e5-9a78-42010af00005 uid: 4c879808-f161-11e5-9a78-42010af00005
spec: spec:
containers: containers:
@@ -356,7 +355,6 @@ metadata:
kubernetes.io/hostname: kubernetes-node-861h kubernetes.io/hostname: kubernetes-node-861h
name: kubernetes-node-861h name: kubernetes-node-861h
resourceVersion: "757" resourceVersion: "757"
selfLink: /api/v1/nodes/kubernetes-node-861h
uid: 2a69374e-274b-11e5-a234-42010af0d969 uid: 2a69374e-274b-11e5-a234-42010af0d969
spec: spec:
externalID: "15233045891481496305" externalID: "15233045891481496305"
@@ -312,7 +312,6 @@ kubectl get service hostnames -o json
"metadata": { "metadata": {
"name": "hostnames", "name": "hostnames",
"namespace": "default", "namespace": "default",
"selfLink": "/api/v1/namespaces/default/services/hostnames",
"uid": "428c8b6c-24bc-11e5-936d-42010af0a9bc", "uid": "428c8b6c-24bc-11e5-936d-42010af0a9bc",
"resourceVersion": "347189", "resourceVersion": "347189",
"creationTimestamp": "2015-07-07T15:24:29Z", "creationTimestamp": "2015-07-07T15:24:29Z",
@@ -199,7 +199,6 @@ Use `kubectl edit` to modify the size of a Cassandra StatefulSet.
name: cassandra name: cassandra
namespace: default namespace: default
resourceVersion: "323" resourceVersion: "323"
selfLink: /apis/apps/v1/namespaces/default/statefulsets/cassandra
uid: 7a219483-6185-11e6-a910-42010a8a0fc0 uid: 7a219483-6185-11e6-a910-42010a8a0fc0
spec: spec:
replicas: 3 replicas: 3
@@ -198,7 +198,6 @@ cassandra ClusterIP None <none> 9042/TCP 45s
name: cassandra name: cassandra
namespace: default namespace: default
resourceVersion: "323" resourceVersion: "323"
selfLink: /apis/apps/v1/namespaces/default/statefulsets/cassandra
uid: 7a219483-6185-11e6-a910-42010a8a0fc0 uid: 7a219483-6185-11e6-a910-42010a8a0fc0
spec: spec:
replicas: 3 replicas: 3
@@ -122,7 +122,6 @@ metadata:
name: mysecret name: mysecret
namespace: default namespace: default
resourceVersion: "164619" resourceVersion: "164619"
selfLink: /api/v1/namespaces/default/secrets/mysecret
uid: cfee02d6-c137-11e5-8d73-42010af00002 uid: cfee02d6-c137-11e5-8d73-42010af00002
type: Opaque type: Opaque
``` ```
@@ -132,7 +132,6 @@ nginx-2040093540-s8vzu 1/1 Running 0 11s
```shell ```shell
$ kubectl get pods nginx-2040093540-s8vzu --namespace=limit-example -o yaml | grep resources -C 8 $ kubectl get pods nginx-2040093540-s8vzu --namespace=limit-example -o yaml | grep resources -C 8
resourceVersion: "57" resourceVersion: "57"
selfLink: /api/v1/namespaces/limit-example/pods/nginx-2040093540-ivimu
uid: 67b20741-f53b-11e5-b066-64510658e388 uid: 67b20741-f53b-11e5-b066-64510658e388
spec: spec:
containers: containers:
@@ -55,7 +55,6 @@ content_template: templates/tutorial
name: example-redis-config name: example-redis-config
namespace: default namespace: default
resourceVersion: "24686" resourceVersion: "24686"
selfLink: /api/v1/namespaces/default/configmaps/example-redis-config
uid: 460a2b6e-f6a3-11e5-8ae5-42010af00002 uid: 460a2b6e-f6a3-11e5-8ae5-42010af00002
``` ```
@@ -387,7 +387,6 @@ metadata:
name: cassandra name: cassandra
namespace: default namespace: default
resourceVersion: "323" resourceVersion: "323"
selfLink: /apis/apps/v1beta1/namespaces/default/statefulsets/cassandra
uid: 7a219483-6185-11e6-a910-42010a8a0fc0 uid: 7a219483-6185-11e6-a910-42010a8a0fc0
spec: spec:
replicas: 3 replicas: 3
@@ -558,7 +557,6 @@ metadata:
name: cassandra name: cassandra
namespace: default namespace: default
resourceVersion: "944373" resourceVersion: "944373"
selfLink: /api/v1/namespaces/default/endpoints/cassandra
uid: a3d6c25f-1865-11e5-a34e-42010af01bcc uid: a3d6c25f-1865-11e5-a34e-42010af01bcc
subsets: subsets:
- addresses: - addresses: