Debian Codegraph @

pkg/apis/meta/v1/generated.proto

raw
1 /*
2 Copyright The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17
18 // This file was autogenerated by go-to-protobuf. Do not edit it manually!
19
20 syntax = "proto2";
21
22 package k8s.io.apimachinery.pkg.apis.meta.v1;
23
24 import "k8s.io/apimachinery/pkg/runtime/generated.proto";
25 import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
26
27 // Package-wide variables from generator "generated".
28 option go_package = "k8s.io/apimachinery/pkg/apis/meta/v1";
29
30 // APIGroup contains the name, the supported versions, and the preferred version
31 // of a group.
32 message APIGroup {
33 // name is the name of the group.
34 optional string name = 1;
35
36 // versions are the versions supported in this group.
37 // +listType=atomic
38 repeated GroupVersionForDiscovery versions = 2;
39
40 // preferredVersion is the version preferred by the API server, which
41 // probably is the storage version.
42 // +optional
43 optional GroupVersionForDiscovery preferredVersion = 3;
44
45 // a map of client CIDR to server address that is serving this group.
46 // This is to help clients reach servers in the most network-efficient way possible.
47 // Clients can use the appropriate server address as per the CIDR that they match.
48 // In case of multiple matches, clients should use the longest matching CIDR.
49 // The server returns only those CIDRs that it thinks that the client can match.
50 // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
51 // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
52 // +optional
53 // +listType=atomic
54 repeated ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
55 }
56
57 // APIGroupList is a list of APIGroup, to allow clients to discover the API at
58 // /apis.
59 message APIGroupList {
60 // groups is a list of APIGroup.
61 // +listType=atomic
62 repeated APIGroup groups = 1;
63 }
64
65 // APIResource specifies the name of a resource and whether it is namespaced.
66 message APIResource {
67 // name is the plural name of the resource.
68 optional string name = 1;
69
70 // singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely.
71 // The singularName is more correct for reporting status on a single item and both singular and plural are allowed
72 // from the kubectl CLI interface.
73 optional string singularName = 6;
74
75 // namespaced indicates if a resource is namespaced or not.
76 optional bool namespaced = 2;
77
78 // group is the preferred group of the resource. Empty implies the group of the containing resource list.
79 // For subresources, this may have a different value, for example: Scale".
80 optional string group = 8;
81
82 // version is the preferred version of the resource. Empty implies the version of the containing resource list
83 // For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
84 optional string version = 9;
85
86 // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
87 optional string kind = 3;
88
89 // verbs is a list of supported kube verbs (this includes get, list, watch, create,
90 // update, patch, delete, deletecollection, and proxy)
91 optional Verbs verbs = 4;
92
93 // shortNames is a list of suggested short names of the resource.
94 // +listType=atomic
95 repeated string shortNames = 5;
96
97 // categories is a list of the grouped resources this resource belongs to (e.g. 'all')
98 // +listType=atomic
99 repeated string categories = 7;
100
101 // The hash value of the storage version, the version this resource is
102 // converted to when written to the data store. Value must be treated
103 // as opaque by clients. Only equality comparison on the value is valid.
104 // This is an alpha feature and may change or be removed in the future.
105 // The field is populated by the apiserver only if the
106 // StorageVersionHash feature gate is enabled.
107 // This field will remain optional even if it graduates.
108 // +optional
109 optional string storageVersionHash = 10;
110 }
111
112 // APIResourceList is a list of APIResource, it is used to expose the name of the
113 // resources supported in a specific group and version, and if the resource
114 // is namespaced.
115 message APIResourceList {
116 // groupVersion is the group and version this APIResourceList is for.
117 optional string groupVersion = 1;
118
119 // resources contains the name of the resources and if they are namespaced.
120 // +listType=atomic
121 repeated APIResource resources = 2;
122 }
123
124 // APIVersions lists the versions that are available, to allow clients to
125 // discover the API at /api, which is the root path of the legacy v1 API.
126 //
127 // +protobuf.options.(gogoproto.goproto_stringer)=false
128 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
129 message APIVersions {
130 // versions are the api versions that are available.
131 // +listType=atomic
132 repeated string versions = 1;
133
134 // a map of client CIDR to server address that is serving this group.
135 // This is to help clients reach servers in the most network-efficient way possible.
136 // Clients can use the appropriate server address as per the CIDR that they match.
137 // In case of multiple matches, clients should use the longest matching CIDR.
138 // The server returns only those CIDRs that it thinks that the client can match.
139 // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
140 // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
141 // +listType=atomic
142 repeated ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
143 }
144
145 // ApplyOptions may be provided when applying an API object.
146 // FieldManager is required for apply requests.
147 // ApplyOptions is equivalent to PatchOptions. It is provided as a convenience with documentation
148 // that speaks specifically to how the options fields relate to apply.
149 message ApplyOptions {
150 // When present, indicates that modifications should not be
151 // persisted. An invalid or unrecognized dryRun directive will
152 // result in an error response and no further processing of the
153 // request. Valid values are:
154 // - All: all dry run stages will be processed
155 // +optional
156 // +listType=atomic
157 repeated string dryRun = 1;
158
159 // Force is going to "force" Apply requests. It means user will
160 // re-acquire conflicting fields owned by other people.
161 optional bool force = 2;
162
163 // fieldManager is a name associated with the actor or entity
164 // that is making these changes. The value must be less than or
165 // 128 characters long, and only contain printable characters,
166 // as defined by https://golang.org/pkg/unicode/#IsPrint. This
167 // field is required.
168 optional string fieldManager = 3;
169 }
170
171 // Condition contains details for one aspect of the current state of this API Resource.
172 // ---
173 // This struct is intended for direct use as an array at the field path .status.conditions. For example,
174 //
175 // type FooStatus struct{
176 // // Represents the observations of a foo's current state.
177 // // Known .status.conditions.type are: "Available", "Progressing", and "Degraded"
178 // // +patchMergeKey=type
179 // // +patchStrategy=merge
180 // // +listType=map
181 // // +listMapKey=type
182 // Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
183 //
184 // // other fields
185 // }
186 message Condition {
187 // type of condition in CamelCase or in foo.example.com/CamelCase.
188 // ---
189 // Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
190 // useful (see .node.status.conditions), the ability to deconflict is important.
191 // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
192 // +required
193 // +kubebuilder:validation:Required
194 // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
195 // +kubebuilder:validation:MaxLength=316
196 optional string type = 1;
197
198 // status of the condition, one of True, False, Unknown.
199 // +required
200 // +kubebuilder:validation:Required
201 // +kubebuilder:validation:Enum=True;False;Unknown
202 optional string status = 2;
203
204 // observedGeneration represents the .metadata.generation that the condition was set based upon.
205 // For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
206 // with respect to the current state of the instance.
207 // +optional
208 // +kubebuilder:validation:Minimum=0
209 optional int64 observedGeneration = 3;
210
211 // lastTransitionTime is the last time the condition transitioned from one status to another.
212 // This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
213 // +required
214 // +kubebuilder:validation:Required
215 // +kubebuilder:validation:Type=string
216 // +kubebuilder:validation:Format=date-time
217 optional Time lastTransitionTime = 4;
218
219 // reason contains a programmatic identifier indicating the reason for the condition's last transition.
220 // Producers of specific condition types may define expected values and meanings for this field,
221 // and whether the values are considered a guaranteed API.
222 // The value should be a CamelCase string.
223 // This field may not be empty.
224 // +required
225 // +kubebuilder:validation:Required
226 // +kubebuilder:validation:MaxLength=1024
227 // +kubebuilder:validation:MinLength=1
228 // +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
229 optional string reason = 5;
230
231 // message is a human readable message indicating details about the transition.
232 // This may be an empty string.
233 // +required
234 // +kubebuilder:validation:Required
235 // +kubebuilder:validation:MaxLength=32768
236 optional string message = 6;
237 }
238
239 // CreateOptions may be provided when creating an API object.
240 message CreateOptions {
241 // When present, indicates that modifications should not be
242 // persisted. An invalid or unrecognized dryRun directive will
243 // result in an error response and no further processing of the
244 // request. Valid values are:
245 // - All: all dry run stages will be processed
246 // +optional
247 // +listType=atomic
248 repeated string dryRun = 1;
249
250 // fieldManager is a name associated with the actor or entity
251 // that is making these changes. The value must be less than or
252 // 128 characters long, and only contain printable characters,
253 // as defined by https://golang.org/pkg/unicode/#IsPrint.
254 // +optional
255 optional string fieldManager = 3;
256
257 // fieldValidation instructs the server on how to handle
258 // objects in the request (POST/PUT/PATCH) containing unknown
259 // or duplicate fields. Valid values are:
260 // - Ignore: This will ignore any unknown fields that are silently
261 // dropped from the object, and will ignore all but the last duplicate
262 // field that the decoder encounters. This is the default behavior
263 // prior to v1.23.
264 // - Warn: This will send a warning via the standard warning response
265 // header for each unknown field that is dropped from the object, and
266 // for each duplicate field that is encountered. The request will
267 // still succeed if there are no other errors, and will only persist
268 // the last of any duplicate fields. This is the default in v1.23+
269 // - Strict: This will fail the request with a BadRequest error if
270 // any unknown fields would be dropped from the object, or if any
271 // duplicate fields are present. The error returned from the server
272 // will contain all unknown and duplicate fields encountered.
273 // +optional
274 optional string fieldValidation = 4;
275 }
276
277 // DeleteOptions may be provided when deleting an API object.
278 message DeleteOptions {
279 // The duration in seconds before the object should be deleted. Value must be non-negative integer.
280 // The value zero indicates delete immediately. If this value is nil, the default grace period for the
281 // specified type will be used.
282 // Defaults to a per object value if not specified. zero means delete immediately.
283 // +optional
284 optional int64 gracePeriodSeconds = 1;
285
286 // Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
287 // returned.
288 // +k8s:conversion-gen=false
289 // +optional
290 optional Preconditions preconditions = 2;
291
292 // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
293 // Should the dependent objects be orphaned. If true/false, the "orphan"
294 // finalizer will be added to/removed from the object's finalizers list.
295 // Either this field or PropagationPolicy may be set, but not both.
296 // +optional
297 optional bool orphanDependents = 3;
298
299 // Whether and how garbage collection will be performed.
300 // Either this field or OrphanDependents may be set, but not both.
301 // The default policy is decided by the existing finalizer set in the
302 // metadata.finalizers and the resource-specific default policy.
303 // Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
304 // allow the garbage collector to delete the dependents in the background;
305 // 'Foreground' - a cascading policy that deletes all dependents in the
306 // foreground.
307 // +optional
308 optional string propagationPolicy = 4;
309
310 // When present, indicates that modifications should not be
311 // persisted. An invalid or unrecognized dryRun directive will
312 // result in an error response and no further processing of the
313 // request. Valid values are:
314 // - All: all dry run stages will be processed
315 // +optional
316 // +listType=atomic
317 repeated string dryRun = 5;
318
319 // if set to true, it will trigger an unsafe deletion of the resource in
320 // case the normal deletion flow fails with a corrupt object error.
321 // A resource is considered corrupt if it can not be retrieved from
322 // the underlying storage successfully because of a) its data can
323 // not be transformed e.g. decryption failure, or b) it fails
324 // to decode into an object.
325 // NOTE: unsafe deletion ignores finalizer constraints, skips
326 // precondition checks, and removes the object from the storage.
327 // WARNING: This may potentially break the cluster if the workload
328 // associated with the resource being unsafe-deleted relies on normal
329 // deletion flow. Use only if you REALLY know what you are doing.
330 // The default value is false, and the user must opt in to enable it
331 // +optional
332 optional bool ignoreStoreReadErrorWithClusterBreakingPotential = 6;
333 }
334
335 // Duration is a wrapper around time.Duration which supports correct
336 // marshaling to YAML and JSON. In particular, it marshals into strings, which
337 // can be used as map keys in json.
338 message Duration {
339 optional int64 duration = 1;
340 }
341
342 // FieldSelectorRequirement is a selector that contains values, a key, and an operator that
343 // relates the key and values.
344 message FieldSelectorRequirement {
345 // key is the field selector key that the requirement applies to.
346 optional string key = 1;
347
348 // operator represents a key's relationship to a set of values.
349 // Valid operators are In, NotIn, Exists, DoesNotExist.
350 // The list of operators may grow in the future.
351 optional string operator = 2;
352
353 // values is an array of string values.
354 // If the operator is In or NotIn, the values array must be non-empty.
355 // If the operator is Exists or DoesNotExist, the values array must be empty.
356 // +optional
357 // +listType=atomic
358 repeated string values = 3;
359 }
360
361 // FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.
362 //
363 // Each key is either a '.' representing the field itself, and will always map to an empty set,
364 // or a string representing a sub-field or item. The string will follow one of these four formats:
365 // 'f:<name>', where <name> is the name of a field in a struct, or key in a map
366 // 'v:<value>', where <value> is the exact json formatted value of a list item
367 // 'i:<index>', where <index> is position of a item in a list
368 // 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values
369 // If a key maps to an empty Fields value, the field that key represents is part of the set.
370 //
371 // The exact format is defined in sigs.k8s.io/structured-merge-diff
372 // +protobuf.options.(gogoproto.goproto_stringer)=false
373 message FieldsV1 {
374 // Raw is the underlying serialization of this object.
375 optional bytes Raw = 1;
376 }
377
378 // GetOptions is the standard query options to the standard REST get call.
379 message GetOptions {
380 // resourceVersion sets a constraint on what resource versions a request may be served from.
381 // See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
382 // details.
383 //
384 // Defaults to unset
385 // +optional
386 optional string resourceVersion = 1;
387 }
388
389 // GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying
390 // concepts during lookup stages without having partially valid types
391 //
392 // +protobuf.options.(gogoproto.goproto_stringer)=false
393 message GroupKind {
394 optional string group = 1;
395
396 optional string kind = 2;
397 }
398
399 // GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying
400 // concepts during lookup stages without having partially valid types
401 //
402 // +protobuf.options.(gogoproto.goproto_stringer)=false
403 message GroupResource {
404 optional string group = 1;
405
406 optional string resource = 2;
407 }
408
409 // GroupVersion contains the "group" and the "version", which uniquely identifies the API.
410 //
411 // +protobuf.options.(gogoproto.goproto_stringer)=false
412 message GroupVersion {
413 optional string group = 1;
414
415 optional string version = 2;
416 }
417
418 // GroupVersion contains the "group/version" and "version" string of a version.
419 // It is made a struct to keep extensibility.
420 message GroupVersionForDiscovery {
421 // groupVersion specifies the API group and version in the form "group/version"
422 optional string groupVersion = 1;
423
424 // version specifies the version in the form of "version". This is to save
425 // the clients the trouble of splitting the GroupVersion.
426 optional string version = 2;
427 }
428
429 // GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion
430 // to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling
431 //
432 // +protobuf.options.(gogoproto.goproto_stringer)=false
433 message GroupVersionKind {
434 optional string group = 1;
435
436 optional string version = 2;
437
438 optional string kind = 3;
439 }
440
441 // GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion
442 // to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling
443 //
444 // +protobuf.options.(gogoproto.goproto_stringer)=false
445 message GroupVersionResource {
446 optional string group = 1;
447
448 optional string version = 2;
449
450 optional string resource = 3;
451 }
452
453 // A label selector is a label query over a set of resources. The result of matchLabels and
454 // matchExpressions are ANDed. An empty label selector matches all objects. A null
455 // label selector matches no objects.
456 // +structType=atomic
457 message LabelSelector {
458 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
459 // map is equivalent to an element of matchExpressions, whose key field is "key", the
460 // operator is "In", and the values array contains only "value". The requirements are ANDed.
461 // +optional
462 map<string, string> matchLabels = 1;
463
464 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
465 // +optional
466 // +listType=atomic
467 repeated LabelSelectorRequirement matchExpressions = 2;
468 }
469
470 // A label selector requirement is a selector that contains values, a key, and an operator that
471 // relates the key and values.
472 message LabelSelectorRequirement {
473 // key is the label key that the selector applies to.
474 optional string key = 1;
475
476 // operator represents a key's relationship to a set of values.
477 // Valid operators are In, NotIn, Exists and DoesNotExist.
478 optional string operator = 2;
479
480 // values is an array of string values. If the operator is In or NotIn,
481 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
482 // the values array must be empty. This array is replaced during a strategic
483 // merge patch.
484 // +optional
485 // +listType=atomic
486 repeated string values = 3;
487 }
488
489 // List holds a list of objects, which may not be known by the server.
490 message List {
491 // Standard list metadata.
492 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
493 // +optional
494 optional ListMeta metadata = 1;
495
496 // List of objects
497 repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2;
498 }
499
500 // ListMeta describes metadata that synthetic resources must have, including lists and
501 // various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
502 message ListMeta {
503 // Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.
504 // +optional
505 optional string selfLink = 1;
506
507 // String that identifies the server's internal version of this object that
508 // can be used by clients to determine when objects have changed.
509 // Value must be treated as opaque by clients and passed unmodified back to the server.
510 // Populated by the system.
511 // Read-only.
512 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
513 // +optional
514 optional string resourceVersion = 2;
515
516 // continue may be set if the user set a limit on the number of items returned, and indicates that
517 // the server has more data available. The value is opaque and may be used to issue another request
518 // to the endpoint that served this list to retrieve the next set of available objects. Continuing a
519 // consistent list may not be possible if the server configuration has changed or more than a few
520 // minutes have passed. The resourceVersion field returned when using this continue value will be
521 // identical to the value in the first response, unless you have received this token from an error
522 // message.
523 optional string continue = 3;
524
525 // remainingItemCount is the number of subsequent items in the list which are not included in this
526 // list response. If the list request contained label or field selectors, then the number of
527 // remaining items is unknown and the field will be left unset and omitted during serialization.
528 // If the list is complete (either because it is not chunking or because this is the last chunk),
529 // then there are no more remaining items and this field will be left unset and omitted during
530 // serialization.
531 // Servers older than v1.15 do not set this field.
532 // The intended use of the remainingItemCount is *estimating* the size of a collection. Clients
533 // should not rely on the remainingItemCount to be set or to be exact.
534 // +optional
535 optional int64 remainingItemCount = 4;
536 }
537
538 // ListOptions is the query options to a standard REST list call.
539 message ListOptions {
540 // A selector to restrict the list of returned objects by their labels.
541 // Defaults to everything.
542 // +optional
543 optional string labelSelector = 1;
544
545 // A selector to restrict the list of returned objects by their fields.
546 // Defaults to everything.
547 // +optional
548 optional string fieldSelector = 2;
549
550 // Watch for changes to the described resources and return them as a stream of
551 // add, update, and remove notifications. Specify resourceVersion.
552 // +optional
553 optional bool watch = 3;
554
555 // allowWatchBookmarks requests watch events with type "BOOKMARK".
556 // Servers that do not implement bookmarks may ignore this flag and
557 // bookmarks are sent at the server's discretion. Clients should not
558 // assume bookmarks are returned at any specific interval, nor may they
559 // assume the server will send any BOOKMARK event during a session.
560 // If this is not a watch, this field is ignored.
561 // +optional
562 optional bool allowWatchBookmarks = 9;
563
564 // resourceVersion sets a constraint on what resource versions a request may be served from.
565 // See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
566 // details.
567 //
568 // Defaults to unset
569 // +optional
570 optional string resourceVersion = 4;
571
572 // resourceVersionMatch determines how resourceVersion is applied to list calls.
573 // It is highly recommended that resourceVersionMatch be set for list calls where
574 // resourceVersion is set
575 // See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
576 // details.
577 //
578 // Defaults to unset
579 // +optional
580 optional string resourceVersionMatch = 10;
581
582 // Timeout for the list/watch call.
583 // This limits the duration of the call, regardless of any activity or inactivity.
584 // +optional
585 optional int64 timeoutSeconds = 5;
586
587 // limit is a maximum number of responses to return for a list call. If more items exist, the
588 // server will set the `continue` field on the list metadata to a value that can be used with the
589 // same initial query to retrieve the next set of results. Setting a limit may return fewer than
590 // the requested amount of items (up to zero items) in the event all requested objects are
591 // filtered out and clients should only use the presence of the continue field to determine whether
592 // more results are available. Servers may choose not to support the limit argument and will return
593 // all of the available results. If limit is specified and the continue field is empty, clients may
594 // assume that no more results are available. This field is not supported if watch is true.
595 //
596 // The server guarantees that the objects returned when using continue will be identical to issuing
597 // a single list call without a limit - that is, no objects created, modified, or deleted after the
598 // first request is issued will be included in any subsequent continued requests. This is sometimes
599 // referred to as a consistent snapshot, and ensures that a client that is using limit to receive
600 // smaller chunks of a very large result can ensure they see all possible objects. If objects are
601 // updated during a chunked list the version of the object that was present at the time the first list
602 // result was calculated is returned.
603 optional int64 limit = 7;
604
605 // The continue option should be set when retrieving more results from the server. Since this value is
606 // server defined, clients may only use the continue value from a previous query result with identical
607 // query parameters (except for the value of continue) and the server may reject a continue value it
608 // does not recognize. If the specified continue value is no longer valid whether due to expiration
609 // (generally five to fifteen minutes) or a configuration change on the server, the server will
610 // respond with a 410 ResourceExpired error together with a continue token. If the client needs a
611 // consistent list, it must restart their list without the continue field. Otherwise, the client may
612 // send another list request with the token received with the 410 error, the server will respond with
613 // a list starting from the next key, but from the latest snapshot, which is inconsistent from the
614 // previous list results - objects that are created, modified, or deleted after the first list request
615 // will be included in the response, as long as their keys are after the "next key".
616 //
617 // This field is not supported when watch is true. Clients may start a watch from the last
618 // resourceVersion value returned by the server and not miss any modifications.
619 optional string continue = 8;
620
621 // `sendInitialEvents=true` may be set together with `watch=true`.
622 // In that case, the watch stream will begin with synthetic events to
623 // produce the current state of objects in the collection. Once all such
624 // events have been sent, a synthetic "Bookmark" event will be sent.
625 // The bookmark will report the ResourceVersion (RV) corresponding to the
626 // set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation.
627 // Afterwards, the watch stream will proceed as usual, sending watch events
628 // corresponding to changes (subsequent to the RV) to objects watched.
629 //
630 // When `sendInitialEvents` option is set, we require `resourceVersionMatch`
631 // option to also be set. The semantic of the watch request is as following:
632 // - `resourceVersionMatch` = NotOlderThan
633 // is interpreted as "data at least as new as the provided `resourceVersion`"
634 // and the bookmark event is send when the state is synced
635 // to a `resourceVersion` at least as fresh as the one provided by the ListOptions.
636 // If `resourceVersion` is unset, this is interpreted as "consistent read" and the
637 // bookmark event is send when the state is synced at least to the moment
638 // when request started being processed.
639 // - `resourceVersionMatch` set to any other value or unset
640 // Invalid error is returned.
641 //
642 // Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward
643 // compatibility reasons) and to false otherwise.
644 // +optional
645 optional bool sendInitialEvents = 11;
646 }
647
648 // ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource
649 // that the fieldset applies to.
650 message ManagedFieldsEntry {
651 // Manager is an identifier of the workflow managing these fields.
652 optional string manager = 1;
653
654 // Operation is the type of operation which lead to this ManagedFieldsEntry being created.
655 // The only valid values for this field are 'Apply' and 'Update'.
656 optional string operation = 2;
657
658 // APIVersion defines the version of this resource that this field set
659 // applies to. The format is "group/version" just like the top-level
660 // APIVersion field. It is necessary to track the version of a field
661 // set because it cannot be automatically converted.
662 optional string apiVersion = 3;
663
664 // Time is the timestamp of when the ManagedFields entry was added. The
665 // timestamp will also be updated if a field is added, the manager
666 // changes any of the owned fields value or removes a field. The
667 // timestamp does not update when a field is removed from the entry
668 // because another manager took it over.
669 // +optional
670 optional Time time = 4;
671
672 // FieldsType is the discriminator for the different fields format and version.
673 // There is currently only one possible value: "FieldsV1"
674 optional string fieldsType = 6;
675
676 // FieldsV1 holds the first JSON version format as described in the "FieldsV1" type.
677 // +optional
678 optional FieldsV1 fieldsV1 = 7;
679
680 // Subresource is the name of the subresource used to update that object, or
681 // empty string if the object was updated through the main resource. The
682 // value of this field is used to distinguish between managers, even if they
683 // share the same name. For example, a status update will be distinct from a
684 // regular update using the same manager name.
685 // Note that the APIVersion field is not related to the Subresource field and
686 // it always corresponds to the version of the main resource.
687 optional string subresource = 8;
688 }
689
690 // MicroTime is version of Time with microsecond level precision.
691 //
692 // +protobuf.options.marshal=false
693 // +protobuf.as=Timestamp
694 // +protobuf.options.(gogoproto.goproto_stringer)=false
695 message MicroTime {
696 // Represents seconds of UTC time since Unix epoch
697 // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
698 // 9999-12-31T23:59:59Z inclusive.
699 optional int64 seconds = 1;
700
701 // Non-negative fractions of a second at nanosecond resolution. Negative
702 // second values with fractions must still have non-negative nanos values
703 // that count forward in time. Must be from 0 to 999,999,999
704 // inclusive. This field may be limited in precision depending on context.
705 optional int32 nanos = 2;
706 }
707
708 // ObjectMeta is metadata that all persisted resources must have, which includes all objects
709 // users must create.
710 message ObjectMeta {
711 // Name must be unique within a namespace. Is required when creating resources, although
712 // some resources may allow a client to request the generation of an appropriate name
713 // automatically. Name is primarily intended for creation idempotence and configuration
714 // definition.
715 // Cannot be updated.
716 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
717 // +optional
718 optional string name = 1;
719
720 // GenerateName is an optional prefix, used by the server, to generate a unique
721 // name ONLY IF the Name field has not been provided.
722 // If this field is used, the name returned to the client will be different
723 // than the name passed. This value will also be combined with a unique suffix.
724 // The provided value has the same validation rules as the Name field,
725 // and may be truncated by the length of the suffix required to make the value
726 // unique on the server.
727 //
728 // If this field is specified and the generated name exists, the server will return a 409.
729 //
730 // Applied only if Name is not specified.
731 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
732 // +optional
733 optional string generateName = 2;
734
735 // Namespace defines the space within which each name must be unique. An empty namespace is
736 // equivalent to the "default" namespace, but "default" is the canonical representation.
737 // Not all objects are required to be scoped to a namespace - the value of this field for
738 // those objects will be empty.
739 //
740 // Must be a DNS_LABEL.
741 // Cannot be updated.
742 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces
743 // +optional
744 optional string namespace = 3;
745
746 // Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.
747 // +optional
748 optional string selfLink = 4;
749
750 // UID is the unique in time and space value for this object. It is typically generated by
751 // the server on successful creation of a resource and is not allowed to change on PUT
752 // operations.
753 //
754 // Populated by the system.
755 // Read-only.
756 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
757 // +optional
758 optional string uid = 5;
759
760 // An opaque value that represents the internal version of this object that can
761 // be used by clients to determine when objects have changed. May be used for optimistic
762 // concurrency, change detection, and the watch operation on a resource or set of resources.
763 // Clients must treat these values as opaque and passed unmodified back to the server.
764 // They may only be valid for a particular resource or set of resources.
765 //
766 // Populated by the system.
767 // Read-only.
768 // Value must be treated as opaque by clients and .
769 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
770 // +optional
771 optional string resourceVersion = 6;
772
773 // A sequence number representing a specific generation of the desired state.
774 // Populated by the system. Read-only.
775 // +optional
776 optional int64 generation = 7;
777
778 // CreationTimestamp is a timestamp representing the server time when this object was
779 // created. It is not guaranteed to be set in happens-before order across separate operations.
780 // Clients may not set this value. It is represented in RFC3339 form and is in UTC.
781 //
782 // Populated by the system.
783 // Read-only.
784 // Null for lists.
785 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
786 // +optional
787 optional Time creationTimestamp = 8;
788
789 // DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
790 // field is set by the server when a graceful deletion is requested by the user, and is not
791 // directly settable by a client. The resource is expected to be deleted (no longer visible
792 // from resource lists, and not reachable by name) after the time in this field, once the
793 // finalizers list is empty. As long as the finalizers list contains items, deletion is blocked.
794 // Once the deletionTimestamp is set, this value may not be unset or be set further into the
795 // future, although it may be shortened or the resource may be deleted prior to this time.
796 // For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react
797 // by sending a graceful termination signal to the containers in the pod. After that 30 seconds,
798 // the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup,
799 // remove the pod from the API. In the presence of network partitions, this object may still
800 // exist after this timestamp, until an administrator or automated process can determine the
801 // resource is fully terminated.
802 // If not set, graceful deletion of the object has not been requested.
803 //
804 // Populated by the system when a graceful deletion is requested.
805 // Read-only.
806 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
807 // +optional
808 optional Time deletionTimestamp = 9;
809
810 // Number of seconds allowed for this object to gracefully terminate before
811 // it will be removed from the system. Only set when deletionTimestamp is also set.
812 // May only be shortened.
813 // Read-only.
814 // +optional
815 optional int64 deletionGracePeriodSeconds = 10;
816
817 // Map of string keys and values that can be used to organize and categorize
818 // (scope and select) objects. May match selectors of replication controllers
819 // and services.
820 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
821 // +optional
822 map<string, string> labels = 11;
823
824 // Annotations is an unstructured key value map stored with a resource that may be
825 // set by external tools to store and retrieve arbitrary metadata. They are not
826 // queryable and should be preserved when modifying objects.
827 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
828 // +optional
829 map<string, string> annotations = 12;
830
831 // List of objects depended by this object. If ALL objects in the list have
832 // been deleted, this object will be garbage collected. If this object is managed by a controller,
833 // then an entry in this list will point to this controller, with the controller field set to true.
834 // There cannot be more than one managing controller.
835 // +optional
836 // +patchMergeKey=uid
837 // +patchStrategy=merge
838 // +listType=map
839 // +listMapKey=uid
840 repeated OwnerReference ownerReferences = 13;
841
842 // Must be empty before the object is deleted from the registry. Each entry
843 // is an identifier for the responsible component that will remove the entry
844 // from the list. If the deletionTimestamp of the object is non-nil, entries
845 // in this list can only be removed.
846 // Finalizers may be processed and removed in any order. Order is NOT enforced
847 // because it introduces significant risk of stuck finalizers.
848 // finalizers is a shared field, any actor with permission can reorder it.
849 // If the finalizer list is processed in order, then this can lead to a situation
850 // in which the component responsible for the first finalizer in the list is
851 // waiting for a signal (field value, external system, or other) produced by a
852 // component responsible for a finalizer later in the list, resulting in a deadlock.
853 // Without enforced ordering finalizers are free to order amongst themselves and
854 // are not vulnerable to ordering changes in the list.
855 // +optional
856 // +patchStrategy=merge
857 // +listType=set
858 repeated string finalizers = 14;
859
860 // ManagedFields maps workflow-id and version to the set of fields
861 // that are managed by that workflow. This is mostly for internal
862 // housekeeping, and users typically shouldn't need to set or
863 // understand this field. A workflow can be the user's name, a
864 // controller's name, or the name of a specific apply path like
865 // "ci-cd". The set of fields is always in the version that the
866 // workflow used when modifying the object.
867 //
868 // +optional
869 // +listType=atomic
870 repeated ManagedFieldsEntry managedFields = 17;
871 }
872
873 // OwnerReference contains enough information to let you identify an owning
874 // object. An owning object must be in the same namespace as the dependent, or
875 // be cluster-scoped, so there is no namespace field.
876 // +structType=atomic
877 message OwnerReference {
878 // API version of the referent.
879 optional string apiVersion = 5;
880
881 // Kind of the referent.
882 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
883 optional string kind = 1;
884
885 // Name of the referent.
886 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
887 optional string name = 3;
888
889 // UID of the referent.
890 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
891 optional string uid = 4;
892
893 // If true, this reference points to the managing controller.
894 // +optional
895 optional bool controller = 6;
896
897 // If true, AND if the owner has the "foregroundDeletion" finalizer, then
898 // the owner cannot be deleted from the key-value store until this
899 // reference is removed.
900 // See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion
901 // for how the garbage collector interacts with this field and enforces the foreground deletion.
902 // Defaults to false.
903 // To set this field, a user needs "delete" permission of the owner,
904 // otherwise 422 (Unprocessable Entity) will be returned.
905 // +optional
906 optional bool blockOwnerDeletion = 7;
907 }
908
909 // PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients
910 // to get access to a particular ObjectMeta schema without knowing the details of the version.
911 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
912 message PartialObjectMetadata {
913 // Standard object's metadata.
914 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
915 // +optional
916 optional ObjectMeta metadata = 1;
917 }
918
919 // PartialObjectMetadataList contains a list of objects containing only their metadata
920 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
921 message PartialObjectMetadataList {
922 // Standard list metadata.
923 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
924 // +optional
925 optional ListMeta metadata = 1;
926
927 // items contains each of the included items.
928 repeated PartialObjectMetadata items = 2;
929 }
930
931 // Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.
932 message Patch {
933 }
934
935 // PatchOptions may be provided when patching an API object.
936 // PatchOptions is meant to be a superset of UpdateOptions.
937 message PatchOptions {
938 // When present, indicates that modifications should not be
939 // persisted. An invalid or unrecognized dryRun directive will
940 // result in an error response and no further processing of the
941 // request. Valid values are:
942 // - All: all dry run stages will be processed
943 // +optional
944 // +listType=atomic
945 repeated string dryRun = 1;
946
947 // Force is going to "force" Apply requests. It means user will
948 // re-acquire conflicting fields owned by other people. Force
949 // flag must be unset for non-apply patch requests.
950 // +optional
951 optional bool force = 2;
952
953 // fieldManager is a name associated with the actor or entity
954 // that is making these changes. The value must be less than or
955 // 128 characters long, and only contain printable characters,
956 // as defined by https://golang.org/pkg/unicode/#IsPrint. This
957 // field is required for apply requests
958 // (application/apply-patch) but optional for non-apply patch
959 // types (JsonPatch, MergePatch, StrategicMergePatch).
960 // +optional
961 optional string fieldManager = 3;
962
963 // fieldValidation instructs the server on how to handle
964 // objects in the request (POST/PUT/PATCH) containing unknown
965 // or duplicate fields. Valid values are:
966 // - Ignore: This will ignore any unknown fields that are silently
967 // dropped from the object, and will ignore all but the last duplicate
968 // field that the decoder encounters. This is the default behavior
969 // prior to v1.23.
970 // - Warn: This will send a warning via the standard warning response
971 // header for each unknown field that is dropped from the object, and
972 // for each duplicate field that is encountered. The request will
973 // still succeed if there are no other errors, and will only persist
974 // the last of any duplicate fields. This is the default in v1.23+
975 // - Strict: This will fail the request with a BadRequest error if
976 // any unknown fields would be dropped from the object, or if any
977 // duplicate fields are present. The error returned from the server
978 // will contain all unknown and duplicate fields encountered.
979 // +optional
980 optional string fieldValidation = 4;
981 }
982
983 // Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.
984 message Preconditions {
985 // Specifies the target UID.
986 // +optional
987 optional string uid = 1;
988
989 // Specifies the target ResourceVersion
990 // +optional
991 optional string resourceVersion = 2;
992 }
993
994 // RootPaths lists the paths available at root.
995 // For example: "/healthz", "/apis".
996 message RootPaths {
997 // paths are the paths available at root.
998 // +listType=atomic
999 repeated string paths = 1;
1000 }
1001
1002 // ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.
1003 message ServerAddressByClientCIDR {
1004 // The CIDR with which clients can match their IP to figure out the server address that they should use.
1005 optional string clientCIDR = 1;
1006
1007 // Address of this server, suitable for a client that matches the above CIDR.
1008 // This can be a hostname, hostname:port, IP or IP:port.
1009 optional string serverAddress = 2;
1010 }
1011
1012 // Status is a return value for calls that don't return other objects.
1013 message Status {
1014 // Standard list metadata.
1015 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1016 // +optional
1017 optional ListMeta metadata = 1;
1018
1019 // Status of the operation.
1020 // One of: "Success" or "Failure".
1021 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
1022 // +optional
1023 optional string status = 2;
1024
1025 // A human-readable description of the status of this operation.
1026 // +optional
1027 optional string message = 3;
1028
1029 // A machine-readable description of why this operation is in the
1030 // "Failure" status. If this value is empty there
1031 // is no information available. A Reason clarifies an HTTP status
1032 // code but does not override it.
1033 // +optional
1034 optional string reason = 4;
1035
1036 // Extended data associated with the reason. Each reason may define its
1037 // own extended details. This field is optional and the data returned
1038 // is not guaranteed to conform to any schema except that defined by
1039 // the reason type.
1040 // +optional
1041 // +listType=atomic
1042 optional StatusDetails details = 5;
1043
1044 // Suggested HTTP return code for this status, 0 if not set.
1045 // +optional
1046 optional int32 code = 6;
1047 }
1048
1049 // StatusCause provides more information about an api.Status failure, including
1050 // cases when multiple errors are encountered.
1051 message StatusCause {
1052 // A machine-readable description of the cause of the error. If this value is
1053 // empty there is no information available.
1054 // +optional
1055 optional string reason = 1;
1056
1057 // A human-readable description of the cause of the error. This field may be
1058 // presented as-is to a reader.
1059 // +optional
1060 optional string message = 2;
1061
1062 // The field of the resource that has caused this error, as named by its JSON
1063 // serialization. May include dot and postfix notation for nested attributes.
1064 // Arrays are zero-indexed. Fields may appear more than once in an array of
1065 // causes due to fields having multiple errors.
1066 // Optional.
1067 //
1068 // Examples:
1069 // "name" - the field "name" on the current resource
1070 // "items[0].name" - the field "name" on the first array entry in "items"
1071 // +optional
1072 optional string field = 3;
1073 }
1074
1075 // StatusDetails is a set of additional properties that MAY be set by the
1076 // server to provide additional information about a response. The Reason
1077 // field of a Status object defines what attributes will be set. Clients
1078 // must ignore fields that do not match the defined type of each attribute,
1079 // and should assume that any attribute may be empty, invalid, or under
1080 // defined.
1081 message StatusDetails {
1082 // The name attribute of the resource associated with the status StatusReason
1083 // (when there is a single name which can be described).
1084 // +optional
1085 optional string name = 1;
1086
1087 // The group attribute of the resource associated with the status StatusReason.
1088 // +optional
1089 optional string group = 2;
1090
1091 // The kind attribute of the resource associated with the status StatusReason.
1092 // On some operations may differ from the requested resource Kind.
1093 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1094 // +optional
1095 optional string kind = 3;
1096
1097 // UID of the resource.
1098 // (when there is a single resource which can be described).
1099 // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
1100 // +optional
1101 optional string uid = 6;
1102
1103 // The Causes array includes more details associated with the StatusReason
1104 // failure. Not all StatusReasons may provide detailed causes.
1105 // +optional
1106 // +listType=atomic
1107 repeated StatusCause causes = 4;
1108
1109 // If specified, the time in seconds before the operation should be retried. Some errors may indicate
1110 // the client must take an alternate action - for those errors this field may indicate how long to wait
1111 // before taking the alternate action.
1112 // +optional
1113 optional int32 retryAfterSeconds = 5;
1114 }
1115
1116 // TableOptions are used when a Table is requested by the caller.
1117 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
1118 message TableOptions {
1119 // includeObject decides whether to include each object along with its columnar information.
1120 // Specifying "None" will return no object, specifying "Object" will return the full object contents, and
1121 // specifying "Metadata" (the default) will return the object's metadata in the PartialObjectMetadata kind
1122 // in version v1beta1 of the meta.k8s.io API group.
1123 optional string includeObject = 1;
1124 }
1125
1126 // Time is a wrapper around time.Time which supports correct
1127 // marshaling to YAML and JSON. Wrappers are provided for many
1128 // of the factory methods that the time package offers.
1129 //
1130 // +protobuf.options.marshal=false
1131 // +protobuf.as=Timestamp
1132 // +protobuf.options.(gogoproto.goproto_stringer)=false
1133 message Time {
1134 // Represents seconds of UTC time since Unix epoch
1135 // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
1136 // 9999-12-31T23:59:59Z inclusive.
1137 optional int64 seconds = 1;
1138
1139 // Non-negative fractions of a second at nanosecond resolution. Negative
1140 // second values with fractions must still have non-negative nanos values
1141 // that count forward in time. Must be from 0 to 999,999,999
1142 // inclusive. This field may be limited in precision depending on context.
1143 optional int32 nanos = 2;
1144 }
1145
1146 // Timestamp is a struct that is equivalent to Time, but intended for
1147 // protobuf marshalling/unmarshalling. It is generated into a serialization
1148 // that matches Time. Do not use in Go structs.
1149 message Timestamp {
1150 // Represents seconds of UTC time since Unix epoch
1151 // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
1152 // 9999-12-31T23:59:59Z inclusive.
1153 optional int64 seconds = 1;
1154
1155 // Non-negative fractions of a second at nanosecond resolution. Negative
1156 // second values with fractions must still have non-negative nanos values
1157 // that count forward in time. Must be from 0 to 999,999,999
1158 // inclusive. This field may be limited in precision depending on context.
1159 optional int32 nanos = 2;
1160 }
1161
1162 // TypeMeta describes an individual object in an API response or request
1163 // with strings representing the type of the object and its API schema version.
1164 // Structures that are versioned or persisted should inline TypeMeta.
1165 //
1166 // +k8s:deepcopy-gen=false
1167 message TypeMeta {
1168 // Kind is a string value representing the REST resource this object represents.
1169 // Servers may infer this from the endpoint the client submits requests to.
1170 // Cannot be updated.
1171 // In CamelCase.
1172 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1173 // +optional
1174 optional string kind = 1;
1175
1176 // APIVersion defines the versioned schema of this representation of an object.
1177 // Servers should convert recognized schemas to the latest internal value, and
1178 // may reject unrecognized values.
1179 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1180 // +optional
1181 optional string apiVersion = 2;
1182 }
1183
1184 // UpdateOptions may be provided when updating an API object.
1185 // All fields in UpdateOptions should also be present in PatchOptions.
1186 message UpdateOptions {
1187 // When present, indicates that modifications should not be
1188 // persisted. An invalid or unrecognized dryRun directive will
1189 // result in an error response and no further processing of the
1190 // request. Valid values are:
1191 // - All: all dry run stages will be processed
1192 // +optional
1193 // +listType=atomic
1194 repeated string dryRun = 1;
1195
1196 // fieldManager is a name associated with the actor or entity
1197 // that is making these changes. The value must be less than or
1198 // 128 characters long, and only contain printable characters,
1199 // as defined by https://golang.org/pkg/unicode/#IsPrint.
1200 // +optional
1201 optional string fieldManager = 2;
1202
1203 // fieldValidation instructs the server on how to handle
1204 // objects in the request (POST/PUT/PATCH) containing unknown
1205 // or duplicate fields. Valid values are:
1206 // - Ignore: This will ignore any unknown fields that are silently
1207 // dropped from the object, and will ignore all but the last duplicate
1208 // field that the decoder encounters. This is the default behavior
1209 // prior to v1.23.
1210 // - Warn: This will send a warning via the standard warning response
1211 // header for each unknown field that is dropped from the object, and
1212 // for each duplicate field that is encountered. The request will
1213 // still succeed if there are no other errors, and will only persist
1214 // the last of any duplicate fields. This is the default in v1.23+
1215 // - Strict: This will fail the request with a BadRequest error if
1216 // any unknown fields would be dropped from the object, or if any
1217 // duplicate fields are present. The error returned from the server
1218 // will contain all unknown and duplicate fields encountered.
1219 // +optional
1220 optional string fieldValidation = 3;
1221 }
1222
1223 // Verbs masks the value so protobuf can generate
1224 //
1225 // +protobuf.nullable=true
1226 // +protobuf.options.(gogoproto.goproto_stringer)=false
1227 message Verbs {
1228 // items, if empty, will result in an empty slice
1229
1230 repeated string items = 1;
1231 }
1232
1233 // Event represents a single event to a watched resource.
1234 //
1235 // +protobuf=true
1236 // +k8s:deepcopy-gen=true
1237 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
1238 message WatchEvent {
1239 optional string type = 1;
1240
1241 // Object is:
1242 // * If Type is Added or Modified: the new state of the object.
1243 // * If Type is Deleted: the state of the object immediately before deletion.
1244 // * If Type is Error: *Status is recommended; other types may make sense
1245 // depending on context.
1246 optional .k8s.io.apimachinery.pkg.runtime.RawExtension object = 2;
1247 }
1248