Skip to content

Commit 7d0f193

Browse files
committed
Embed only a subset of metav1.ObjectMeta fields
Signed-off-by: Vince Prignano <[email protected]>
1 parent 78ae00d commit 7d0f193

10 files changed

+396
-8
lines changed

config/crds/cluster_v1alpha1_machine.yaml

+53
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,59 @@ spec:
5757
description: ObjectMeta will autopopulate the Node created. Use this
5858
to indicate what labels, annotations, name prefix, etc., should be
5959
used when creating the Node.
60+
properties:
61+
annotations:
62+
description: 'Annotations is an unstructured key value map stored
63+
with a resource that may be set by external tools to store and
64+
retrieve arbitrary metadata. They are not queryable and should
65+
be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations'
66+
type: object
67+
generateName:
68+
description: 'GenerateName is an optional prefix, used by the server,
69+
to generate a unique name ONLY IF the Name field has not been
70+
provided. If this field is used, the name returned to the client
71+
will be different than the name passed. This value will also be
72+
combined with a unique suffix. The provided value has the same
73+
validation rules as the Name field, and may be truncated by the
74+
length of the suffix required to make the value unique on the
75+
server. If this field is specified and the generated name exists,
76+
the server will NOT return a 409 - instead, it will either return
77+
201 Created or 500 with Reason ServerTimeout indicating a unique
78+
name could not be found in the time allotted, and the client should
79+
retry (optionally after the time indicated in the Retry-After
80+
header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency'
81+
type: string
82+
labels:
83+
description: 'Map of string keys and values that can be used to
84+
organize and categorize (scope and select) objects. May match
85+
selectors of replication controllers and services. More info:
86+
http://kubernetes.io/docs/user-guide/labels'
87+
type: object
88+
name:
89+
description: 'Name must be unique within a namespace. Is required
90+
when creating resources, although some resources may allow a client
91+
to request the generation of an appropriate name automatically.
92+
Name is primarily intended for creation idempotence and configuration
93+
definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names'
94+
type: string
95+
namespace:
96+
description: 'Namespace defines the space within each name must
97+
be unique. An empty namespace is equivalent to the "default" namespace,
98+
but "default" is the canonical representation. Not all objects
99+
are required to be scoped to a namespace - the value of this field
100+
for those objects will be empty. Must be a DNS_LABEL. Cannot
101+
be updated. More info: http://kubernetes.io/docs/user-guide/namespaces'
102+
type: string
103+
ownerReferences:
104+
description: List of objects depended by this object. If ALL objects
105+
in the list have been deleted, this object will be garbage collected.
106+
If this object is managed by a controller, then an entry in this
107+
list will point to this controller, with the controller field
108+
set to true. There cannot be more than one managing controller.
109+
+patchMergeKey=uid +patchStrategy=merge
110+
items:
111+
type: object
112+
type: array
60113
type: object
61114
providerID:
62115
description: ProviderID is the identification ID of the machine provided

config/crds/cluster_v1alpha1_machinedeployment.yaml

+113
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,61 @@ spec:
120120
properties:
121121
metadata:
122122
description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
123+
properties:
124+
annotations:
125+
description: 'Annotations is an unstructured key value map stored
126+
with a resource that may be set by external tools to store
127+
and retrieve arbitrary metadata. They are not queryable and
128+
should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations'
129+
type: object
130+
generateName:
131+
description: 'GenerateName is an optional prefix, used by the
132+
server, to generate a unique name ONLY IF the Name field has
133+
not been provided. If this field is used, the name returned
134+
to the client will be different than the name passed. This
135+
value will also be combined with a unique suffix. The provided
136+
value has the same validation rules as the Name field, and
137+
may be truncated by the length of the suffix required to make
138+
the value unique on the server. If this field is specified
139+
and the generated name exists, the server will NOT return
140+
a 409 - instead, it will either return 201 Created or 500
141+
with Reason ServerTimeout indicating a unique name could not
142+
be found in the time allotted, and the client should retry
143+
(optionally after the time indicated in the Retry-After header). Applied
144+
only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency'
145+
type: string
146+
labels:
147+
description: 'Map of string keys and values that can be used
148+
to organize and categorize (scope and select) objects. May
149+
match selectors of replication controllers and services. More
150+
info: http://kubernetes.io/docs/user-guide/labels'
151+
type: object
152+
name:
153+
description: 'Name must be unique within a namespace. Is required
154+
when creating resources, although some resources may allow
155+
a client to request the generation of an appropriate name
156+
automatically. Name is primarily intended for creation idempotence
157+
and configuration definition. Cannot be updated. More info:
158+
http://kubernetes.io/docs/user-guide/identifiers#names'
159+
type: string
160+
namespace:
161+
description: 'Namespace defines the space within each name must
162+
be unique. An empty namespace is equivalent to the "default"
163+
namespace, but "default" is the canonical representation.
164+
Not all objects are required to be scoped to a namespace -
165+
the value of this field for those objects will be empty. Must
166+
be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces'
167+
type: string
168+
ownerReferences:
169+
description: List of objects depended by this object. If ALL
170+
objects in the list have been deleted, this object will be
171+
garbage collected. If this object is managed by a controller,
172+
then an entry in this list will point to this controller,
173+
with the controller field set to true. There cannot be more
174+
than one managing controller. +patchMergeKey=uid +patchStrategy=merge
175+
items:
176+
type: object
177+
type: array
123178
type: object
124179
spec:
125180
description: 'Specification of the desired behavior of the machine.
@@ -137,6 +192,64 @@ spec:
137192
description: ObjectMeta will autopopulate the Node created.
138193
Use this to indicate what labels, annotations, name prefix,
139194
etc., should be used when creating the Node.
195+
properties:
196+
annotations:
197+
description: 'Annotations is an unstructured key value map
198+
stored with a resource that may be set by external tools
199+
to store and retrieve arbitrary metadata. They are not
200+
queryable and should be preserved when modifying objects.
201+
More info: http://kubernetes.io/docs/user-guide/annotations'
202+
type: object
203+
generateName:
204+
description: 'GenerateName is an optional prefix, used by
205+
the server, to generate a unique name ONLY IF the Name
206+
field has not been provided. If this field is used, the
207+
name returned to the client will be different than the
208+
name passed. This value will also be combined with a unique
209+
suffix. The provided value has the same validation rules
210+
as the Name field, and may be truncated by the length
211+
of the suffix required to make the value unique on the
212+
server. If this field is specified and the generated
213+
name exists, the server will NOT return a 409 - instead,
214+
it will either return 201 Created or 500 with Reason ServerTimeout
215+
indicating a unique name could not be found in the time
216+
allotted, and the client should retry (optionally after
217+
the time indicated in the Retry-After header). Applied
218+
only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency'
219+
type: string
220+
labels:
221+
description: 'Map of string keys and values that can be
222+
used to organize and categorize (scope and select) objects.
223+
May match selectors of replication controllers and services.
224+
More info: http://kubernetes.io/docs/user-guide/labels'
225+
type: object
226+
name:
227+
description: 'Name must be unique within a namespace. Is
228+
required when creating resources, although some resources
229+
may allow a client to request the generation of an appropriate
230+
name automatically. Name is primarily intended for creation
231+
idempotence and configuration definition. Cannot be updated.
232+
More info: http://kubernetes.io/docs/user-guide/identifiers#names'
233+
type: string
234+
namespace:
235+
description: 'Namespace defines the space within each name
236+
must be unique. An empty namespace is equivalent to the
237+
"default" namespace, but "default" is the canonical representation.
238+
Not all objects are required to be scoped to a namespace
239+
- the value of this field for those objects will be empty. Must
240+
be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces'
241+
type: string
242+
ownerReferences:
243+
description: List of objects depended by this object. If
244+
ALL objects in the list have been deleted, this object
245+
will be garbage collected. If this object is managed by
246+
a controller, then an entry in this list will point to
247+
this controller, with the controller field set to true.
248+
There cannot be more than one managing controller. +patchMergeKey=uid
249+
+patchStrategy=merge
250+
items:
251+
type: object
252+
type: array
140253
type: object
141254
providerID:
142255
description: ProviderID is the identification ID of the machine

0 commit comments

Comments
 (0)