Skip to content

Commit fc1d1bd

Browse files
committed
api: Remove list metadata from AppWrapperResourceList
1 parent a23e87b commit fc1d1bd

File tree

12 files changed

+5
-269
lines changed

12 files changed

+5
-269
lines changed

config/crd/bases/mcad.ibm.com_appwrappers.yaml

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -129,67 +129,6 @@ spec:
129129
type: integer
130130
type: object
131131
type: array
132-
apiVersion:
133-
description: 'APIVersion defines the versioned schema of this
134-
representation of an object. Servers should convert recognized
135-
schemas to the latest internal value, and may reject unrecognized
136-
values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
137-
type: string
138-
kind:
139-
description: 'Kind is a string value representing the REST resource
140-
this object represents. Servers may infer this from the endpoint
141-
the client submits requests to. Cannot be updated. In CamelCase.
142-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
143-
type: string
144-
metadata:
145-
description: ListMeta describes metadata that synthetic resources
146-
must have, including lists and various status objects. A resource
147-
may have only one of {ObjectMeta, ListMeta}.
148-
properties:
149-
continue:
150-
description: continue may be set if the user set a limit on
151-
the number of items returned, and indicates that the server
152-
has more data available. The value is opaque and may be
153-
used to issue another request to the endpoint that served
154-
this list to retrieve the next set of available objects.
155-
Continuing a consistent list may not be possible if the
156-
server configuration has changed or more than a few minutes
157-
have passed. The resourceVersion field returned when using
158-
this continue value will be identical to the value in the
159-
first response, unless you have received this token from
160-
an error message.
161-
type: string
162-
remainingItemCount:
163-
description: remainingItemCount is the number of subsequent
164-
items in the list which are not included in this list response.
165-
If the list request contained label or field selectors,
166-
then the number of remaining items is unknown and the field
167-
will be left unset and omitted during serialization. If
168-
the list is complete (either because it is not chunking
169-
or because this is the last chunk), then there are no more
170-
remaining items and this field will be left unset and omitted
171-
during serialization. Servers older than v1.15 do not set
172-
this field. The intended use of the remainingItemCount is
173-
*estimating* the size of a collection. Clients should not
174-
rely on the remainingItemCount to be set or to be exact.
175-
format: int64
176-
type: integer
177-
resourceVersion:
178-
description: 'String that identifies the server''s internal
179-
version of this object that can be used by clients to determine
180-
when objects have changed. Value must be treated as opaque
181-
by clients and passed unmodified back to the server. Populated
182-
by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
183-
type: string
184-
selfLink:
185-
description: "selfLink is a URL representing this object.
186-
Populated by the system. Read-only. \n DEPRECATED Kubernetes
187-
will stop propagating this field in 1.20 release and the
188-
field is planned to be removed in 1.21 release."
189-
type: string
190-
type: object
191-
required:
192-
- metadata
193132
type: object
194133
schedulingSpec:
195134
description: SchedSpec specifies the parameters used for scheduling

deployment/mcad-controller/crds/mcad.ibm.com_appwrappers.yaml

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -129,67 +129,6 @@ spec:
129129
type: integer
130130
type: object
131131
type: array
132-
apiVersion:
133-
description: 'APIVersion defines the versioned schema of this
134-
representation of an object. Servers should convert recognized
135-
schemas to the latest internal value, and may reject unrecognized
136-
values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
137-
type: string
138-
kind:
139-
description: 'Kind is a string value representing the REST resource
140-
this object represents. Servers may infer this from the endpoint
141-
the client submits requests to. Cannot be updated. In CamelCase.
142-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
143-
type: string
144-
metadata:
145-
description: ListMeta describes metadata that synthetic resources
146-
must have, including lists and various status objects. A resource
147-
may have only one of {ObjectMeta, ListMeta}.
148-
properties:
149-
continue:
150-
description: continue may be set if the user set a limit on
151-
the number of items returned, and indicates that the server
152-
has more data available. The value is opaque and may be
153-
used to issue another request to the endpoint that served
154-
this list to retrieve the next set of available objects.
155-
Continuing a consistent list may not be possible if the
156-
server configuration has changed or more than a few minutes
157-
have passed. The resourceVersion field returned when using
158-
this continue value will be identical to the value in the
159-
first response, unless you have received this token from
160-
an error message.
161-
type: string
162-
remainingItemCount:
163-
description: remainingItemCount is the number of subsequent
164-
items in the list which are not included in this list response.
165-
If the list request contained label or field selectors,
166-
then the number of remaining items is unknown and the field
167-
will be left unset and omitted during serialization. If
168-
the list is complete (either because it is not chunking
169-
or because this is the last chunk), then there are no more
170-
remaining items and this field will be left unset and omitted
171-
during serialization. Servers older than v1.15 do not set
172-
this field. The intended use of the remainingItemCount is
173-
*estimating* the size of a collection. Clients should not
174-
rely on the remainingItemCount to be set or to be exact.
175-
format: int64
176-
type: integer
177-
resourceVersion:
178-
description: 'String that identifies the server''s internal
179-
version of this object that can be used by clients to determine
180-
when objects have changed. Value must be treated as opaque
181-
by clients and passed unmodified back to the server. Populated
182-
by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
183-
type: string
184-
selfLink:
185-
description: "selfLink is a URL representing this object.
186-
Populated by the system. Read-only. \n DEPRECATED Kubernetes
187-
will stop propagating this field in 1.20 release and the
188-
field is planned to be removed in 1.21 release."
189-
type: string
190-
type: object
191-
required:
192-
- metadata
193132
type: object
194133
schedulingSpec:
195134
description: SchedSpec specifies the parameters used for scheduling

pkg/apis/controller/v1beta1/appwrapper.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ type AppWrapperSpec struct {
7373

7474
// a collection of AppWrapperResource
7575
type AppWrapperResourceList struct {
76-
metav1.TypeMeta `json:",inline"`
77-
metav1.ListMeta `json:"metadata"`
78-
7976
// +optional
8077
GenericItems []AppWrapperGenericResource `json:"GenericItems"`
8178
}

pkg/apis/controller/v1beta1/zz_generated.deepcopy.go

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/e2e-kuttl-deployment-01/steps/03-install.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ spec:
1111
growthType: "none"
1212
maxNumRequeuings: 3
1313
resources:
14-
Items: []
1514
GenericItems:
1615
- replicas: 1
1716
completionstatus: Complete

test/e2e-kuttl-deployment-01/steps/06-install.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ spec:
1111
growthType: "none"
1212
maxNumRequeuings: 1
1313
resources:
14-
Items: []
1514
GenericItems:
1615
- replicas: 1
1716
completionstatus: Complete

test/e2e-kuttl/quota-forest/04-install.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ spec:
1010
service:
1111
spec: {}
1212
resources:
13-
metadata: {}
14-
Items: []
1513
GenericItems:
16-
- metadata: {}
17-
replicas: 1
14+
- replicas: 1
1815
generictemplate:
1916
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
2017
kind: StatefulSet

test/e2e-kuttl/quota-forest/05-install.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ spec:
1010
service:
1111
spec: {}
1212
resources:
13-
metadata: {}
1413
GenericItems:
15-
- metadata: {}
16-
replicas: 1
14+
- replicas: 1
1715
generictemplate:
1816
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
1917
kind: StatefulSet

test/e2e-kuttl/quota-forest/06-install.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ spec:
1111
spec: {}
1212
priority: 1000
1313
resources:
14-
metadata: {}
1514
GenericItems:
16-
- metadata: {}
17-
replicas: 1
15+
- replicas: 1
1816
generictemplate:
1917
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
2018
kind: StatefulSet

test/e2e-kuttl/quota-forest/07-install.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ spec:
1111
spec: {}
1212
priority: 1000
1313
resources:
14-
metadata: {}
1514
GenericItems:
16-
- metadata: {}
17-
replicas: 1
15+
- replicas: 1
1816
generictemplate:
1917
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
2018
kind: StatefulSet

test/e2e-kuttl/quota-forest/08-install.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ spec:
1111
spec: {}
1212
priority: 1000
1313
resources:
14-
metadata: {}
1514
GenericItems:
16-
- metadata: {}
17-
replicas: 1
15+
- replicas: 1
1816
generictemplate:
1917
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
2018
kind: StatefulSet

0 commit comments

Comments
 (0)