blob: c1743382a8a67faa743db3ccd6e728123903dc90 [file] [log] [blame]
Zack Williamse940c7a2019-08-21 14:25:39 -07001/*
2Copyright 2015 The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Package v1 contains API types that are common to all versions.
18//
19// The package contains two categories of types:
20// - external (serialized) types that lack their own version (e.g TypeMeta)
21// - internal (never-serialized) types that are needed by several different
22// api groups, and so live here, to avoid duplication and/or import loops
23// (e.g. LabelSelector).
24// In the future, we will probably move these categories of objects into
25// separate packages.
26package v1
27
28import (
29 "fmt"
30 "strings"
31
32 "k8s.io/apimachinery/pkg/runtime"
33 "k8s.io/apimachinery/pkg/types"
34)
35
36// TypeMeta describes an individual object in an API response or request
37// with strings representing the type of the object and its API schema version.
38// Structures that are versioned or persisted should inline TypeMeta.
39//
40// +k8s:deepcopy-gen=false
41type TypeMeta struct {
42 // Kind is a string value representing the REST resource this object represents.
43 // Servers may infer this from the endpoint the client submits requests to.
44 // Cannot be updated.
45 // In CamelCase.
46 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
47 // +optional
48 Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"`
49
50 // APIVersion defines the versioned schema of this representation of an object.
51 // Servers should convert recognized schemas to the latest internal value, and
52 // may reject unrecognized values.
53 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
54 // +optional
55 APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=apiVersion"`
56}
57
58// ListMeta describes metadata that synthetic resources must have, including lists and
59// various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
60type ListMeta struct {
61 // selfLink is a URL representing this object.
62 // Populated by the system.
63 // Read-only.
64 // +optional
65 SelfLink string `json:"selfLink,omitempty" protobuf:"bytes,1,opt,name=selfLink"`
66
67 // String that identifies the server's internal version of this object that
68 // can be used by clients to determine when objects have changed.
69 // Value must be treated as opaque by clients and passed unmodified back to the server.
70 // Populated by the system.
71 // Read-only.
72 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
73 // +optional
74 ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,2,opt,name=resourceVersion"`
75
76 // continue may be set if the user set a limit on the number of items returned, and indicates that
77 // the server has more data available. The value is opaque and may be used to issue another request
78 // to the endpoint that served this list to retrieve the next set of available objects. Continuing a
79 // consistent list may not be possible if the server configuration has changed or more than a few
80 // minutes have passed. The resourceVersion field returned when using this continue value will be
81 // identical to the value in the first response, unless you have received this token from an error
82 // message.
83 Continue string `json:"continue,omitempty" protobuf:"bytes,3,opt,name=continue"`
84}
85
86// These are internal finalizer values for Kubernetes-like APIs, must be qualified name unless defined here
87const (
88 FinalizerOrphanDependents string = "orphan"
89 FinalizerDeleteDependents string = "foregroundDeletion"
90)
91
92// ObjectMeta is metadata that all persisted resources must have, which includes all objects
93// users must create.
94type ObjectMeta struct {
95 // Name must be unique within a namespace. Is required when creating resources, although
96 // some resources may allow a client to request the generation of an appropriate name
97 // automatically. Name is primarily intended for creation idempotence and configuration
98 // definition.
99 // Cannot be updated.
100 // More info: http://kubernetes.io/docs/user-guide/identifiers#names
101 // +optional
102 Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
103
104 // GenerateName is an optional prefix, used by the server, to generate a unique
105 // name ONLY IF the Name field has not been provided.
106 // If this field is used, the name returned to the client will be different
107 // than the name passed. This value will also be combined with a unique suffix.
108 // The provided value has the same validation rules as the Name field,
109 // and may be truncated by the length of the suffix required to make the value
110 // unique on the server.
111 //
112 // If this field is specified and the generated name exists, the server will
113 // NOT return a 409 - instead, it will either return 201 Created or 500 with Reason
114 // ServerTimeout indicating a unique name could not be found in the time allotted, and the client
115 // should retry (optionally after the time indicated in the Retry-After header).
116 //
117 // Applied only if Name is not specified.
118 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
119 // +optional
120 GenerateName string `json:"generateName,omitempty" protobuf:"bytes,2,opt,name=generateName"`
121
122 // Namespace defines the space within each name must be unique. An empty namespace is
123 // equivalent to the "default" namespace, but "default" is the canonical representation.
124 // Not all objects are required to be scoped to a namespace - the value of this field for
125 // those objects will be empty.
126 //
127 // Must be a DNS_LABEL.
128 // Cannot be updated.
129 // More info: http://kubernetes.io/docs/user-guide/namespaces
130 // +optional
131 Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"`
132
133 // SelfLink is a URL representing this object.
134 // Populated by the system.
135 // Read-only.
136 // +optional
137 SelfLink string `json:"selfLink,omitempty" protobuf:"bytes,4,opt,name=selfLink"`
138
139 // UID is the unique in time and space value for this object. It is typically generated by
140 // the server on successful creation of a resource and is not allowed to change on PUT
141 // operations.
142 //
143 // Populated by the system.
144 // Read-only.
145 // More info: http://kubernetes.io/docs/user-guide/identifiers#uids
146 // +optional
147 UID types.UID `json:"uid,omitempty" protobuf:"bytes,5,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"`
148
149 // An opaque value that represents the internal version of this object that can
150 // be used by clients to determine when objects have changed. May be used for optimistic
151 // concurrency, change detection, and the watch operation on a resource or set of resources.
152 // Clients must treat these values as opaque and passed unmodified back to the server.
153 // They may only be valid for a particular resource or set of resources.
154 //
155 // Populated by the system.
156 // Read-only.
157 // Value must be treated as opaque by clients and .
158 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
159 // +optional
160 ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,6,opt,name=resourceVersion"`
161
162 // A sequence number representing a specific generation of the desired state.
163 // Populated by the system. Read-only.
164 // +optional
165 Generation int64 `json:"generation,omitempty" protobuf:"varint,7,opt,name=generation"`
166
167 // CreationTimestamp is a timestamp representing the server time when this object was
168 // created. It is not guaranteed to be set in happens-before order across separate operations.
169 // Clients may not set this value. It is represented in RFC3339 form and is in UTC.
170 //
171 // Populated by the system.
172 // Read-only.
173 // Null for lists.
174 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
175 // +optional
176 CreationTimestamp Time `json:"creationTimestamp,omitempty" protobuf:"bytes,8,opt,name=creationTimestamp"`
177
178 // DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
179 // field is set by the server when a graceful deletion is requested by the user, and is not
180 // directly settable by a client. The resource is expected to be deleted (no longer visible
181 // from resource lists, and not reachable by name) after the time in this field, once the
182 // finalizers list is empty. As long as the finalizers list contains items, deletion is blocked.
183 // Once the deletionTimestamp is set, this value may not be unset or be set further into the
184 // future, although it may be shortened or the resource may be deleted prior to this time.
185 // For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react
186 // by sending a graceful termination signal to the containers in the pod. After that 30 seconds,
187 // the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup,
188 // remove the pod from the API. In the presence of network partitions, this object may still
189 // exist after this timestamp, until an administrator or automated process can determine the
190 // resource is fully terminated.
191 // If not set, graceful deletion of the object has not been requested.
192 //
193 // Populated by the system when a graceful deletion is requested.
194 // Read-only.
195 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
196 // +optional
197 DeletionTimestamp *Time `json:"deletionTimestamp,omitempty" protobuf:"bytes,9,opt,name=deletionTimestamp"`
198
199 // Number of seconds allowed for this object to gracefully terminate before
200 // it will be removed from the system. Only set when deletionTimestamp is also set.
201 // May only be shortened.
202 // Read-only.
203 // +optional
204 DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty" protobuf:"varint,10,opt,name=deletionGracePeriodSeconds"`
205
206 // Map of string keys and values that can be used to organize and categorize
207 // (scope and select) objects. May match selectors of replication controllers
208 // and services.
209 // More info: http://kubernetes.io/docs/user-guide/labels
210 // +optional
211 Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,11,rep,name=labels"`
212
213 // Annotations is an unstructured key value map stored with a resource that may be
214 // set by external tools to store and retrieve arbitrary metadata. They are not
215 // queryable and should be preserved when modifying objects.
216 // More info: http://kubernetes.io/docs/user-guide/annotations
217 // +optional
218 Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,12,rep,name=annotations"`
219
220 // List of objects depended by this object. If ALL objects in the list have
221 // been deleted, this object will be garbage collected. If this object is managed by a controller,
222 // then an entry in this list will point to this controller, with the controller field set to true.
223 // There cannot be more than one managing controller.
224 // +optional
225 // +patchMergeKey=uid
226 // +patchStrategy=merge
227 OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" patchStrategy:"merge" patchMergeKey:"uid" protobuf:"bytes,13,rep,name=ownerReferences"`
228
229 // An initializer is a controller which enforces some system invariant at object creation time.
230 // This field is a list of initializers that have not yet acted on this object. If nil or empty,
231 // this object has been completely initialized. Otherwise, the object is considered uninitialized
232 // and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to
233 // observe uninitialized objects.
234 //
235 // When an object is created, the system will populate this list with the current set of initializers.
236 // Only privileged users may set or modify this list. Once it is empty, it may not be modified further
237 // by any user.
238 Initializers *Initializers `json:"initializers,omitempty" protobuf:"bytes,16,opt,name=initializers"`
239
240 // Must be empty before the object is deleted from the registry. Each entry
241 // is an identifier for the responsible component that will remove the entry
242 // from the list. If the deletionTimestamp of the object is non-nil, entries
243 // in this list can only be removed.
244 // +optional
245 // +patchStrategy=merge
246 Finalizers []string `json:"finalizers,omitempty" patchStrategy:"merge" protobuf:"bytes,14,rep,name=finalizers"`
247
248 // The name of the cluster which the object belongs to.
249 // This is used to distinguish resources with same name and namespace in different clusters.
250 // This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.
251 // +optional
252 ClusterName string `json:"clusterName,omitempty" protobuf:"bytes,15,opt,name=clusterName"`
253}
254
255// Initializers tracks the progress of initialization.
256type Initializers struct {
257 // Pending is a list of initializers that must execute in order before this object is visible.
258 // When the last pending initializer is removed, and no failing result is set, the initializers
259 // struct will be set to nil and the object is considered as initialized and visible to all
260 // clients.
261 // +patchMergeKey=name
262 // +patchStrategy=merge
263 Pending []Initializer `json:"pending" protobuf:"bytes,1,rep,name=pending" patchStrategy:"merge" patchMergeKey:"name"`
264 // If result is set with the Failure field, the object will be persisted to storage and then deleted,
265 // ensuring that other clients can observe the deletion.
266 Result *Status `json:"result,omitempty" protobuf:"bytes,2,opt,name=result"`
267}
268
269// Initializer is information about an initializer that has not yet completed.
270type Initializer struct {
271 // name of the process that is responsible for initializing this object.
272 Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
273}
274
275const (
276 // NamespaceDefault means the object is in the default namespace which is applied when not specified by clients
277 NamespaceDefault string = "default"
278 // NamespaceAll is the default argument to specify on a context when you want to list or filter resources across all namespaces
279 NamespaceAll string = ""
280 // NamespaceNone is the argument for a context when there is no namespace.
281 NamespaceNone string = ""
282 // NamespaceSystem is the system namespace where we place system components.
283 NamespaceSystem string = "kube-system"
284 // NamespacePublic is the namespace where we place public info (ConfigMaps)
285 NamespacePublic string = "kube-public"
286)
287
288// OwnerReference contains enough information to let you identify an owning
289// object. Currently, an owning object must be in the same namespace, so there
290// is no namespace field.
291type OwnerReference struct {
292 // API version of the referent.
293 APIVersion string `json:"apiVersion" protobuf:"bytes,5,opt,name=apiVersion"`
294 // Kind of the referent.
295 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
296 Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"`
297 // Name of the referent.
298 // More info: http://kubernetes.io/docs/user-guide/identifiers#names
299 Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
300 // UID of the referent.
301 // More info: http://kubernetes.io/docs/user-guide/identifiers#uids
302 UID types.UID `json:"uid" protobuf:"bytes,4,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
303 // If true, this reference points to the managing controller.
304 // +optional
305 Controller *bool `json:"controller,omitempty" protobuf:"varint,6,opt,name=controller"`
306 // If true, AND if the owner has the "foregroundDeletion" finalizer, then
307 // the owner cannot be deleted from the key-value store until this
308 // reference is removed.
309 // Defaults to false.
310 // To set this field, a user needs "delete" permission of the owner,
311 // otherwise 422 (Unprocessable Entity) will be returned.
312 // +optional
313 BlockOwnerDeletion *bool `json:"blockOwnerDeletion,omitempty" protobuf:"varint,7,opt,name=blockOwnerDeletion"`
314}
315
316// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
317
318// ListOptions is the query options to a standard REST list call.
319type ListOptions struct {
320 TypeMeta `json:",inline"`
321
322 // A selector to restrict the list of returned objects by their labels.
323 // Defaults to everything.
324 // +optional
325 LabelSelector string `json:"labelSelector,omitempty" protobuf:"bytes,1,opt,name=labelSelector"`
326 // A selector to restrict the list of returned objects by their fields.
327 // Defaults to everything.
328 // +optional
329 FieldSelector string `json:"fieldSelector,omitempty" protobuf:"bytes,2,opt,name=fieldSelector"`
330 // If true, partially initialized resources are included in the response.
331 // +optional
332 IncludeUninitialized bool `json:"includeUninitialized,omitempty" protobuf:"varint,6,opt,name=includeUninitialized"`
333 // Watch for changes to the described resources and return them as a stream of
334 // add, update, and remove notifications. Specify resourceVersion.
335 // +optional
336 Watch bool `json:"watch,omitempty" protobuf:"varint,3,opt,name=watch"`
337 // When specified with a watch call, shows changes that occur after that particular version of a resource.
338 // Defaults to changes from the beginning of history.
339 // When specified for list:
340 // - if unset, then the result is returned from remote storage based on quorum-read flag;
341 // - if it's 0, then we simply return what we currently have in cache, no guarantee;
342 // - if set to non zero, then the result is at least as fresh as given rv.
343 // +optional
344 ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,4,opt,name=resourceVersion"`
345 // Timeout for the list/watch call.
346 // This limits the duration of the call, regardless of any activity or inactivity.
347 // +optional
348 TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty" protobuf:"varint,5,opt,name=timeoutSeconds"`
349
350 // limit is a maximum number of responses to return for a list call. If more items exist, the
351 // server will set the `continue` field on the list metadata to a value that can be used with the
352 // same initial query to retrieve the next set of results. Setting a limit may return fewer than
353 // the requested amount of items (up to zero items) in the event all requested objects are
354 // filtered out and clients should only use the presence of the continue field to determine whether
355 // more results are available. Servers may choose not to support the limit argument and will return
356 // all of the available results. If limit is specified and the continue field is empty, clients may
357 // assume that no more results are available. This field is not supported if watch is true.
358 //
359 // The server guarantees that the objects returned when using continue will be identical to issuing
360 // a single list call without a limit - that is, no objects created, modified, or deleted after the
361 // first request is issued will be included in any subsequent continued requests. This is sometimes
362 // referred to as a consistent snapshot, and ensures that a client that is using limit to receive
363 // smaller chunks of a very large result can ensure they see all possible objects. If objects are
364 // updated during a chunked list the version of the object that was present at the time the first list
365 // result was calculated is returned.
366 Limit int64 `json:"limit,omitempty" protobuf:"varint,7,opt,name=limit"`
367 // The continue option should be set when retrieving more results from the server. Since this value is
368 // server defined, clients may only use the continue value from a previous query result with identical
369 // query parameters (except for the value of continue) and the server may reject a continue value it
370 // does not recognize. If the specified continue value is no longer valid whether due to expiration
371 // (generally five to fifteen minutes) or a configuration change on the server, the server will
372 // respond with a 410 ResourceExpired error together with a continue token. If the client needs a
373 // consistent list, it must restart their list without the continue field. Otherwise, the client may
374 // send another list request with the token received with the 410 error, the server will respond with
375 // a list starting from the next key, but from the latest snapshot, which is inconsistent from the
376 // previous list results - objects that are created, modified, or deleted after the first list request
377 // will be included in the response, as long as their keys are after the "next key".
378 //
379 // This field is not supported when watch is true. Clients may start a watch from the last
380 // resourceVersion value returned by the server and not miss any modifications.
381 Continue string `json:"continue,omitempty" protobuf:"bytes,8,opt,name=continue"`
382}
383
384// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
385
386// ExportOptions is the query options to the standard REST get call.
387type ExportOptions struct {
388 TypeMeta `json:",inline"`
389 // Should this value be exported. Export strips fields that a user can not specify.
390 Export bool `json:"export" protobuf:"varint,1,opt,name=export"`
391 // Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.
392 Exact bool `json:"exact" protobuf:"varint,2,opt,name=exact"`
393}
394
395// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
396
397// GetOptions is the standard query options to the standard REST get call.
398type GetOptions struct {
399 TypeMeta `json:",inline"`
400 // When specified:
401 // - if unset, then the result is returned from remote storage based on quorum-read flag;
402 // - if it's 0, then we simply return what we currently have in cache, no guarantee;
403 // - if set to non zero, then the result is at least as fresh as given rv.
404 ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,1,opt,name=resourceVersion"`
405 // If true, partially initialized resources are included in the response.
406 // +optional
407 IncludeUninitialized bool `json:"includeUninitialized,omitempty" protobuf:"varint,2,opt,name=includeUninitialized"`
408}
409
410// DeletionPropagation decides if a deletion will propagate to the dependents of
411// the object, and how the garbage collector will handle the propagation.
412type DeletionPropagation string
413
414const (
415 // Orphans the dependents.
416 DeletePropagationOrphan DeletionPropagation = "Orphan"
417 // Deletes the object from the key-value store, the garbage collector will
418 // delete the dependents in the background.
419 DeletePropagationBackground DeletionPropagation = "Background"
420 // The object exists in the key-value store until the garbage collector
421 // deletes all the dependents whose ownerReference.blockOwnerDeletion=true
422 // from the key-value store. API sever will put the "foregroundDeletion"
423 // finalizer on the object, and sets its deletionTimestamp. This policy is
424 // cascading, i.e., the dependents will be deleted with Foreground.
425 DeletePropagationForeground DeletionPropagation = "Foreground"
426)
427
428const (
429 // DryRunAll means to complete all processing stages, but don't
430 // persist changes to storage.
431 DryRunAll = "All"
432)
433
434// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
435
436// DeleteOptions may be provided when deleting an API object.
437type DeleteOptions struct {
438 TypeMeta `json:",inline"`
439
440 // The duration in seconds before the object should be deleted. Value must be non-negative integer.
441 // The value zero indicates delete immediately. If this value is nil, the default grace period for the
442 // specified type will be used.
443 // Defaults to a per object value if not specified. zero means delete immediately.
444 // +optional
445 GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty" protobuf:"varint,1,opt,name=gracePeriodSeconds"`
446
447 // Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
448 // returned.
449 // +optional
450 Preconditions *Preconditions `json:"preconditions,omitempty" protobuf:"bytes,2,opt,name=preconditions"`
451
452 // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
453 // Should the dependent objects be orphaned. If true/false, the "orphan"
454 // finalizer will be added to/removed from the object's finalizers list.
455 // Either this field or PropagationPolicy may be set, but not both.
456 // +optional
457 OrphanDependents *bool `json:"orphanDependents,omitempty" protobuf:"varint,3,opt,name=orphanDependents"`
458
459 // Whether and how garbage collection will be performed.
460 // Either this field or OrphanDependents may be set, but not both.
461 // The default policy is decided by the existing finalizer set in the
462 // metadata.finalizers and the resource-specific default policy.
463 // Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
464 // allow the garbage collector to delete the dependents in the background;
465 // 'Foreground' - a cascading policy that deletes all dependents in the
466 // foreground.
467 // +optional
468 PropagationPolicy *DeletionPropagation `json:"propagationPolicy,omitempty" protobuf:"varint,4,opt,name=propagationPolicy"`
469
470 // When present, indicates that modifications should not be
471 // persisted. An invalid or unrecognized dryRun directive will
472 // result in an error response and no further processing of the
473 // request. Valid values are:
474 // - All: all dry run stages will be processed
475 // +optional
476 DryRun []string `json:"dryRun,omitempty" protobuf:"bytes,5,rep,name=dryRun"`
477}
478
479// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
480
481// CreateOptions may be provided when creating an API object.
482type CreateOptions struct {
483 TypeMeta `json:",inline"`
484
485 // When present, indicates that modifications should not be
486 // persisted. An invalid or unrecognized dryRun directive will
487 // result in an error response and no further processing of the
488 // request. Valid values are:
489 // - All: all dry run stages will be processed
490 // +optional
491 DryRun []string `json:"dryRun,omitempty" protobuf:"bytes,1,rep,name=dryRun"`
492
493 // If IncludeUninitialized is specified, the object may be
494 // returned without completing initialization.
495 IncludeUninitialized bool `json:"includeUninitialized,omitempty" protobuf:"varint,2,opt,name=includeUninitialized"`
496}
497
498// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
499
500// UpdateOptions may be provided when updating an API object.
501type UpdateOptions struct {
502 TypeMeta `json:",inline"`
503
504 // When present, indicates that modifications should not be
505 // persisted. An invalid or unrecognized dryRun directive will
506 // result in an error response and no further processing of the
507 // request. Valid values are:
508 // - All: all dry run stages will be processed
509 // +optional
510 DryRun []string `json:"dryRun,omitempty" protobuf:"bytes,1,rep,name=dryRun"`
511}
512
513// Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.
514type Preconditions struct {
515 // Specifies the target UID.
516 // +optional
517 UID *types.UID `json:"uid,omitempty" protobuf:"bytes,1,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
518}
519
520// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
521
522// Status is a return value for calls that don't return other objects.
523type Status struct {
524 TypeMeta `json:",inline"`
525 // Standard list metadata.
526 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
527 // +optional
528 ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
529
530 // Status of the operation.
531 // One of: "Success" or "Failure".
532 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
533 // +optional
534 Status string `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"`
535 // A human-readable description of the status of this operation.
536 // +optional
537 Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"`
538 // A machine-readable description of why this operation is in the
539 // "Failure" status. If this value is empty there
540 // is no information available. A Reason clarifies an HTTP status
541 // code but does not override it.
542 // +optional
543 Reason StatusReason `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason,casttype=StatusReason"`
544 // Extended data associated with the reason. Each reason may define its
545 // own extended details. This field is optional and the data returned
546 // is not guaranteed to conform to any schema except that defined by
547 // the reason type.
548 // +optional
549 Details *StatusDetails `json:"details,omitempty" protobuf:"bytes,5,opt,name=details"`
550 // Suggested HTTP return code for this status, 0 if not set.
551 // +optional
552 Code int32 `json:"code,omitempty" protobuf:"varint,6,opt,name=code"`
553}
554
555// StatusDetails is a set of additional properties that MAY be set by the
556// server to provide additional information about a response. The Reason
557// field of a Status object defines what attributes will be set. Clients
558// must ignore fields that do not match the defined type of each attribute,
559// and should assume that any attribute may be empty, invalid, or under
560// defined.
561type StatusDetails struct {
562 // The name attribute of the resource associated with the status StatusReason
563 // (when there is a single name which can be described).
564 // +optional
565 Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
566 // The group attribute of the resource associated with the status StatusReason.
567 // +optional
568 Group string `json:"group,omitempty" protobuf:"bytes,2,opt,name=group"`
569 // The kind attribute of the resource associated with the status StatusReason.
570 // On some operations may differ from the requested resource Kind.
571 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
572 // +optional
573 Kind string `json:"kind,omitempty" protobuf:"bytes,3,opt,name=kind"`
574 // UID of the resource.
575 // (when there is a single resource which can be described).
576 // More info: http://kubernetes.io/docs/user-guide/identifiers#uids
577 // +optional
578 UID types.UID `json:"uid,omitempty" protobuf:"bytes,6,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
579 // The Causes array includes more details associated with the StatusReason
580 // failure. Not all StatusReasons may provide detailed causes.
581 // +optional
582 Causes []StatusCause `json:"causes,omitempty" protobuf:"bytes,4,rep,name=causes"`
583 // If specified, the time in seconds before the operation should be retried. Some errors may indicate
584 // the client must take an alternate action - for those errors this field may indicate how long to wait
585 // before taking the alternate action.
586 // +optional
587 RetryAfterSeconds int32 `json:"retryAfterSeconds,omitempty" protobuf:"varint,5,opt,name=retryAfterSeconds"`
588}
589
590// Values of Status.Status
591const (
592 StatusSuccess = "Success"
593 StatusFailure = "Failure"
594)
595
596// StatusReason is an enumeration of possible failure causes. Each StatusReason
597// must map to a single HTTP status code, but multiple reasons may map
598// to the same HTTP status code.
599// TODO: move to apiserver
600type StatusReason string
601
602const (
603 // StatusReasonUnknown means the server has declined to indicate a specific reason.
604 // The details field may contain other information about this error.
605 // Status code 500.
606 StatusReasonUnknown StatusReason = ""
607
608 // StatusReasonUnauthorized means the server can be reached and understood the request, but requires
609 // the user to present appropriate authorization credentials (identified by the WWW-Authenticate header)
610 // in order for the action to be completed. If the user has specified credentials on the request, the
611 // server considers them insufficient.
612 // Status code 401
613 StatusReasonUnauthorized StatusReason = "Unauthorized"
614
615 // StatusReasonForbidden means the server can be reached and understood the request, but refuses
616 // to take any further action. It is the result of the server being configured to deny access for some reason
617 // to the requested resource by the client.
618 // Details (optional):
619 // "kind" string - the kind attribute of the forbidden resource
620 // on some operations may differ from the requested
621 // resource.
622 // "id" string - the identifier of the forbidden resource
623 // Status code 403
624 StatusReasonForbidden StatusReason = "Forbidden"
625
626 // StatusReasonNotFound means one or more resources required for this operation
627 // could not be found.
628 // Details (optional):
629 // "kind" string - the kind attribute of the missing resource
630 // on some operations may differ from the requested
631 // resource.
632 // "id" string - the identifier of the missing resource
633 // Status code 404
634 StatusReasonNotFound StatusReason = "NotFound"
635
636 // StatusReasonAlreadyExists means the resource you are creating already exists.
637 // Details (optional):
638 // "kind" string - the kind attribute of the conflicting resource
639 // "id" string - the identifier of the conflicting resource
640 // Status code 409
641 StatusReasonAlreadyExists StatusReason = "AlreadyExists"
642
643 // StatusReasonConflict means the requested operation cannot be completed
644 // due to a conflict in the operation. The client may need to alter the
645 // request. Each resource may define custom details that indicate the
646 // nature of the conflict.
647 // Status code 409
648 StatusReasonConflict StatusReason = "Conflict"
649
650 // StatusReasonGone means the item is no longer available at the server and no
651 // forwarding address is known.
652 // Status code 410
653 StatusReasonGone StatusReason = "Gone"
654
655 // StatusReasonInvalid means the requested create or update operation cannot be
656 // completed due to invalid data provided as part of the request. The client may
657 // need to alter the request. When set, the client may use the StatusDetails
658 // message field as a summary of the issues encountered.
659 // Details (optional):
660 // "kind" string - the kind attribute of the invalid resource
661 // "id" string - the identifier of the invalid resource
662 // "causes" - one or more StatusCause entries indicating the data in the
663 // provided resource that was invalid. The code, message, and
664 // field attributes will be set.
665 // Status code 422
666 StatusReasonInvalid StatusReason = "Invalid"
667
668 // StatusReasonServerTimeout means the server can be reached and understood the request,
669 // but cannot complete the action in a reasonable time. The client should retry the request.
670 // This is may be due to temporary server load or a transient communication issue with
671 // another server. Status code 500 is used because the HTTP spec provides no suitable
672 // server-requested client retry and the 5xx class represents actionable errors.
673 // Details (optional):
674 // "kind" string - the kind attribute of the resource being acted on.
675 // "id" string - the operation that is being attempted.
676 // "retryAfterSeconds" int32 - the number of seconds before the operation should be retried
677 // Status code 500
678 StatusReasonServerTimeout StatusReason = "ServerTimeout"
679
680 // StatusReasonTimeout means that the request could not be completed within the given time.
681 // Clients can get this response only when they specified a timeout param in the request,
682 // or if the server cannot complete the operation within a reasonable amount of time.
683 // The request might succeed with an increased value of timeout param. The client *should*
684 // wait at least the number of seconds specified by the retryAfterSeconds field.
685 // Details (optional):
686 // "retryAfterSeconds" int32 - the number of seconds before the operation should be retried
687 // Status code 504
688 StatusReasonTimeout StatusReason = "Timeout"
689
690 // StatusReasonTooManyRequests means the server experienced too many requests within a
691 // given window and that the client must wait to perform the action again. A client may
692 // always retry the request that led to this error, although the client should wait at least
693 // the number of seconds specified by the retryAfterSeconds field.
694 // Details (optional):
695 // "retryAfterSeconds" int32 - the number of seconds before the operation should be retried
696 // Status code 429
697 StatusReasonTooManyRequests StatusReason = "TooManyRequests"
698
699 // StatusReasonBadRequest means that the request itself was invalid, because the request
700 // doesn't make any sense, for example deleting a read-only object. This is different than
701 // StatusReasonInvalid above which indicates that the API call could possibly succeed, but the
702 // data was invalid. API calls that return BadRequest can never succeed.
703 StatusReasonBadRequest StatusReason = "BadRequest"
704
705 // StatusReasonMethodNotAllowed means that the action the client attempted to perform on the
706 // resource was not supported by the code - for instance, attempting to delete a resource that
707 // can only be created. API calls that return MethodNotAllowed can never succeed.
708 StatusReasonMethodNotAllowed StatusReason = "MethodNotAllowed"
709
710 // StatusReasonNotAcceptable means that the accept types indicated by the client were not acceptable
711 // to the server - for instance, attempting to receive protobuf for a resource that supports only json and yaml.
712 // API calls that return NotAcceptable can never succeed.
713 // Status code 406
714 StatusReasonNotAcceptable StatusReason = "NotAcceptable"
715
716 // StatusReasonRequestEntityTooLarge means that the request entity is too large.
717 // Status code 413
718 StatusReasonRequestEntityTooLarge StatusReason = "RequestEntityTooLarge"
719
720 // StatusReasonUnsupportedMediaType means that the content type sent by the client is not acceptable
721 // to the server - for instance, attempting to send protobuf for a resource that supports only json and yaml.
722 // API calls that return UnsupportedMediaType can never succeed.
723 // Status code 415
724 StatusReasonUnsupportedMediaType StatusReason = "UnsupportedMediaType"
725
726 // StatusReasonInternalError indicates that an internal error occurred, it is unexpected
727 // and the outcome of the call is unknown.
728 // Details (optional):
729 // "causes" - The original error
730 // Status code 500
731 StatusReasonInternalError StatusReason = "InternalError"
732
733 // StatusReasonExpired indicates that the request is invalid because the content you are requesting
734 // has expired and is no longer available. It is typically associated with watches that can't be
735 // serviced.
736 // Status code 410 (gone)
737 StatusReasonExpired StatusReason = "Expired"
738
739 // StatusReasonServiceUnavailable means that the request itself was valid,
740 // but the requested service is unavailable at this time.
741 // Retrying the request after some time might succeed.
742 // Status code 503
743 StatusReasonServiceUnavailable StatusReason = "ServiceUnavailable"
744)
745
746// StatusCause provides more information about an api.Status failure, including
747// cases when multiple errors are encountered.
748type StatusCause struct {
749 // A machine-readable description of the cause of the error. If this value is
750 // empty there is no information available.
751 // +optional
752 Type CauseType `json:"reason,omitempty" protobuf:"bytes,1,opt,name=reason,casttype=CauseType"`
753 // A human-readable description of the cause of the error. This field may be
754 // presented as-is to a reader.
755 // +optional
756 Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"`
757 // The field of the resource that has caused this error, as named by its JSON
758 // serialization. May include dot and postfix notation for nested attributes.
759 // Arrays are zero-indexed. Fields may appear more than once in an array of
760 // causes due to fields having multiple errors.
761 // Optional.
762 //
763 // Examples:
764 // "name" - the field "name" on the current resource
765 // "items[0].name" - the field "name" on the first array entry in "items"
766 // +optional
767 Field string `json:"field,omitempty" protobuf:"bytes,3,opt,name=field"`
768}
769
770// CauseType is a machine readable value providing more detail about what
771// occurred in a status response. An operation may have multiple causes for a
772// status (whether Failure or Success).
773type CauseType string
774
775const (
776 // CauseTypeFieldValueNotFound is used to report failure to find a requested value
777 // (e.g. looking up an ID).
778 CauseTypeFieldValueNotFound CauseType = "FieldValueNotFound"
779 // CauseTypeFieldValueRequired is used to report required values that are not
780 // provided (e.g. empty strings, null values, or empty arrays).
781 CauseTypeFieldValueRequired CauseType = "FieldValueRequired"
782 // CauseTypeFieldValueDuplicate is used to report collisions of values that must be
783 // unique (e.g. unique IDs).
784 CauseTypeFieldValueDuplicate CauseType = "FieldValueDuplicate"
785 // CauseTypeFieldValueInvalid is used to report malformed values (e.g. failed regex
786 // match).
787 CauseTypeFieldValueInvalid CauseType = "FieldValueInvalid"
788 // CauseTypeFieldValueNotSupported is used to report valid (as per formatting rules)
789 // values that can not be handled (e.g. an enumerated string).
790 CauseTypeFieldValueNotSupported CauseType = "FieldValueNotSupported"
791 // CauseTypeUnexpectedServerResponse is used to report when the server responded to the client
792 // without the expected return type. The presence of this cause indicates the error may be
793 // due to an intervening proxy or the server software malfunctioning.
794 CauseTypeUnexpectedServerResponse CauseType = "UnexpectedServerResponse"
795)
796
797// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
798
799// List holds a list of objects, which may not be known by the server.
800type List struct {
801 TypeMeta `json:",inline"`
802 // Standard list metadata.
803 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
804 // +optional
805 ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
806
807 // List of objects
808 Items []runtime.RawExtension `json:"items" protobuf:"bytes,2,rep,name=items"`
809}
810
811// APIVersions lists the versions that are available, to allow clients to
812// discover the API at /api, which is the root path of the legacy v1 API.
813//
814// +protobuf.options.(gogoproto.goproto_stringer)=false
815// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
816type APIVersions struct {
817 TypeMeta `json:",inline"`
818 // versions are the api versions that are available.
819 Versions []string `json:"versions" protobuf:"bytes,1,rep,name=versions"`
820 // a map of client CIDR to server address that is serving this group.
821 // This is to help clients reach servers in the most network-efficient way possible.
822 // Clients can use the appropriate server address as per the CIDR that they match.
823 // In case of multiple matches, clients should use the longest matching CIDR.
824 // The server returns only those CIDRs that it thinks that the client can match.
825 // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
826 // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
827 ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs" protobuf:"bytes,2,rep,name=serverAddressByClientCIDRs"`
828}
829
830// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
831
832// APIGroupList is a list of APIGroup, to allow clients to discover the API at
833// /apis.
834type APIGroupList struct {
835 TypeMeta `json:",inline"`
836 // groups is a list of APIGroup.
837 Groups []APIGroup `json:"groups" protobuf:"bytes,1,rep,name=groups"`
838}
839
840// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
841
842// APIGroup contains the name, the supported versions, and the preferred version
843// of a group.
844type APIGroup struct {
845 TypeMeta `json:",inline"`
846 // name is the name of the group.
847 Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
848 // versions are the versions supported in this group.
849 Versions []GroupVersionForDiscovery `json:"versions" protobuf:"bytes,2,rep,name=versions"`
850 // preferredVersion is the version preferred by the API server, which
851 // probably is the storage version.
852 // +optional
853 PreferredVersion GroupVersionForDiscovery `json:"preferredVersion,omitempty" protobuf:"bytes,3,opt,name=preferredVersion"`
854 // a map of client CIDR to server address that is serving this group.
855 // This is to help clients reach servers in the most network-efficient way possible.
856 // Clients can use the appropriate server address as per the CIDR that they match.
857 // In case of multiple matches, clients should use the longest matching CIDR.
858 // The server returns only those CIDRs that it thinks that the client can match.
859 // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
860 // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
861 // +optional
862 ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs,omitempty" protobuf:"bytes,4,rep,name=serverAddressByClientCIDRs"`
863}
864
865// ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.
866type ServerAddressByClientCIDR struct {
867 // The CIDR with which clients can match their IP to figure out the server address that they should use.
868 ClientCIDR string `json:"clientCIDR" protobuf:"bytes,1,opt,name=clientCIDR"`
869 // Address of this server, suitable for a client that matches the above CIDR.
870 // This can be a hostname, hostname:port, IP or IP:port.
871 ServerAddress string `json:"serverAddress" protobuf:"bytes,2,opt,name=serverAddress"`
872}
873
874// GroupVersion contains the "group/version" and "version" string of a version.
875// It is made a struct to keep extensibility.
876type GroupVersionForDiscovery struct {
877 // groupVersion specifies the API group and version in the form "group/version"
878 GroupVersion string `json:"groupVersion" protobuf:"bytes,1,opt,name=groupVersion"`
879 // version specifies the version in the form of "version". This is to save
880 // the clients the trouble of splitting the GroupVersion.
881 Version string `json:"version" protobuf:"bytes,2,opt,name=version"`
882}
883
884// APIResource specifies the name of a resource and whether it is namespaced.
885type APIResource struct {
886 // name is the plural name of the resource.
887 Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
888 // singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely.
889 // The singularName is more correct for reporting status on a single item and both singular and plural are allowed
890 // from the kubectl CLI interface.
891 SingularName string `json:"singularName" protobuf:"bytes,6,opt,name=singularName"`
892 // namespaced indicates if a resource is namespaced or not.
893 Namespaced bool `json:"namespaced" protobuf:"varint,2,opt,name=namespaced"`
894 // group is the preferred group of the resource. Empty implies the group of the containing resource list.
895 // For subresources, this may have a different value, for example: Scale".
896 Group string `json:"group,omitempty" protobuf:"bytes,8,opt,name=group"`
897 // version is the preferred version of the resource. Empty implies the version of the containing resource list
898 // For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
899 Version string `json:"version,omitempty" protobuf:"bytes,9,opt,name=version"`
900 // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
901 Kind string `json:"kind" protobuf:"bytes,3,opt,name=kind"`
902 // verbs is a list of supported kube verbs (this includes get, list, watch, create,
903 // update, patch, delete, deletecollection, and proxy)
904 Verbs Verbs `json:"verbs" protobuf:"bytes,4,opt,name=verbs"`
905 // shortNames is a list of suggested short names of the resource.
906 ShortNames []string `json:"shortNames,omitempty" protobuf:"bytes,5,rep,name=shortNames"`
907 // categories is a list of the grouped resources this resource belongs to (e.g. 'all')
908 Categories []string `json:"categories,omitempty" protobuf:"bytes,7,rep,name=categories"`
909}
910
911// Verbs masks the value so protobuf can generate
912//
913// +protobuf.nullable=true
914// +protobuf.options.(gogoproto.goproto_stringer)=false
915type Verbs []string
916
917func (vs Verbs) String() string {
918 return fmt.Sprintf("%v", []string(vs))
919}
920
921// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
922
923// APIResourceList is a list of APIResource, it is used to expose the name of the
924// resources supported in a specific group and version, and if the resource
925// is namespaced.
926type APIResourceList struct {
927 TypeMeta `json:",inline"`
928 // groupVersion is the group and version this APIResourceList is for.
929 GroupVersion string `json:"groupVersion" protobuf:"bytes,1,opt,name=groupVersion"`
930 // resources contains the name of the resources and if they are namespaced.
931 APIResources []APIResource `json:"resources" protobuf:"bytes,2,rep,name=resources"`
932}
933
934// RootPaths lists the paths available at root.
935// For example: "/healthz", "/apis".
936type RootPaths struct {
937 // paths are the paths available at root.
938 Paths []string `json:"paths" protobuf:"bytes,1,rep,name=paths"`
939}
940
941// TODO: remove me when watch is refactored
942func LabelSelectorQueryParam(version string) string {
943 return "labelSelector"
944}
945
946// TODO: remove me when watch is refactored
947func FieldSelectorQueryParam(version string) string {
948 return "fieldSelector"
949}
950
951// String returns available api versions as a human-friendly version string.
952func (apiVersions APIVersions) String() string {
953 return strings.Join(apiVersions.Versions, ",")
954}
955
956func (apiVersions APIVersions) GoString() string {
957 return apiVersions.String()
958}
959
960// Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.
961type Patch struct{}
962
963// Note:
964// There are two different styles of label selectors used in versioned types:
965// an older style which is represented as just a string in versioned types, and a
966// newer style that is structured. LabelSelector is an internal representation for the
967// latter style.
968
969// A label selector is a label query over a set of resources. The result of matchLabels and
970// matchExpressions are ANDed. An empty label selector matches all objects. A null
971// label selector matches no objects.
972type LabelSelector struct {
973 // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
974 // map is equivalent to an element of matchExpressions, whose key field is "key", the
975 // operator is "In", and the values array contains only "value". The requirements are ANDed.
976 // +optional
977 MatchLabels map[string]string `json:"matchLabels,omitempty" protobuf:"bytes,1,rep,name=matchLabels"`
978 // matchExpressions is a list of label selector requirements. The requirements are ANDed.
979 // +optional
980 MatchExpressions []LabelSelectorRequirement `json:"matchExpressions,omitempty" protobuf:"bytes,2,rep,name=matchExpressions"`
981}
982
983// A label selector requirement is a selector that contains values, a key, and an operator that
984// relates the key and values.
985type LabelSelectorRequirement struct {
986 // key is the label key that the selector applies to.
987 // +patchMergeKey=key
988 // +patchStrategy=merge
989 Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"`
990 // operator represents a key's relationship to a set of values.
991 // Valid operators are In, NotIn, Exists and DoesNotExist.
992 Operator LabelSelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator,casttype=LabelSelectorOperator"`
993 // values is an array of string values. If the operator is In or NotIn,
994 // the values array must be non-empty. If the operator is Exists or DoesNotExist,
995 // the values array must be empty. This array is replaced during a strategic
996 // merge patch.
997 // +optional
998 Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"`
999}
1000
1001// A label selector operator is the set of operators that can be used in a selector requirement.
1002type LabelSelectorOperator string
1003
1004const (
1005 LabelSelectorOpIn LabelSelectorOperator = "In"
1006 LabelSelectorOpNotIn LabelSelectorOperator = "NotIn"
1007 LabelSelectorOpExists LabelSelectorOperator = "Exists"
1008 LabelSelectorOpDoesNotExist LabelSelectorOperator = "DoesNotExist"
1009)