@@ -18,7 +18,6 @@ package v1alpha4
1818
1919import (
2020 corev1 "k8s.io/api/core/v1"
21- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2221)
2322
2423const (
@@ -129,44 +128,6 @@ type MachineAddresses []MachineAddress
129128// In future versions, controller-tools@v2 might allow overriding the type and validation for embedded
130129// types. When that happens, this hack should be revisited.
131130type ObjectMeta struct {
132- // Name must be unique within a namespace. Is required when creating resources, although
133- // some resources may allow a client to request the generation of an appropriate name
134- // automatically. Name is primarily intended for creation idempotence and configuration
135- // definition.
136- // Cannot be updated.
137- // More info: http://kubernetes.io/docs/user-guide/identifiers#names
138- // +optional
139- Name string `json:"name,omitempty"`
140-
141- // GenerateName is an optional prefix, used by the server, to generate a unique
142- // name ONLY IF the Name field has not been provided.
143- // If this field is used, the name returned to the client will be different
144- // than the name passed. This value will also be combined with a unique suffix.
145- // The provided value has the same validation rules as the Name field,
146- // and may be truncated by the length of the suffix required to make the value
147- // unique on the server.
148- //
149- // If this field is specified and the generated name exists, the server will
150- // NOT return a 409 - instead, it will either return 201 Created or 500 with Reason
151- // ServerTimeout indicating a unique name could not be found in the time allotted, and the client
152- // should retry (optionally after the time indicated in the Retry-After header).
153- //
154- // Applied only if Name is not specified.
155- // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
156- // +optional
157- GenerateName string `json:"generateName,omitempty"`
158-
159- // Namespace defines the space within each name must be unique. An empty namespace is
160- // equivalent to the "default" namespace, but "default" is the canonical representation.
161- // Not all objects are required to be scoped to a namespace - the value of this field for
162- // those objects will be empty.
163- //
164- // Must be a DNS_LABEL.
165- // Cannot be updated.
166- // More info: http://kubernetes.io/docs/user-guide/namespaces
167- // +optional
168- Namespace string `json:"namespace,omitempty"`
169-
170131 // Map of string keys and values that can be used to organize and categorize
171132 // (scope and select) objects. May match selectors of replication controllers
172133 // and services.
@@ -180,13 +141,4 @@ type ObjectMeta struct {
180141 // More info: http://kubernetes.io/docs/user-guide/annotations
181142 // +optional
182143 Annotations map [string ]string `json:"annotations,omitempty"`
183-
184- // List of objects depended by this object. If ALL objects in the list have
185- // been deleted, this object will be garbage collected. If this object is managed by a controller,
186- // then an entry in this list will point to this controller, with the controller field set to true.
187- // There cannot be more than one managing controller.
188- // +optional
189- // +patchMergeKey=uid
190- // +patchStrategy=merge
191- OwnerReferences []metav1.OwnerReference `json:"ownerReferences,omitempty" patchStrategy:"merge" patchMergeKey:"uid"`
192144}
0 commit comments