@ -1,4 +1,4 @@
import { queryLibraryApi as api } from './factory ' ;
import { queryLibraryApi as api } from './api ' ;
export const addTagTypes = [ 'QueryTemplate' ] as const ;
const injectedRtkApi = api
. enhanceEndpoints ( {
@ -81,7 +81,7 @@ export type ListQueryTemplateApiArg = {
/** allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. */
allowWatchBookmarks? : boolean ;
/ * * T h e c o n t i n u e o p t i o n s h o u l d b e s e t w h e n r e t r i e v i n g m o r e r e s u l t s f r o m t h e s e r v e r . S i n c e t h i s v a l u e i s s e r v e r d e f i n e d , c l i e n t s m a y o n l y u s e t h e c o n t i n u e v a l u e f r o m a p r e v i o u s q u e r y r e s u l t w i t h i d e n t i c a l q u e r y p a r a m e t e r s ( e x c e p t f o r t h e v a l u e o f c o n t i n u e ) a n d t h e s e r v e r m a y r e j e c t a c o n t i n u e v a l u e i t d o e s n o t r e c o g n i z e . I f t h e s p e c i f i e d c o n t i n u e v a l u e i s n o l o n g e r v a l i d w h e t h e r d u e t o e x p i r a t i o n ( g e n e r a l l y f i v e t o f i f t e e n m i n u t e s ) o r a c o n f i g u r a t i o n c h a n g e o n t h e s e r v e r , t h e s e r v e r w i l l r e s p o n d w i t h a 4 1 0 R e s o u r c e E x p i r e d e r r o r t o g e t h e r w i t h a c o n t i n u e t o k e n . I f t h e c l i e n t n e e d s a c o n s i s t e n t l i s t , i t m u s t r e s t a r t t h e i r l i s t w i t h o u t t h e c o n t i n u e f i e l d . O t h e r w i s e , t h e c l i e n t m a y s e n d a n o t h e r l i s t r e q u e s t w i t h t h e t o k e n r e c e i v e d w i t h t h e 4 1 0 e r r o r , t h e s e r v e r w i l l r e s p o n d w i t h a l i s t s t a r t i n g f r o m t h e n e x t k e y , b u t f r o m t h e l a t e s t s n a p s h o t , w h i c h i s i n c o n s i s t e n t f r o m t h e p r e v i o u s l i s t r e s u l t s - o b j e c t s t h a t a r e c r e a t e d , m o d i f i e d , o r d e l e t e d a f t e r t h e f i r s t l i s t r e q u e s t w i l l b e i n c l u d e d i n t h e r e s p o n s e , a s l o n g a s t h e i r k e y s a r e a f t e r t h e " n e x t k e y " .
This field is not supported when watch is true . Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications . * /
continue ? : string ;
/** A selector to restrict the list of returned objects by their fields. Defaults to everything. */
@ -89,19 +89,19 @@ export type ListQueryTemplateApiArg = {
/** A selector to restrict the list of returned objects by their labels. Defaults to everything. */
labelSelector? : string ;
/ * * l i m i t i s a m a x i m u m n u m b e r o f r e s p o n s e s t o r e t u r n f o r a l i s t c a l l . I f m o r e i t e m s e x i s t , t h e s e r v e r w i l l s e t t h e ` c o n t i n u e ` f i e l d o n t h e l i s t m e t a d a t a t o a v a l u e t h a t c a n b e u s e d w i t h t h e s a m e i n i t i a l q u e r y t o r e t r i e v e t h e n e x t s e t o f r e s u l t s . S e t t i n g a l i m i t m a y r e t u r n f e w e r t h a n t h e r e q u e s t e d a m o u n t o f i t e m s ( u p t o z e r o i t e m s ) i n t h e e v e n t a l l r e q u e s t e d o b j e c t s a r e f i l t e r e d o u t a n d c l i e n t s s h o u l d o n l y u s e t h e p r e s e n c e o f t h e c o n t i n u e f i e l d t o d e t e r m i n e w h e t h e r m o r e r e s u l t s a r e a v a i l a b l e . S e r v e r s m a y c h o o s e n o t t o s u p p o r t t h e l i m i t a r g u m e n t a n d w i l l r e t u r n a l l o f t h e a v a i l a b l e r e s u l t s . I f l i m i t i s s p e c i f i e d a n d t h e c o n t i n u e f i e l d i s e m p t y , c l i e n t s m a y a s s u m e t h a t n o m o r e r e s u l t s a r e a v a i l a b l e . T h i s f i e l d i s n o t s u p p o r t e d i f w a t c h i s t r u e .
The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is , no objects created , modified , or deleted after the first request is issued will be included in any subsequent continued requests . This is sometimes referred to as a consistent snapshot , and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects . If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned . * /
limit? : number ;
/** resourceVersion sets a constraint on what resource versions a request may be served from. See https:/ / kubernetes . io / docs / reference / using - api / api - concepts / # resource - versions for details .
Defaults to unset * /
resourceVersion? : string ;
/** resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https:/ / kubernetes . io / docs / reference / using - api / api - concepts / # resource - versions for details .
Defaults to unset * /
resourceVersionMatch? : string ;
/ * * ` s e n d I n i t i a l E v e n t s = t r u e ` m a y b e s e t t o g e t h e r w i t h ` w a t c h = t r u e ` . I n t h a t c a s e , t h e w a t c h s t r e a m w i l l b e g i n w i t h s y n t h e t i c e v e n t s t o p r o d u c e t h e c u r r e n t s t a t e o f o b j e c t s i n t h e c o l l e c t i o n . O n c e a l l s u c h e v e n t s h a v e b e e n s e n t , a s y n t h e t i c " B o o k m a r k " e v e n t w i l l b e s e n t . T h e b o o k m a r k w i l l r e p o r t t h e R e s o u r c e V e r s i o n ( R V ) c o r r e s p o n d i n g t o t h e s e t o f o b j e c t s , a n d b e m a r k e d w i t h ` " k 8 s . i o / i n i t i a l - e v e n t s - e n d " : " t r u e " ` a n n o t a t i o n . A f t e r w a r d s , t h e w a t c h s t r e a m w i l l p r o c e e d a s u s u a l , s e n d i n g w a t c h e v e n t s c o r r e s p o n d i n g t o c h a n g e s ( s u b s e q u e n t t o t h e R V ) t o o b j e c t s w a t c h e d .
When ` sendInitialEvents ` option is set , we require ` resourceVersionMatch ` option to also be set . The semantic of the watch request is as following : - ` resourceVersionMatch ` = NotOlderThan
is interpreted as "data at least as new as the provided `resourceVersion`"
and the bookmark event is send when the state is synced
@ -111,7 +111,7 @@ export type ListQueryTemplateApiArg = {
when request started being processed .
- ` resourceVersionMatch ` set to any other value or unset
Invalid error is returned .
Defaults to true if ` resourceVersion="" ` or ` resourceVersion="0" ` ( for backward compatibility reasons ) and to false otherwise . * /
sendInitialEvents? : boolean ;
/** Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. */
@ -208,21 +208,21 @@ export type ObjectMeta = {
[ key : string ] : string ;
} ;
/ * * C r e a t i o n T i m e s t a m p i s a t i m e s t a m p r e p r e s e n t i n g t h e s e r v e r t i m e w h e n t h i s o b j e c t w a s c r e a t e d . I t i s n o t g u a r a n t e e d t o b e s e t i n h a p p e n s - b e f o r e o r d e r a c r o s s s e p a r a t e o p e r a t i o n s . C l i e n t s m a y n o t s e t t h i s v a l u e . I t i s r e p r e s e n t e d i n R F C 3 3 3 9 f o r m a n d i s i n U T C .
Populated by the system . Read - only . Null for lists . More info : https : //git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
creationTimestamp? : Time ;
/** Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. */
deletionGracePeriodSeconds? : number ;
/ * * D e l e t i o n T i m e s t a m p i s R F C 3 3 3 9 d a t e a n d t i m e a t w h i c h t h i s r e s o u r c e w i l l b e d e l e t e d . T h i s f i e l d i s s e t b y t h e s e r v e r w h e n a g r a c e f u l d e l e t i o n i s r e q u e s t e d b y t h e u s e r , a n d i s n o t d i r e c t l y s e t t a b l e b y a c l i e n t . T h e r e s o u r c e i s e x p e c t e d t o b e d e l e t e d ( n o l o n g e r v i s i b l e f r o m r e s o u r c e l i s t s , a n d n o t r e a c h a b l e b y n a m e ) a f t e r t h e t i m e i n t h i s f i e l d , o n c e t h e f i n a l i z e r s l i s t i s e m p t y . A s l o n g a s t h e f i n a l i z e r s l i s t c o n t a i n s i t e m s , d e l e t i o n i s b l o c k e d . O n c e t h e d e l e t i o n T i m e s t a m p i s s e t , t h i s v a l u e m a y n o t b e u n s e t o r b e s e t f u r t h e r i n t o t h e f u t u r e , a l t h o u g h i t m a y b e s h o r t e n e d o r t h e r e s o u r c e m a y b e d e l e t e d p r i o r t o t h i s t i m e . F o r e x a m p l e , a u s e r m a y r e q u e s t t h a t a p o d i s d e l e t e d i n 3 0 s e c o n d s . T h e K u b e l e t w i l l r e a c t b y s e n d i n g a g r a c e f u l t e r m i n a t i o n s i g n a l t o t h e c o n t a i n e r s i n t h e p o d . A f t e r t h a t 3 0 s e c o n d s , t h e K u b e l e t w i l l s e n d a h a r d t e r m i n a t i o n s i g n a l ( S I G K I L L ) t o t h e c o n t a i n e r a n d a f t e r c l e a n u p , r e m o v e t h e p o d f r o m t h e A P I . I n t h e p r e s e n c e o f n e t w o r k p a r t i t i o n s , t h i s o b j e c t m a y s t i l l e x i s t a f t e r t h i s t i m e s t a m p , u n t i l a n a d m i n i s t r a t o r o r a u t o m a t e d p r o c e s s c a n d e t e r m i n e t h e r e s o u r c e i s f u l l y t e r m i n a t e d . I f n o t s e t , g r a c e f u l d e l e t i o n o f t h e o b j e c t h a s n o t b e e n r e q u e s t e d .
Populated by the system when a graceful deletion is requested . Read - only . More info : https : //git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
deletionTimestamp? : Time ;
/** Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. */
finalizers? : string [ ] ;
/ * * G e n e r a t e N a m e i s a n o p t i o n a l p r e f i x , u s e d b y t h e s e r v e r , t o g e n e r a t e a u n i q u e n a m e O N L Y I F t h e N a m e f i e l d h a s n o t b e e n p r o v i d e d . I f t h i s f i e l d i s u s e d , t h e n a m e r e t u r n e d t o t h e c l i e n t w i l l b e d i f f e r e n t t h a n t h e n a m e p a s s e d . T h i s v a l u e w i l l a l s o b e c o m b i n e d w i t h a u n i q u e s u f f i x . T h e p r o v i d e d v a l u e h a s t h e s a m e v a l i d a t i o n r u l e s a s t h e N a m e f i e l d , a n d m a y b e t r u n c a t e d b y t h e l e n g t h o f t h e s u f f i x r e q u i r e d t o m a k e t h e v a l u e u n i q u e o n t h e s e r v e r .
If this field is specified and the generated name exists , the server will return a 409 .
Applied only if Name is not specified . More info : https : //git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency */
generateName? : string ;
/** A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. */
@ -236,19 +236,19 @@ export type ObjectMeta = {
/** Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names */
name? : string ;
/ * * N a m e s p a c e d e f i n e s t h e s p a c e w i t h i n w h i c h e a c h n a m e m u s t b e u n i q u e . A n e m p t y n a m e s p a c e i s e q u i v a l e n t t o t h e " d e f a u l t " n a m e s p a c e , b u t " d e f a u l t " i s t h e c a n o n i c a l r e p r e s e n t a t i o n . N o t a l l o b j e c t s a r e r e q u i r e d t o b e s c o p e d t o a n a m e s p a c e - t h e v a l u e o f t h i s f i e l d f o r t h o s e o b j e c t s w i l l b e e m p t y .
Must be a DNS_LABEL . Cannot be updated . More info : https : //kubernetes.io/docs/concepts/overview/working-with-objects/namespaces */
namespace ? : string ;
/** List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. */
ownerReferences? : OwnerReference [ ] ;
/ * * A n o p a q u e v a l u e t h a t r e p r e s e n t s t h e i n t e r n a l v e r s i o n o f t h i s o b j e c t t h a t c a n b e u s e d b y c l i e n t s t o d e t e r m i n e w h e n o b j e c t s h a v e c h a n g e d . M a y b e u s e d f o r o p t i m i s t i c c o n c u r r e n c y , c h a n g e d e t e c t i o n , a n d t h e w a t c h o p e r a t i o n o n a r e s o u r c e o r s e t o f r e s o u r c e s . C l i e n t s m u s t t r e a t t h e s e v a l u e s a s o p a q u e a n d p a s s e d u n m o d i f i e d b a c k t o t h e s e r v e r . T h e y m a y o n l y b e v a l i d f o r a p a r t i c u l a r r e s o u r c e o r s e t o f r e s o u r c e s .
Populated by the system . Read - only . Value must be treated as opaque by clients and . More info : https : //git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */
resourceVersion? : string ;
/** Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. */
selfLink? : string ;
/ * * U I D i s t h e u n i q u e i n t i m e a n d s p a c e v a l u e f o r t h i s o b j e c t . I t i s t y p i c a l l y g e n e r a t e d b y t h e s e r v e r o n s u c c e s s f u l c r e a t i o n o f a r e s o u r c e a n d i s n o t a l l o w e d t o c h a n g e o n P U T o p e r a t i o n s .
Populated by the system . Read - only . More info : https : //kubernetes.io/docs/concepts/overview/working-with-objects/names#uids */
uid? : string ;
} ;
@ -284,8 +284,8 @@ export type DataQuery = {
/** Maximum frame count */
maxFrames? : number ;
/ * * T y p e a s s e r t s t h a t t h e f r a m e m a t c h e s a k n o w n t y p e s t r u c t u r e .
Possible enum values :
- ` "" `
- ` "timeseries-wide" `
@ -333,7 +333,7 @@ export type TemplatePosition = {
} ;
export type TemplateVariableReplacement = {
/ * * H o w v a l u e s s h o u l d b e i n t e r p o l a t e d
Possible enum values :
- ` "csv" ` Formats variables with multiple values as a comma - separated string .
- ` "doublequote" ` Formats single - and multi - valued variables into a comma - separated string
@ -406,7 +406,7 @@ export type QueryTemplateList = {
} ;
export type StatusCause = {
/ * * T h e f i e l d o f t h e r e s o u r c e t h a t h a s c a u s e d t h i s e r r o r , a s n a m e d b y i t s J S O N s e r i a l i z a t i o n . M a y i n c l u d e d o t a n d p o s t f i x n o t a t i o n f o r n e s t e d a t t r i b u t e s . A r r a y s a r e z e r o - i n d e x e d . F i e l d s m a y a p p e a r m o r e t h a n o n c e i n a n a r r a y o f c a u s e s d u e t o f i e l d s h a v i n g m u l t i p l e e r r o r s . O p t i o n a l .
Examples :
"name" - the field "name" on the current resource
"items[0].name" - the field "name" on the first array entry in "items" * /