@@ -40,7 +40,7 @@ public interface IKubernetesClient : IDisposable
40
40
/// <item>
41
41
/// <description>
42
42
/// The fallback secret file if running on the cluster
43
- /// (/var/run/secrets/Kubernetes.io/serviceaccount/namespace)
43
+ /// (<c> /var/run/secrets/Kubernetes.io/serviceaccount/namespace</c> )
44
44
/// </description>
45
45
/// </item>
46
46
/// <item>
@@ -129,7 +129,7 @@ IList<TEntity> List<TEntity>(
129
129
=> List < TEntity > ( @namespace , labelSelectors . ToExpression ( ) ) ;
130
130
131
131
/// <summary>
132
- /// Create or Update a entity. This first fetches the entity from the Kubernetes API
132
+ /// Create or Update an entity. This first fetches the entity from the Kubernetes API
133
133
/// and if it does exist, updates the entity. Otherwise, the entity is created.
134
134
/// </summary>
135
135
/// <typeparam name="TEntity">The type of the Kubernetes entity.</typeparam>
@@ -252,7 +252,7 @@ IEnumerable<TEntity> Create<TEntity>(params TEntity[] entities)
252
252
=> entities . Select ( Create ) ;
253
253
254
254
/// <summary>
255
- /// Update the given entity on the Kubernetes API.
255
+ /// Update (replace) the given entity on the Kubernetes API.
256
256
/// </summary>
257
257
/// <typeparam name="TEntity">The type of the Kubernetes entity.</typeparam>
258
258
/// <param name="entity">The entity instance.</param>
@@ -262,10 +262,10 @@ Task<TEntity> UpdateAsync<TEntity>(TEntity entity, CancellationToken cancellatio
262
262
where TEntity : IKubernetesObject < V1ObjectMeta > ;
263
263
264
264
/// <summary>
265
- /// Update a list of entities on the Kubernetes API.
265
+ /// Update (replace) a list of entities on the Kubernetes API.
266
266
/// </summary>
267
267
/// <typeparam name="TEntity">The type of the Kubernetes entity.</typeparam>
268
- /// <param name="entities">An enumerable of entities.</param>
268
+ /// <param name="entities">Enumerable of entities.</param>
269
269
/// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
270
270
/// <returns>The updated instances of the entities.</returns>
271
271
async Task < IEnumerable < TEntity > > UpdateAsync < TEntity > (
@@ -275,10 +275,10 @@ async Task<IEnumerable<TEntity>> UpdateAsync<TEntity>(
275
275
=> await Task . WhenAll ( entities . Select ( entity => UpdateAsync ( entity , cancellationToken ) ) ) ;
276
276
277
277
/// <summary>
278
- /// Update a list of entities on the Kubernetes API.
278
+ /// Update (replace) a list of entities on the Kubernetes API.
279
279
/// </summary>
280
280
/// <typeparam name="TEntity">The type of the Kubernetes entity.</typeparam>
281
- /// <param name="entities">An enumerable of entities.</param>
281
+ /// <param name="entities">Enumerable of entities.</param>
282
282
/// <remarks>
283
283
/// This is invoking the API without any cancellation support. In order to pass a <see cref="CancellationToken"/>,
284
284
/// you need to use the <see cref="UpdateAsync{TEntity}(IEnumerable{TEntity},CancellationToken)"/> overload.
@@ -396,9 +396,9 @@ void Delete<TEntity>(string name, string? @namespace = null)
396
396
=> DeleteAsync < TEntity > ( name , @namespace ) . GetAwaiter ( ) . GetResult ( ) ;
397
397
398
398
/// <summary>
399
- /// Create a entity watcher on the Kubernetes API.
399
+ /// Create an entity watcher on the Kubernetes API.
400
400
/// The entity watcher fires events for entity-events on
401
- /// Kubernetes (events: <see cref="WatchEventType"/>.
401
+ /// Kubernetes (events: <see cref="WatchEventType"/>) .
402
402
/// </summary>
403
403
/// <typeparam name="TEntity">The type of the Kubernetes entity.</typeparam>
404
404
/// <param name="onEvent">Action that is called when an event occurs.</param>
@@ -409,19 +409,24 @@ void Delete<TEntity>(string name, string? @namespace = null)
409
409
/// If the namespace is omitted, all entities on the cluster are watched.
410
410
/// </param>
411
411
/// <param name="timeout">The timeout which the watcher has (after this timeout, the server will close the connection).</param>
412
+ /// <param name="allowWatchBookmarks">
413
+ /// Parameter to tell the server to send BOOKMARK events. However, if the server has no implementation or
414
+ /// configuration for bookmarks, this flag is ignored.
415
+ /// </param>
412
416
/// <param name="resourceVersion">
413
417
/// When specified with a watch call, shows changes that occur after that particular version of a resource.
414
418
/// Defaults to changes from the beginning of history.
415
419
/// </param>
416
420
/// <param name="cancellationToken">Cancellation-Token.</param>
417
421
/// <param name="labelSelectors">A list of label-selectors to apply to the search.</param>
418
- /// <returns>A entity watcher for the given entity.</returns>
422
+ /// <returns>An entity watcher for the given entity.</returns>
419
423
Watcher < TEntity > Watch < TEntity > (
420
424
Action < WatchEventType , TEntity > onEvent ,
421
425
Action < Exception > ? onError = null ,
422
426
Action ? onClose = null ,
423
427
string ? @namespace = null ,
424
428
TimeSpan ? timeout = null ,
429
+ bool ? allowWatchBookmarks = null ,
425
430
string ? resourceVersion = null ,
426
431
CancellationToken cancellationToken = default ,
427
432
params LabelSelector [ ] labelSelectors )
@@ -432,14 +437,15 @@ Watcher<TEntity> Watch<TEntity>(
432
437
onClose ,
433
438
@namespace ,
434
439
timeout ,
440
+ allowWatchBookmarks ,
435
441
resourceVersion ,
436
442
labelSelectors . ToExpression ( ) ,
437
443
cancellationToken ) ;
438
444
439
445
/// <summary>
440
- /// Create a entity watcher on the Kubernetes API.
446
+ /// Create an entity watcher on the Kubernetes API.
441
447
/// The entity watcher fires events for entity-events on
442
- /// Kubernetes (events: <see cref="WatchEventType"/>.
448
+ /// Kubernetes (events: <see cref="WatchEventType"/>) .
443
449
/// </summary>
444
450
/// <typeparam name="TEntity">The type of the Kubernetes entity.</typeparam>
445
451
/// <param name="onEvent">Action that is called when an event occurs.</param>
@@ -450,19 +456,24 @@ Watcher<TEntity> Watch<TEntity>(
450
456
/// If the namespace is omitted, all entities on the cluster are watched.
451
457
/// </param>
452
458
/// <param name="timeout">The timeout which the watcher has (after this timeout, the server will close the connection).</param>
459
+ /// <param name="allowWatchBookmarks">
460
+ /// Parameter to tell the server to send BOOKMARK events. However, if the server has no implementation or
461
+ /// configuration for bookmarks, this flag is ignored.
462
+ /// </param>
453
463
/// <param name="resourceVersion">
454
464
/// When specified with a watch call, shows changes that occur after that particular version of a resource.
455
465
/// Defaults to changes from the beginning of history.
456
466
/// </param>
457
467
/// <param name="labelSelector">A string, representing an optional label selector for filtering watched objects.</param>
458
468
/// <param name="cancellationToken">Cancellation-Token.</param>
459
- /// <returns>A entity watcher for the given entity.</returns>
469
+ /// <returns>An entity watcher for the given entity.</returns>
460
470
Watcher < TEntity > Watch < TEntity > (
461
471
Action < WatchEventType , TEntity > onEvent ,
462
472
Action < Exception > ? onError = null ,
463
473
Action ? onClose = null ,
464
474
string ? @namespace = null ,
465
475
TimeSpan ? timeout = null ,
476
+ bool ? allowWatchBookmarks = null ,
466
477
string ? resourceVersion = null ,
467
478
string ? labelSelector = null ,
468
479
CancellationToken cancellationToken = default )
@@ -480,13 +491,18 @@ Watcher<TEntity> Watch<TEntity>(
480
491
/// Defaults to changes from the beginning of history.
481
492
/// </param>
482
493
/// <param name="labelSelector">A string, representing an optional label selector for filtering watched objects.</param>
494
+ /// <param name="allowWatchBookmarks">
495
+ /// Parameter to tell the server to send BOOKMARK events. However, if the server has no implementation or
496
+ /// configuration for bookmarks, this flag is ignored.
497
+ /// </param>
483
498
/// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
484
499
/// <typeparam name="TEntity">The type of the Kubernetes entity.</typeparam>
485
500
/// <returns>An asynchronous enumerable that finishes once <paramref name="cancellationToken"/> is cancelled.</returns>
486
501
IAsyncEnumerable < ( WatchEventType Type , TEntity Entity ) > WatchAsync < TEntity > (
487
502
string ? @namespace = null ,
488
503
string ? resourceVersion = null ,
489
504
string ? labelSelector = null ,
505
+ bool ? allowWatchBookmarks = null ,
490
506
CancellationToken cancellationToken = default )
491
507
where TEntity : IKubernetesObject < V1ObjectMeta > ;
492
508
}
0 commit comments