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