diff --git a/src/KubeClient.Extensions.CustomResources/CustomResourceClientFactoryExtensions.cs b/src/KubeClient.Extensions.CustomResources/CustomResourceClientFactoryExtensions.cs
index 98bde03c..20b558ad 100644
--- a/src/KubeClient.Extensions.CustomResources/CustomResourceClientFactoryExtensions.cs
+++ b/src/KubeClient.Extensions.CustomResources/CustomResourceClientFactoryExtensions.cs
@@ -27,5 +27,24 @@ public static ICustomResourceDefinitionClientV1Beta1 CustomResourceDefinitionsV1
client => new CustomResourceDefinitionClientV1Beta1(client)
);
}
+
+ ///
+ /// Get the Kubernetes CustomResourceDefinitions (v1) resource client.
+ ///
+ ///
+ /// The Kubernetes API client.
+ ///
+ ///
+ /// The resource client.
+ ///
+ public static ICustomResourceDefinitionClientV1 CustomResourceDefinitionsV1(this KubeApiClient kubeClient)
+ {
+ if (kubeClient == null)
+ throw new ArgumentNullException(nameof(kubeClient));
+
+ return kubeClient.ResourceClient(
+ client => new CustomResourceDefinitionClientV1(client)
+ );
+ }
}
}
diff --git a/src/KubeClient.Extensions.CustomResources/CustomResourceDefinitionClientV1.cs b/src/KubeClient.Extensions.CustomResources/CustomResourceDefinitionClientV1.cs
index 67c6fe73..92694439 100644
--- a/src/KubeClient.Extensions.CustomResources/CustomResourceDefinitionClientV1.cs
+++ b/src/KubeClient.Extensions.CustomResources/CustomResourceDefinitionClientV1.cs
@@ -11,18 +11,18 @@ namespace KubeClient.ResourceClients
using Models;
///
- /// A client for the Kubernetes CustomResourceDefinitions (v1beta1) API.
+ /// A client for the Kubernetes CustomResourceDefinitions (v1) API.
///
- public class CustomResourceDefinitionClientV1Beta1
- : KubeResourceClient, ICustomResourceDefinitionClientV1Beta1
+ public class CustomResourceDefinitionClientV1
+ : KubeResourceClient, ICustomResourceDefinitionClientV1
{
///
- /// Create a new .
+ /// Create a new .
///
///
/// The Kubernetes API client.
///
- public CustomResourceDefinitionClientV1Beta1(IKubeApiClient client)
+ public CustomResourceDefinitionClientV1(IKubeApiClient client)
: base(client)
{
}
@@ -37,14 +37,14 @@ public CustomResourceDefinitionClientV1Beta1(IKubeApiClient client)
/// An optional that can be used to cancel the request.
///
///
- /// A representing the current state for the CustomResourceDefinition, or null if no CustomResourceDefinition was found with the specified name and namespace.
+ /// A representing the current state for the CustomResourceDefinition, or null if no CustomResourceDefinition was found with the specified name and namespace.
///
- public async Task Get(string name, CancellationToken cancellationToken = default)
+ public async Task Get(string name, CancellationToken cancellationToken = default)
{
if (String.IsNullOrWhiteSpace(name))
throw new ArgumentException("Argument cannot be null, empty, or entirely composed of whitespace: 'name'.", nameof(name));
- return await GetSingleResource(
+ return await GetSingleResource(
Requests.ByName.WithTemplateParameters(new
{
Name = name
@@ -63,11 +63,11 @@ public async Task Get(string name, Cancellation
/// An optional that can be used to cancel the request.
///
///
- /// A containing the jobs.
+ /// A containing the jobs.
///
- public async Task List(string labelSelector = null, CancellationToken cancellationToken = default)
+ public async Task List(string labelSelector = null, CancellationToken cancellationToken = default)
{
- return await GetResourceList(
+ return await GetResourceList(
Requests.Collection.WithTemplateParameters(new
{
LabelSelector = labelSelector
@@ -85,17 +85,17 @@ public async Task List(string labelSelector
///
/// An representing the event stream.
///
- public IObservable> Watch(string name)
+ public IObservable> Watch(string name)
{
if (String.IsNullOrWhiteSpace(name))
throw new ArgumentException("Argument cannot be null, empty, or entirely composed of whitespace: 'name'.", nameof(name));
- return ObserveEvents(
+ return ObserveEvents(
Requests.WatchByName.WithTemplateParameters(new
{
Name = name
}),
- operationDescription: $"watch v1beta1/CustomResourceDefintion '{name}'"
+ operationDescription: $"watch v1/CustomResourceDefintion '{name}'"
);
}
@@ -108,30 +108,30 @@ public IObservable> Watch(stri
///
/// An representing the event stream.
///
- public IObservable> WatchAll(string labelSelector = null)
+ public IObservable> WatchAll(string labelSelector = null)
{
- return ObserveEvents(
+ return ObserveEvents(
Requests.WatchCollection.WithTemplateParameters(new
{
LabelSelector = labelSelector
}),
- operationDescription: $"watch all v1beta1/CustomResourceDefintions with label selector '{labelSelector ?? ""}'"
+ operationDescription: $"watch all v1/CustomResourceDefintions with label selector '{labelSelector ?? ""}'"
);
}
///
- /// Request creation of a .
+ /// Request creation of a .
///
///
- /// A representing the CustomResourceDefinition to create.
+ /// A representing the CustomResourceDefinition to create.
///
///
/// An optional that can be used to cancel the request.
///
///
- /// A representing the current state for the newly-created CustomResourceDefinition.
+ /// A representing the current state for the newly-created CustomResourceDefinition.
///
- public async Task Create(CustomResourceDefinitionV1Beta1 newCustomResourceDefinition, CancellationToken cancellationToken = default)
+ public async Task Create(CustomResourceDefinitionV1 newCustomResourceDefinition, CancellationToken cancellationToken = default)
{
if (newCustomResourceDefinition == null)
throw new ArgumentNullException(nameof(newCustomResourceDefinition));
@@ -141,7 +141,7 @@ public async Task Create(CustomResourceDefiniti
postBody: newCustomResourceDefinition,
cancellationToken: cancellationToken
)
- .ReadContentAsObjectV1Async();
+ .ReadContentAsObjectV1Async();
}
///
@@ -157,11 +157,11 @@ public async Task Create(CustomResourceDefiniti
/// An optional that can be used to cancel the request.
///
///
- /// A representing the job's most recent state before it was deleted, if is ; otherwise, a .
+ /// A representing the job's most recent state before it was deleted, if is ; otherwise, a .
///
- public Task> Delete(string name, DeletePropagationPolicy? propagationPolicy = null, CancellationToken cancellationToken = default)
+ public Task> Delete(string name, DeletePropagationPolicy? propagationPolicy = null, CancellationToken cancellationToken = default)
{
- return DeleteGlobalResource(Requests.ByName, name, propagationPolicy, cancellationToken);
+ return DeleteGlobalResource(Requests.ByName, name, propagationPolicy, cancellationToken);
}
///
@@ -172,29 +172,29 @@ static class Requests
///
/// A collection-level CustomResourceDefinition (v1) request.
///
- public static readonly HttpRequest Collection = KubeRequest.Create("apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions?labelSelector={LabelSelector?}");
+ public static readonly HttpRequest Collection = KubeRequest.Create("apis/apiextensions.k8s.io/v1/customresourcedefinitions?labelSelector={LabelSelector?}");
///
/// A get-by-name CustomResourceDefinition (v1) request.
///
- public static readonly HttpRequest ByName = KubeRequest.Create("apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{Name}");
+ public static readonly HttpRequest ByName = KubeRequest.Create("apis/apiextensions.k8s.io/v1/customresourcedefinitions/{Name}");
///
/// A collection-level CustomResourceDefinition watch (v1) request.
///
- public static readonly HttpRequest WatchCollection = KubeRequest.Create("/apis/apiextensions.k8s.io/v1beta1/watch/customresourcedefinitions?labelSelector={LabelSelector?}");
+ public static readonly HttpRequest WatchCollection = KubeRequest.Create("/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions?labelSelector={LabelSelector?}");
///
/// A watch-by-name CustomResourceDefinition (v1) request.
///
- public static readonly HttpRequest WatchByName = KubeRequest.Create("/apis/apiextensions.k8s.io/v1beta1/watch/customresourcedefinitions/{Name}");
+ public static readonly HttpRequest WatchByName = KubeRequest.Create("/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{Name}");
}
}
///
- /// Represents a client for the Kubernetes CustomResourceDefinitions (v1beta1) API.
+ /// Represents a client for the Kubernetes CustomResourceDefinitions (v1) API.
///
- public interface ICustomResourceDefinitionClientV1Beta1
+ public interface ICustomResourceDefinitionClientV1
{
///
/// Get the CustomResourceDefinition with the specified name.
@@ -206,9 +206,9 @@ public interface ICustomResourceDefinitionClientV1Beta1
/// An optional that can be used to cancel the request.
///
///
- /// A representing the current state for the CustomResourceDefinition, or null if no CustomResourceDefinition was found with the specified name and namespace.
+ /// A representing the current state for the CustomResourceDefinition, or null if no CustomResourceDefinition was found with the specified name and namespace.
///
- Task Get(string name, CancellationToken cancellationToken = default);
+ Task Get(string name, CancellationToken cancellationToken = default);
///
/// Get all CustomResourceDefinitions in the specified namespace, optionally matching a label selector.
@@ -220,9 +220,9 @@ public interface ICustomResourceDefinitionClientV1Beta1
/// An optional that can be used to cancel the request.
///
///
- /// A containing the jobs.
+ /// A containing the jobs.
///
- Task List(string labelSelector = null, CancellationToken cancellationToken = default);
+ Task List(string labelSelector = null, CancellationToken cancellationToken = default);
///
/// Watch for events relating to a specific CustomResourceDefinition.
@@ -233,7 +233,7 @@ public interface ICustomResourceDefinitionClientV1Beta1
///
/// An representing the event stream.
///
- IObservable> Watch(string name);
+ IObservable> Watch(string name);
///
/// Watch for events relating to CustomResourceDefinitions.
@@ -244,21 +244,21 @@ public interface ICustomResourceDefinitionClientV1Beta1
///
/// An representing the event stream.
///
- IObservable> WatchAll(string labelSelector = null);
+ IObservable> WatchAll(string labelSelector = null);
///
- /// Request creation of a .
+ /// Request creation of a .
///
///
- /// A representing the CustomResourceDefinition to create.
+ /// A representing the CustomResourceDefinition to create.
///
///
/// An optional that can be used to cancel the request.
///
///
- /// A representing the current state for the newly-created CustomResourceDefinition.
+ /// A representing the current state for the newly-created CustomResourceDefinition.
///
- Task Create(CustomResourceDefinitionV1Beta1 newCustomResourceDefinition, CancellationToken cancellationToken = default);
+ Task Create(CustomResourceDefinitionV1 newCustomResourceDefinition, CancellationToken cancellationToken = default);
///
/// Request deletion of the specified CustomResourceDefinition.
@@ -273,8 +273,8 @@ public interface ICustomResourceDefinitionClientV1Beta1
/// An optional that can be used to cancel the request.
///
///
- /// A representing the job's most recent state before it was deleted, if is ; otherwise, a .
+ /// A representing the job's most recent state before it was deleted, if is ; otherwise, a .
///
- Task> Delete(string name, DeletePropagationPolicy? propagationPolicy = null, CancellationToken cancellationToken = default);
+ Task> Delete(string name, DeletePropagationPolicy? propagationPolicy = null, CancellationToken cancellationToken = default);
}
}
diff --git a/src/KubeClient.Extensions.CustomResources/CustomResourceDefinitionClientV1Beta1.cs b/src/KubeClient.Extensions.CustomResources/CustomResourceDefinitionClientV1Beta1.cs
new file mode 100644
index 00000000..67c6fe73
--- /dev/null
+++ b/src/KubeClient.Extensions.CustomResources/CustomResourceDefinitionClientV1Beta1.cs
@@ -0,0 +1,280 @@
+using HTTPlease;
+using System;
+using System.Net.Http;
+using System.Threading.Tasks;
+using System.Collections.Generic;
+using System.Threading;
+using System.Net;
+
+namespace KubeClient.ResourceClients
+{
+ using Models;
+
+ ///
+ /// A client for the Kubernetes CustomResourceDefinitions (v1beta1) API.
+ ///
+ public class CustomResourceDefinitionClientV1Beta1
+ : KubeResourceClient, ICustomResourceDefinitionClientV1Beta1
+ {
+ ///
+ /// Create a new .
+ ///
+ ///
+ /// The Kubernetes API client.
+ ///
+ public CustomResourceDefinitionClientV1Beta1(IKubeApiClient client)
+ : base(client)
+ {
+ }
+
+ ///
+ /// Get the CustomResourceDefinition with the specified name.
+ ///
+ ///
+ /// The name of the CustomResourceDefinition to retrieve.
+ ///
+ ///
+ /// An optional that can be used to cancel the request.
+ ///
+ ///
+ /// A representing the current state for the CustomResourceDefinition, or null if no CustomResourceDefinition was found with the specified name and namespace.
+ ///
+ public async Task Get(string name, CancellationToken cancellationToken = default)
+ {
+ if (String.IsNullOrWhiteSpace(name))
+ throw new ArgumentException("Argument cannot be null, empty, or entirely composed of whitespace: 'name'.", nameof(name));
+
+ return await GetSingleResource(
+ Requests.ByName.WithTemplateParameters(new
+ {
+ Name = name
+ }),
+ cancellationToken: cancellationToken
+ );
+ }
+
+ ///
+ /// Get all CustomResourceDefinitions in the specified namespace, optionally matching a label selector.
+ ///
+ ///
+ /// An optional Kubernetes label selector expression used to filter the CustomResourceDefinitions.
+ ///
+ ///
+ /// An optional that can be used to cancel the request.
+ ///
+ ///
+ /// A containing the jobs.
+ ///
+ public async Task List(string labelSelector = null, CancellationToken cancellationToken = default)
+ {
+ return await GetResourceList(
+ Requests.Collection.WithTemplateParameters(new
+ {
+ LabelSelector = labelSelector
+ }),
+ cancellationToken: cancellationToken
+ );
+ }
+
+ ///
+ /// Watch for events relating to a specific CustomResourceDefinition.
+ ///
+ ///
+ /// The name of the job to watch.
+ ///
+ ///
+ /// An representing the event stream.
+ ///
+ public IObservable> Watch(string name)
+ {
+ if (String.IsNullOrWhiteSpace(name))
+ throw new ArgumentException("Argument cannot be null, empty, or entirely composed of whitespace: 'name'.", nameof(name));
+
+ return ObserveEvents(
+ Requests.WatchByName.WithTemplateParameters(new
+ {
+ Name = name
+ }),
+ operationDescription: $"watch v1beta1/CustomResourceDefintion '{name}'"
+ );
+ }
+
+ ///
+ /// Watch for events relating to CustomResourceDefinitions.
+ ///
+ ///
+ /// An optional Kubernetes label selector expression used to filter the CustomResourceDefinitions.
+ ///
+ ///
+ /// An representing the event stream.
+ ///
+ public IObservable> WatchAll(string labelSelector = null)
+ {
+ return ObserveEvents(
+ Requests.WatchCollection.WithTemplateParameters(new
+ {
+ LabelSelector = labelSelector
+ }),
+ operationDescription: $"watch all v1beta1/CustomResourceDefintions with label selector '{labelSelector ?? ""}'"
+ );
+ }
+
+ ///
+ /// Request creation of a .
+ ///
+ ///
+ /// A representing the CustomResourceDefinition to create.
+ ///
+ ///
+ /// An optional that can be used to cancel the request.
+ ///
+ ///
+ /// A representing the current state for the newly-created CustomResourceDefinition.
+ ///
+ public async Task Create(CustomResourceDefinitionV1Beta1 newCustomResourceDefinition, CancellationToken cancellationToken = default)
+ {
+ if (newCustomResourceDefinition == null)
+ throw new ArgumentNullException(nameof(newCustomResourceDefinition));
+
+ return await Http
+ .PostAsJsonAsync(Requests.Collection,
+ postBody: newCustomResourceDefinition,
+ cancellationToken: cancellationToken
+ )
+ .ReadContentAsObjectV1Async();
+ }
+
+ ///
+ /// Request deletion of the specified CustomResourceDefinition.
+ ///
+ ///
+ /// The name of the CustomResourceDefinition to delete.
+ ///
+ ///
+ /// An optional value indicating how child resources should be deleted (if at all).
+ ///
+ ///
+ /// An optional that can be used to cancel the request.
+ ///
+ ///
+ /// A representing the job's most recent state before it was deleted, if is ; otherwise, a .
+ ///
+ public Task> Delete(string name, DeletePropagationPolicy? propagationPolicy = null, CancellationToken cancellationToken = default)
+ {
+ return DeleteGlobalResource(Requests.ByName, name, propagationPolicy, cancellationToken);
+ }
+
+ ///
+ /// Request templates for the CustomResourceDefinition (v1) API.
+ ///
+ static class Requests
+ {
+ ///
+ /// A collection-level CustomResourceDefinition (v1) request.
+ ///
+ public static readonly HttpRequest Collection = KubeRequest.Create("apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions?labelSelector={LabelSelector?}");
+
+ ///
+ /// A get-by-name CustomResourceDefinition (v1) request.
+ ///
+ public static readonly HttpRequest ByName = KubeRequest.Create("apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{Name}");
+
+ ///
+ /// A collection-level CustomResourceDefinition watch (v1) request.
+ ///
+ public static readonly HttpRequest WatchCollection = KubeRequest.Create("/apis/apiextensions.k8s.io/v1beta1/watch/customresourcedefinitions?labelSelector={LabelSelector?}");
+
+ ///
+ /// A watch-by-name CustomResourceDefinition (v1) request.
+ ///
+ public static readonly HttpRequest WatchByName = KubeRequest.Create("/apis/apiextensions.k8s.io/v1beta1/watch/customresourcedefinitions/{Name}");
+ }
+ }
+
+ ///
+ /// Represents a client for the Kubernetes CustomResourceDefinitions (v1beta1) API.
+ ///
+ public interface ICustomResourceDefinitionClientV1Beta1
+ {
+ ///
+ /// Get the CustomResourceDefinition with the specified name.
+ ///
+ ///
+ /// The name of the CustomResourceDefinition to retrieve.
+ ///
+ ///
+ /// An optional that can be used to cancel the request.
+ ///
+ ///
+ /// A representing the current state for the CustomResourceDefinition, or null if no CustomResourceDefinition was found with the specified name and namespace.
+ ///
+ Task Get(string name, CancellationToken cancellationToken = default);
+
+ ///
+ /// Get all CustomResourceDefinitions in the specified namespace, optionally matching a label selector.
+ ///
+ ///
+ /// An optional Kubernetes label selector expression used to filter the CustomResourceDefinitions.
+ ///
+ ///
+ /// An optional that can be used to cancel the request.
+ ///
+ ///
+ /// A containing the jobs.
+ ///
+ Task List(string labelSelector = null, CancellationToken cancellationToken = default);
+
+ ///
+ /// Watch for events relating to a specific CustomResourceDefinition.
+ ///
+ ///
+ /// The name of the job to watch.
+ ///
+ ///
+ /// An representing the event stream.
+ ///
+ IObservable> Watch(string name);
+
+ ///
+ /// Watch for events relating to CustomResourceDefinitions.
+ ///
+ ///
+ /// An optional Kubernetes label selector expression used to filter the CustomResourceDefinitions.
+ ///
+ ///
+ /// An representing the event stream.
+ ///
+ IObservable> WatchAll(string labelSelector = null);
+
+ ///
+ /// Request creation of a .
+ ///
+ ///
+ /// A representing the CustomResourceDefinition to create.
+ ///
+ ///
+ /// An optional that can be used to cancel the request.
+ ///
+ ///
+ /// A representing the current state for the newly-created CustomResourceDefinition.
+ ///
+ Task Create(CustomResourceDefinitionV1Beta1 newCustomResourceDefinition, CancellationToken cancellationToken = default);
+
+ ///
+ /// Request deletion of the specified CustomResourceDefinition.
+ ///
+ ///
+ /// The name of the CustomResourceDefinition to delete.
+ ///
+ ///
+ /// A indicating how child resources should be deleted (if at all).
+ ///
+ ///
+ /// An optional that can be used to cancel the request.
+ ///
+ ///
+ /// A representing the job's most recent state before it was deleted, if is ; otherwise, a .
+ ///
+ Task> Delete(string name, DeletePropagationPolicy? propagationPolicy = null, CancellationToken cancellationToken = default);
+ }
+}
diff --git a/src/KubeClient.Extensions.CustomResources/KubeCustomResourceV1.cs b/src/KubeClient.Extensions.CustomResources/KubeCustomResourceV1.cs
index 7ab39565..f6f4532d 100644
--- a/src/KubeClient.Extensions.CustomResources/KubeCustomResourceV1.cs
+++ b/src/KubeClient.Extensions.CustomResources/KubeCustomResourceV1.cs
@@ -24,9 +24,9 @@ protected KubeCustomResourceV1()
/// Generate a JSON schema for validating the specification model.
///
///
- /// The configured .
+ /// The configured .
///
- public abstract JSONSchemaPropsV1Beta1 GenerateSpecificationSchema();
+ public abstract JSONSchemaPropsV1 GenerateSpecificationSchema();
}
///
@@ -56,8 +56,8 @@ protected KubeCustomResourceV1()
/// Generate a JSON schema for validating the specification model.
///
///
- /// The configured .
+ /// The configured .
///
- public override JSONSchemaPropsV1Beta1 GenerateSpecificationSchema() => SchemaGenerator.GenerateSchema(modelType: typeof(TSpecification));
+ public override JSONSchemaPropsV1 GenerateSpecificationSchema() => SchemaGeneratorV1.GenerateSchema(modelType: typeof(TSpecification));
}
}
diff --git a/src/KubeClient.Extensions.CustomResources/KubeCustomResourceV1Beta1.cs b/src/KubeClient.Extensions.CustomResources/KubeCustomResourceV1Beta1.cs
new file mode 100644
index 00000000..9ab5cc61
--- /dev/null
+++ b/src/KubeClient.Extensions.CustomResources/KubeCustomResourceV1Beta1.cs
@@ -0,0 +1,63 @@
+using System;
+using Newtonsoft.Json;
+
+namespace KubeClient.Models
+{
+ using Extensions.CustomResources;
+
+ ///
+ /// The base class for models representing Kubernetes Custom Resources (CRDs).
+ ///
+ public abstract class KubeCustomResourceV1Beta1
+ : KubeResourceV1
+ {
+ ///
+ /// Create a new .
+ ///
+ protected KubeCustomResourceV1Beta1()
+ {
+ if (String.IsNullOrEmpty(Kind) || string.IsNullOrWhiteSpace(ApiVersion))
+ throw new KubeClientException($"Class '{GetType().Name}' derives from '{nameof(KubeCustomResourceV1Beta1)}' but is not decorated with the 'KubeResource' attribute.");
+ }
+
+ ///
+ /// Generate a JSON schema for validating the specification model.
+ ///
+ ///
+ /// The configured .
+ ///
+ public abstract JSONSchemaPropsV1Beta1 GenerateSpecificationSchema();
+ }
+
+ ///
+ /// The base class for models representing Kubernetes Custom Resource Definitions (CRDs).
+ ///
+ ///
+ /// The type of model used to represent the resource specification.
+ ///
+ public abstract class KubeCustomResourceV1Beta1
+ : KubeCustomResourceV1Beta1
+ where TSpecification : class
+ {
+ ///
+ /// Create a new .
+ ///
+ protected KubeCustomResourceV1Beta1()
+ {
+ }
+
+ ///
+ /// The resource specification.
+ ///
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public virtual TSpecification Specification { get; set; }
+
+ ///
+ /// Generate a JSON schema for validating the specification model.
+ ///
+ ///
+ /// The configured .
+ ///
+ public override JSONSchemaPropsV1Beta1 GenerateSpecificationSchema() => SchemaGeneratorV1Beta1.GenerateSchema(modelType: typeof(TSpecification));
+ }
+}
diff --git a/src/KubeClient.Extensions.CustomResources/SchemaGeneratorV1.cs b/src/KubeClient.Extensions.CustomResources/SchemaGeneratorV1.cs
new file mode 100644
index 00000000..5743419e
--- /dev/null
+++ b/src/KubeClient.Extensions.CustomResources/SchemaGeneratorV1.cs
@@ -0,0 +1,275 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Reflection;
+
+namespace KubeClient.Extensions.CustomResources
+{
+ using Models;
+
+ ///
+ /// Generator for v1 Custom Resource Definition (CRD) validation schemas.
+ ///
+ public static class SchemaGeneratorV1
+ {
+ ///
+ /// The CLR type representing .
+ ///
+ static readonly Type CustomResourceV1Type = typeof(KubeCustomResourceV1);
+
+ ///
+ /// Generate the CRD validation schema for a specification model type.
+ ///
+ ///
+ /// The CLR type representing the model.
+ ///
+ ///
+ /// The generated .
+ ///
+ public static JSONSchemaPropsV1 GenerateSchema()
+ where TModel : KubeCustomResourceV1
+ {
+ return GenerateSchema(typeof(TModel));
+ }
+
+ ///
+ /// Generate the CRD validation schema for a model type.
+ ///
+ ///
+ /// The CLR type representing the model.
+ ///
+ ///
+ /// The generated .
+ ///
+ public static JSONSchemaPropsV1 GenerateSchema(Type modelType)
+ {
+ if (modelType == null)
+ throw new ArgumentNullException(nameof(modelType));
+
+ if (!CustomResourceV1Type.IsAssignableFrom(modelType))
+ throw new ArgumentException($"Cannot generate JSON schema for model type '{modelType.FullName}' because it does not derive from '{CustomResourceV1Type.FullName}'.");
+
+ TypeInfo modelTypeInfo = modelType.GetTypeInfo();
+ if (modelTypeInfo.IsEnum)
+ return GenerateEnumSchema(modelType);
+
+ TypeCode modelTypeCode = Type.GetTypeCode(modelType);
+ switch (modelTypeCode)
+ {
+ case TypeCode.String:
+ {
+ return new JSONSchemaPropsV1
+ {
+ Type = "string"
+ };
+ }
+ case TypeCode.Boolean:
+ {
+ return new JSONSchemaPropsV1
+ {
+ Type = "boolean"
+ };
+ }
+ case TypeCode.Int32:
+ {
+ return new JSONSchemaPropsV1
+ {
+ Type = "integer",
+ Format = "int32"
+ };
+ }
+ case TypeCode.Int64:
+ {
+ return new JSONSchemaPropsV1
+ {
+ Type = "integer",
+ Format = "int64"
+ };
+ }
+ case TypeCode.Single:
+ {
+ return new JSONSchemaPropsV1
+ {
+ Type = "number",
+ Format = "float"
+ };
+ }
+ case TypeCode.Double:
+ {
+ return new JSONSchemaPropsV1
+ {
+ Type = "float",
+ Format = "double"
+ };
+ }
+ case TypeCode.DateTime:
+ {
+ return new JSONSchemaPropsV1
+ {
+ Type = "string",
+ Format = "date-time"
+ };
+ }
+ case TypeCode.Object:
+ {
+ if (modelType.IsArray)
+ {
+ if (Type.GetTypeCode(modelType.GetElementType()) == TypeCode.Byte)
+ {
+ return new JSONSchemaPropsV1
+ {
+ Type = "string",
+ Format = "byte"
+ };
+ }
+
+ return GenerateArraySchema(modelType);
+ }
+
+ if (modelType == typeof(Guid))
+ {
+ return new JSONSchemaPropsV1
+ {
+ Type = "string",
+ Format = "uuid"
+ };
+ }
+
+ return GenerateObjectSchema(modelType);
+ }
+ default:
+ {
+ throw new NotSupportedException(
+ $"Cannot generate schema for unsupported data-type '{modelType.FullName}'."
+ );
+ }
+ }
+ }
+
+ ///
+ /// Generate the CRD validation schema for an data-type.
+ ///
+ ///
+ /// A representing the data-type.
+ ///
+ ///
+ /// The generated .
+ ///
+ static JSONSchemaPropsV1 GenerateEnumSchema(Type enumType)
+ {
+ if (enumType == null)
+ throw new ArgumentNullException(nameof(enumType));
+
+ JSONSchemaPropsV1 schema = new JSONSchemaPropsV1
+ {
+ Type = "string",
+ Description = enumType.Name
+ };
+
+ schema.Enum.AddRange(
+ Enum.GetNames(enumType).Select(
+ memberName => new JSONV1
+ {
+
+ Raw = memberName
+ }
+ )
+ );
+
+ return schema;
+ }
+
+ ///
+ /// Generate the CRD validation schema for an data-type.
+ ///
+ ///
+ /// A representing the array data-type.
+ ///
+ ///
+ /// The generated .
+ ///
+ static JSONSchemaPropsV1 GenerateArraySchema(Type arrayType)
+ {
+ if (arrayType == null)
+ throw new ArgumentNullException(nameof(arrayType));
+
+ return new JSONSchemaPropsV1
+ {
+ Type = "array",
+ Items = GenerateSchema(
+ arrayType.GetElementType()
+ )
+ };
+ }
+
+ ///
+ /// Generate the CRD validation schema for a complex data-type.
+ ///
+ ///
+ /// A representing the complex (object) data-type.
+ ///
+ ///
+ /// The generated .
+ ///
+ static JSONSchemaPropsV1 GenerateObjectSchema(Type objectType)
+ {
+ if (objectType == null)
+ throw new ArgumentNullException(nameof(objectType));
+
+ var schemaProps = new JSONSchemaPropsV1
+ {
+ Type = "object",
+ Description = objectType.Name,
+ };
+
+ foreach (PropertyInfo property in objectType.GetProperties(BindingFlags.Instance | BindingFlags.Public))
+ {
+ if (!(property.CanRead && property.CanWrite))
+ continue;
+
+ // Ignore non-serialised properties.
+ if (property.GetCustomAttribute() != null)
+ continue;
+
+ // We only want properties declared on KubeCustomResourceV1 (or classes derived from it).
+ if (!typeof(KubeCustomResourceV1).IsAssignableFrom(property.DeclaringType))
+ continue;
+
+ schemaProps.Properties[property.Name] = GenerateSchema(property.PropertyType);
+ }
+
+ schemaProps.Required.AddRange(
+ GetRequiredPropertyNames(objectType)
+ );
+
+ return schemaProps;
+ }
+
+ ///
+ /// Get the names of required properties on the specified complex type.
+ ///
+ ///
+ /// A representing the complex (object) data-type.
+ ///
+ ///
+ /// A sequence of property names.
+ ///
+ static IEnumerable GetRequiredPropertyNames(Type objectType)
+ {
+ if (objectType == null)
+ throw new ArgumentNullException(nameof(objectType));
+
+ foreach (PropertyInfo property in objectType.GetProperties(BindingFlags.Instance | BindingFlags.Public))
+ {
+ if (property.PropertyType.IsValueType && Nullable.GetUnderlyingType(property.PropertyType) == null)
+ yield return property.Name; // Value types (unless nullable) are required.
+ else if (property.GetCustomAttribute() != null)
+ yield return property.Name; // Marked with [JsonRequired]
+ else if (property.GetCustomAttribute() != null)
+ yield return property.Name; // Marked with [Required]
+ }
+ }
+ }
+}
diff --git a/src/KubeClient.Extensions.CustomResources/SchemaGenerator.cs b/src/KubeClient.Extensions.CustomResources/SchemaGeneratorV1Beta1.cs
similarity index 94%
rename from src/KubeClient.Extensions.CustomResources/SchemaGenerator.cs
rename to src/KubeClient.Extensions.CustomResources/SchemaGeneratorV1Beta1.cs
index 78dac6b5..2543bb1d 100644
--- a/src/KubeClient.Extensions.CustomResources/SchemaGenerator.cs
+++ b/src/KubeClient.Extensions.CustomResources/SchemaGeneratorV1Beta1.cs
@@ -10,14 +10,17 @@ namespace KubeClient.Extensions.CustomResources
using Models;
///
- /// Generator for Custom Resource Definition (CRD) validation schemas.
+ /// Generator for v1beta1 Custom Resource Definition (CRD) validation schemas.
///
- public static class SchemaGenerator
+ ///
+ /// Note: this type is deprecated and will be removed in a future version of dotnet-kube-client (use , instead).
+ ///
+ public static class SchemaGeneratorV1Beta1
{
///
- /// The CLR type representing .
+ /// The CLR type representing .
///
- static readonly Type CustomResourceV1Type = typeof(KubeCustomResourceV1);
+ static readonly Type CustomResourceV1Type = typeof(KubeCustomResourceV1Beta1);
///
/// Generate the CRD validation schema for a specification model type.
@@ -29,7 +32,7 @@ public static class SchemaGenerator
/// The generated .
///
public static JSONSchemaPropsV1Beta1 GenerateSchema()
- where TModel : KubeCustomResourceV1
+ where TModel : KubeCustomResourceV1Beta1
{
return GenerateSchema(typeof(TModel));
}
@@ -233,7 +236,7 @@ static JSONSchemaPropsV1Beta1 GenerateObjectSchema(Type objectType)
continue;
// We only want properties declared on KubeCustomResourceV1 (or classes derived from it).
- if (!typeof(KubeCustomResourceV1).IsAssignableFrom(property.DeclaringType))
+ if (!typeof(KubeCustomResourceV1Beta1).IsAssignableFrom(property.DeclaringType))
continue;
schemaProps.Properties[property.Name] = GenerateSchema(property.PropertyType);
diff --git a/src/KubeClient/Models/JSONV1.cs b/src/KubeClient/Models/JSONV1.cs
new file mode 100644
index 00000000..b1a03598
--- /dev/null
+++ b/src/KubeClient/Models/JSONV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using System.Text;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.
+ ///
+ public partial class JSONV1
+ {
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "Raw")]
+ [JsonProperty("Raw", NullValueHandling = NullValueHandling.Include)]
+ public string Raw { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/APIResourceV1.cs b/src/KubeClient/Models/generated/APIResourceV1.cs
index 60ae73e2..24568650 100644
--- a/src/KubeClient/Models/generated/APIResourceV1.cs
+++ b/src/KubeClient/Models/generated/APIResourceV1.cs
@@ -38,6 +38,13 @@ public partial class APIResourceV1
[JsonProperty("singularName", NullValueHandling = NullValueHandling.Include)]
public string SingularName { get; set; }
+ ///
+ /// The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.
+ ///
+ [YamlMember(Alias = "storageVersionHash")]
+ [JsonProperty("storageVersionHash", NullValueHandling = NullValueHandling.Ignore)]
+ public string StorageVersionHash { get; set; }
+
///
/// version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
///
diff --git a/src/KubeClient/Models/generated/APIServiceConditionV1.cs b/src/KubeClient/Models/generated/APIServiceConditionV1.cs
index 74e6f569..abe61993 100644
--- a/src/KubeClient/Models/generated/APIServiceConditionV1.cs
+++ b/src/KubeClient/Models/generated/APIServiceConditionV1.cs
@@ -6,7 +6,7 @@
namespace KubeClient.Models
{
///
- /// No description provided.
+ /// APIServiceCondition describes the state of an APIService at a particular point
///
public partial class APIServiceConditionV1
{
diff --git a/src/KubeClient/Models/generated/APIServiceListV1.cs b/src/KubeClient/Models/generated/APIServiceListV1.cs
index 7a2bb1f0..90dacb0f 100644
--- a/src/KubeClient/Models/generated/APIServiceListV1.cs
+++ b/src/KubeClient/Models/generated/APIServiceListV1.cs
@@ -13,7 +13,7 @@ namespace KubeClient.Models
public partial class APIServiceListV1 : KubeResourceListV1
{
///
- /// Description not provided.
+ /// Items is the list of APIService
///
[JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public override List Items { get; } = new List();
diff --git a/src/KubeClient/Models/generated/APIServiceSpecV1.cs b/src/KubeClient/Models/generated/APIServiceSpecV1.cs
index 365f7bd9..e32e0f16 100644
--- a/src/KubeClient/Models/generated/APIServiceSpecV1.cs
+++ b/src/KubeClient/Models/generated/APIServiceSpecV1.cs
@@ -11,21 +11,21 @@ namespace KubeClient.Models
public partial class APIServiceSpecV1
{
///
- /// CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate.
+ /// CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.
///
[YamlMember(Alias = "caBundle")]
[JsonProperty("caBundle", NullValueHandling = NullValueHandling.Ignore)]
public string CaBundle { get; set; }
///
- /// Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.
+ /// Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.
///
[YamlMember(Alias = "service")]
- [JsonProperty("service", NullValueHandling = NullValueHandling.Include)]
+ [JsonProperty("service", NullValueHandling = NullValueHandling.Ignore)]
public ServiceReferenceV1 Service { get; set; }
///
- /// GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s
+ /// GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s
///
[YamlMember(Alias = "groupPriorityMinimum")]
[JsonProperty("groupPriorityMinimum", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/AWSElasticBlockStoreVolumeSourceV1.cs b/src/KubeClient/Models/generated/AWSElasticBlockStoreVolumeSourceV1.cs
index b15ad17a..10996434 100644
--- a/src/KubeClient/Models/generated/AWSElasticBlockStoreVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/AWSElasticBlockStoreVolumeSourceV1.cs
@@ -13,28 +13,28 @@ namespace KubeClient.Models
public partial class AWSElasticBlockStoreVolumeSourceV1
{
///
- /// Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
+ /// volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
///
[YamlMember(Alias = "volumeID")]
[JsonProperty("volumeID", NullValueHandling = NullValueHandling.Include)]
public string VolumeID { get; set; }
///
- /// Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
+ /// fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
+ /// partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
///
[YamlMember(Alias = "partition")]
[JsonProperty("partition", NullValueHandling = NullValueHandling.Ignore)]
public int? Partition { get; set; }
///
- /// Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
+ /// readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/AllocationResultV1Alpha3.cs b/src/KubeClient/Models/generated/AllocationResultV1Alpha3.cs
new file mode 100644
index 00000000..a93ce28f
--- /dev/null
+++ b/src/KubeClient/Models/generated/AllocationResultV1Alpha3.cs
@@ -0,0 +1,38 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// AllocationResult contains attributes of an allocated resource.
+ ///
+ public partial class AllocationResultV1Alpha3
+ {
+ ///
+ /// Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver.
+ ///
+ /// A driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results.
+ ///
+ /// This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
+ ///
+ [YamlMember(Alias = "controller")]
+ [JsonProperty("controller", NullValueHandling = NullValueHandling.Ignore)]
+ public string Controller { get; set; }
+
+ ///
+ /// NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
+ ///
+ [YamlMember(Alias = "nodeSelector")]
+ [JsonProperty("nodeSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public NodeSelectorV1 NodeSelector { get; set; }
+
+ ///
+ /// Devices is the result of allocating devices.
+ ///
+ [YamlMember(Alias = "devices")]
+ [JsonProperty("devices", NullValueHandling = NullValueHandling.Ignore)]
+ public DeviceAllocationResultV1Alpha3 Devices { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/AppArmorProfileV1.cs b/src/KubeClient/Models/generated/AppArmorProfileV1.cs
new file mode 100644
index 00000000..c0912e34
--- /dev/null
+++ b/src/KubeClient/Models/generated/AppArmorProfileV1.cs
@@ -0,0 +1,30 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// AppArmorProfile defines a pod or container's AppArmor settings.
+ ///
+ public partial class AppArmorProfileV1
+ {
+ ///
+ /// localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost".
+ ///
+ [YamlMember(Alias = "localhostProfile")]
+ [JsonProperty("localhostProfile", NullValueHandling = NullValueHandling.Ignore)]
+ public string LocalhostProfile { get; set; }
+
+ ///
+ /// type indicates which kind of AppArmor profile will be applied. Valid options are:
+ /// Localhost - a profile pre-loaded on the node.
+ /// RuntimeDefault - the container runtime's default profile.
+ /// Unconfined - no AppArmor enforcement.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/AuditAnnotationV1.cs b/src/KubeClient/Models/generated/AuditAnnotationV1.cs
new file mode 100644
index 00000000..97fe13de
--- /dev/null
+++ b/src/KubeClient/Models/generated/AuditAnnotationV1.cs
@@ -0,0 +1,37 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// AuditAnnotation describes how to produce an audit annotation for an API request.
+ ///
+ public partial class AuditAnnotationV1
+ {
+ ///
+ /// valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.
+ ///
+ /// If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "valueExpression")]
+ [JsonProperty("valueExpression", NullValueHandling = NullValueHandling.Include)]
+ public string ValueExpression { get; set; }
+
+ ///
+ /// key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+ ///
+ /// The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}".
+ ///
+ /// If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "key")]
+ [JsonProperty("key", NullValueHandling = NullValueHandling.Include)]
+ public string Key { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/AuditAnnotationV1Alpha1.cs b/src/KubeClient/Models/generated/AuditAnnotationV1Alpha1.cs
new file mode 100644
index 00000000..3cef2d73
--- /dev/null
+++ b/src/KubeClient/Models/generated/AuditAnnotationV1Alpha1.cs
@@ -0,0 +1,37 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// AuditAnnotation describes how to produce an audit annotation for an API request.
+ ///
+ public partial class AuditAnnotationV1Alpha1
+ {
+ ///
+ /// valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.
+ ///
+ /// If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "valueExpression")]
+ [JsonProperty("valueExpression", NullValueHandling = NullValueHandling.Include)]
+ public string ValueExpression { get; set; }
+
+ ///
+ /// key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+ ///
+ /// The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}".
+ ///
+ /// If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "key")]
+ [JsonProperty("key", NullValueHandling = NullValueHandling.Include)]
+ public string Key { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/AuditAnnotationV1Beta1.cs b/src/KubeClient/Models/generated/AuditAnnotationV1Beta1.cs
new file mode 100644
index 00000000..12af91de
--- /dev/null
+++ b/src/KubeClient/Models/generated/AuditAnnotationV1Beta1.cs
@@ -0,0 +1,37 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// AuditAnnotation describes how to produce an audit annotation for an API request.
+ ///
+ public partial class AuditAnnotationV1Beta1
+ {
+ ///
+ /// valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.
+ ///
+ /// If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "valueExpression")]
+ [JsonProperty("valueExpression", NullValueHandling = NullValueHandling.Include)]
+ public string ValueExpression { get; set; }
+
+ ///
+ /// key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+ ///
+ /// The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}".
+ ///
+ /// If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "key")]
+ [JsonProperty("key", NullValueHandling = NullValueHandling.Include)]
+ public string Key { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/AzureDiskVolumeSourceV1.cs b/src/KubeClient/Models/generated/AzureDiskVolumeSourceV1.cs
index 1922b72e..f6566009 100644
--- a/src/KubeClient/Models/generated/AzureDiskVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/AzureDiskVolumeSourceV1.cs
@@ -11,42 +11,42 @@ namespace KubeClient.Models
public partial class AzureDiskVolumeSourceV1
{
///
- /// The URI the data disk in the blob storage
+ /// diskURI is the URI of data disk in the blob storage
///
[YamlMember(Alias = "diskURI")]
[JsonProperty("diskURI", NullValueHandling = NullValueHandling.Include)]
public string DiskURI { get; set; }
///
- /// Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
+ /// kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
///
[YamlMember(Alias = "kind")]
[JsonProperty("kind", NullValueHandling = NullValueHandling.Ignore)]
public string Kind { get; set; }
///
- /// Host Caching mode: None, Read Only, Read Write.
+ /// cachingMode is the Host Caching mode: None, Read Only, Read Write.
///
[YamlMember(Alias = "cachingMode")]
[JsonProperty("cachingMode", NullValueHandling = NullValueHandling.Ignore)]
public string CachingMode { get; set; }
///
- /// The Name of the data disk in the blob storage
+ /// diskName is the Name of the data disk in the blob storage
///
[YamlMember(Alias = "diskName")]
[JsonProperty("diskName", NullValueHandling = NullValueHandling.Include)]
public string DiskName { get; set; }
///
- /// Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+ /// fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
+ /// readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/AzureFilePersistentVolumeSourceV1.cs b/src/KubeClient/Models/generated/AzureFilePersistentVolumeSourceV1.cs
index 7ee0f92b..ea4ac1ed 100644
--- a/src/KubeClient/Models/generated/AzureFilePersistentVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/AzureFilePersistentVolumeSourceV1.cs
@@ -11,28 +11,28 @@ namespace KubeClient.Models
public partial class AzureFilePersistentVolumeSourceV1
{
///
- /// the name of secret that contains Azure Storage Account Name and Key
+ /// secretName is the name of secret that contains Azure Storage Account Name and Key
///
[YamlMember(Alias = "secretName")]
[JsonProperty("secretName", NullValueHandling = NullValueHandling.Include)]
public string SecretName { get; set; }
///
- /// the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod
+ /// secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod
///
[YamlMember(Alias = "secretNamespace")]
[JsonProperty("secretNamespace", NullValueHandling = NullValueHandling.Ignore)]
public string SecretNamespace { get; set; }
///
- /// Share Name
+ /// shareName is the azure Share Name
///
[YamlMember(Alias = "shareName")]
[JsonProperty("shareName", NullValueHandling = NullValueHandling.Include)]
public string ShareName { get; set; }
///
- /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
+ /// readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/AzureFileVolumeSourceV1.cs b/src/KubeClient/Models/generated/AzureFileVolumeSourceV1.cs
index eb194ff0..4c75a1c8 100644
--- a/src/KubeClient/Models/generated/AzureFileVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/AzureFileVolumeSourceV1.cs
@@ -11,21 +11,21 @@ namespace KubeClient.Models
public partial class AzureFileVolumeSourceV1
{
///
- /// the name of secret that contains Azure Storage Account Name and Key
+ /// secretName is the name of secret that contains Azure Storage Account Name and Key
///
[YamlMember(Alias = "secretName")]
[JsonProperty("secretName", NullValueHandling = NullValueHandling.Include)]
public string SecretName { get; set; }
///
- /// Share Name
+ /// shareName is the azure share Name
///
[YamlMember(Alias = "shareName")]
[JsonProperty("shareName", NullValueHandling = NullValueHandling.Include)]
public string ShareName { get; set; }
///
- /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
+ /// readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/BasicDeviceV1Alpha3.cs b/src/KubeClient/Models/generated/BasicDeviceV1Alpha3.cs
new file mode 100644
index 00000000..28e1cb10
--- /dev/null
+++ b/src/KubeClient/Models/generated/BasicDeviceV1Alpha3.cs
@@ -0,0 +1,41 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// BasicDevice defines one device instance.
+ ///
+ public partial class BasicDeviceV1Alpha3
+ {
+ ///
+ /// Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
+ ///
+ /// The maximum number of attributes and capacities combined is 32.
+ ///
+ [YamlMember(Alias = "attributes")]
+ [JsonProperty("attributes", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary Attributes { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAttributes() => Attributes.Count > 0;
+
+ ///
+ /// Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
+ ///
+ /// The maximum number of attributes and capacities combined is 32.
+ ///
+ [YamlMember(Alias = "capacity")]
+ [JsonProperty("capacity", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary Capacity { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeCapacity() => Capacity.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/BoundObjectReferenceV1.cs b/src/KubeClient/Models/generated/BoundObjectReferenceV1.cs
new file mode 100644
index 00000000..d92a128c
--- /dev/null
+++ b/src/KubeClient/Models/generated/BoundObjectReferenceV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// BoundObjectReference is a reference to an object that a token is bound to.
+ ///
+ public partial class BoundObjectReferenceV1 : KubeObjectV1
+ {
+ ///
+ /// UID of the referent.
+ ///
+ [YamlMember(Alias = "uid")]
+ [JsonProperty("uid", NullValueHandling = NullValueHandling.Ignore)]
+ public string Uid { get; set; }
+
+ ///
+ /// Name of the referent.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
+ public string Name { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CELDeviceSelectorV1Alpha3.cs b/src/KubeClient/Models/generated/CELDeviceSelectorV1Alpha3.cs
new file mode 100644
index 00000000..fbf48c52
--- /dev/null
+++ b/src/KubeClient/Models/generated/CELDeviceSelectorV1Alpha3.cs
@@ -0,0 +1,46 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CELDeviceSelector contains a CEL expression for selecting a device.
+ ///
+ public partial class CELDeviceSelectorV1Alpha3
+ {
+ ///
+ /// Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
+ ///
+ /// The expression's input is an object named "device", which carries the following properties:
+ /// - driver (string): the name of the driver which defines this device.
+ /// - attributes (map[string]object): the device's attributes, grouped by prefix
+ /// (e.g. device.attributes["dra.example.com"] evaluates to an object with all
+ /// of the attributes which were prefixed by "dra.example.com".
+ /// - capacity (map[string]object): the device's capacities, grouped by prefix.
+ ///
+ /// Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
+ ///
+ /// device.driver
+ /// device.attributes["dra.example.com"].model
+ /// device.attributes["ext.example.com"].family
+ /// device.capacity["dra.example.com"].modules
+ ///
+ /// The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
+ ///
+ /// The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
+ ///
+ /// If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
+ ///
+ /// A robust expression should check for the existence of attributes before referencing them.
+ ///
+ /// For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
+ ///
+ /// cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
+ ///
+ [YamlMember(Alias = "expression")]
+ [JsonProperty("expression", NullValueHandling = NullValueHandling.Include)]
+ public string Expression { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CSIDriverListV1.cs b/src/KubeClient/Models/generated/CSIDriverListV1.cs
new file mode 100644
index 00000000..f0dbff23
--- /dev/null
+++ b/src/KubeClient/Models/generated/CSIDriverListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CSIDriverList is a collection of CSIDriver objects.
+ ///
+ [KubeListItem("CSIDriver", "storage.k8s.io/v1")]
+ [KubeObject("CSIDriverList", "storage.k8s.io/v1")]
+ public partial class CSIDriverListV1 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of CSIDriver
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/CSIDriverSpecV1.cs b/src/KubeClient/Models/generated/CSIDriverSpecV1.cs
new file mode 100644
index 00000000..9236f862
--- /dev/null
+++ b/src/KubeClient/Models/generated/CSIDriverSpecV1.cs
@@ -0,0 +1,122 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CSIDriverSpec is the specification of a CSIDriver.
+ ///
+ public partial class CSIDriverSpecV1
+ {
+ ///
+ /// attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.
+ ///
+ /// This field is immutable.
+ ///
+ [YamlMember(Alias = "attachRequired")]
+ [JsonProperty("attachRequired", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? AttachRequired { get; set; }
+
+ ///
+ /// requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.
+ ///
+ /// Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.
+ ///
+ [YamlMember(Alias = "requiresRepublish")]
+ [JsonProperty("requiresRepublish", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? RequiresRepublish { get; set; }
+
+ ///
+ /// tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: "csi.storage.k8s.io/serviceAccount.tokens": {
+ /// "<audience>": {
+ /// "token": <token>,
+ /// "expirationTimestamp": <expiration timestamp in RFC3339>,
+ /// },
+ /// ...
+ /// }
+ ///
+ /// Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.
+ ///
+ [YamlMember(Alias = "tokenRequests")]
+ [JsonProperty("tokenRequests", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List TokenRequests { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeTokenRequests() => TokenRequests.Count > 0;
+
+ ///
+ /// volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.
+ ///
+ /// The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.
+ ///
+ /// For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.
+ ///
+ /// This field is beta. This field is immutable.
+ ///
+ [YamlMember(Alias = "volumeLifecycleModes")]
+ [JsonProperty("volumeLifecycleModes", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List VolumeLifecycleModes { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeVolumeLifecycleModes() => VolumeLifecycleModes.Count > 0;
+
+ ///
+ /// podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.
+ ///
+ /// The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.
+ ///
+ /// The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
+ /// defined by a CSIVolumeSource, otherwise "false"
+ ///
+ /// "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.
+ ///
+ /// This field was immutable in Kubernetes < 1.29 and now is mutable.
+ ///
+ [YamlMember(Alias = "podInfoOnMount")]
+ [JsonProperty("podInfoOnMount", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? PodInfoOnMount { get; set; }
+
+ ///
+ /// seLinuxMount specifies if the CSI driver supports "-o context" mount option.
+ ///
+ /// When "true", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.
+ ///
+ /// When "false", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.
+ ///
+ /// Default is "false".
+ ///
+ [YamlMember(Alias = "seLinuxMount")]
+ [JsonProperty("seLinuxMount", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? SeLinuxMount { get; set; }
+
+ ///
+ /// fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.
+ ///
+ /// This field was immutable in Kubernetes < 1.29 and now is mutable.
+ ///
+ /// Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.
+ ///
+ [YamlMember(Alias = "fsGroupPolicy")]
+ [JsonProperty("fsGroupPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string FsGroupPolicy { get; set; }
+
+ ///
+ /// storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.
+ ///
+ /// The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.
+ ///
+ /// Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.
+ ///
+ /// This field was immutable in Kubernetes <= 1.22 and now is mutable.
+ ///
+ [YamlMember(Alias = "storageCapacity")]
+ [JsonProperty("storageCapacity", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? StorageCapacity { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CSIDriverV1.cs b/src/KubeClient/Models/generated/CSIDriverV1.cs
new file mode 100644
index 00000000..f5d4ad38
--- /dev/null
+++ b/src/KubeClient/Models/generated/CSIDriverV1.cs
@@ -0,0 +1,30 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.
+ ///
+ [KubeObject("CSIDriver", "storage.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/storage.k8s.io/v1/csidrivers")]
+ [KubeApi(KubeAction.Create, "apis/storage.k8s.io/v1/csidrivers")]
+ [KubeApi(KubeAction.Get, "apis/storage.k8s.io/v1/csidrivers/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/storage.k8s.io/v1/csidrivers/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/storage.k8s.io/v1/csidrivers/{name}")]
+ [KubeApi(KubeAction.Update, "apis/storage.k8s.io/v1/csidrivers/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/storage.k8s.io/v1/watch/csidrivers")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/storage.k8s.io/v1/csidrivers")]
+ [KubeApi(KubeAction.Watch, "apis/storage.k8s.io/v1/watch/csidrivers/{name}")]
+ public partial class CSIDriverV1 : KubeResourceV1
+ {
+ ///
+ /// spec represents the specification of the CSI Driver.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public CSIDriverSpecV1 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CSINodeDriverV1.cs b/src/KubeClient/Models/generated/CSINodeDriverV1.cs
new file mode 100644
index 00000000..01e7db6f
--- /dev/null
+++ b/src/KubeClient/Models/generated/CSINodeDriverV1.cs
@@ -0,0 +1,46 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CSINodeDriver holds information about the specification of one CSI driver installed on a node
+ ///
+ public partial class CSINodeDriverV1
+ {
+ ///
+ /// nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required.
+ ///
+ [YamlMember(Alias = "nodeID")]
+ [JsonProperty("nodeID", NullValueHandling = NullValueHandling.Include)]
+ public string NodeID { get; set; }
+
+ ///
+ /// allocatable represents the volume resources of a node that are available for scheduling. This field is beta.
+ ///
+ [YamlMember(Alias = "allocatable")]
+ [JsonProperty("allocatable", NullValueHandling = NullValueHandling.Ignore)]
+ public VolumeNodeResourcesV1 Allocatable { get; set; }
+
+ ///
+ /// name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.
+ ///
+ [YamlMember(Alias = "topologyKeys")]
+ [JsonProperty("topologyKeys", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List TopologyKeys { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeTopologyKeys() => TopologyKeys.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/CSINodeListV1.cs b/src/KubeClient/Models/generated/CSINodeListV1.cs
new file mode 100644
index 00000000..479c2526
--- /dev/null
+++ b/src/KubeClient/Models/generated/CSINodeListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CSINodeList is a collection of CSINode objects.
+ ///
+ [KubeListItem("CSINode", "storage.k8s.io/v1")]
+ [KubeObject("CSINodeList", "storage.k8s.io/v1")]
+ public partial class CSINodeListV1 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of CSINode
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/CSINodeSpecV1.cs b/src/KubeClient/Models/generated/CSINodeSpecV1.cs
new file mode 100644
index 00000000..0bb18b99
--- /dev/null
+++ b/src/KubeClient/Models/generated/CSINodeSpecV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CSINodeSpec holds information about the specification of all CSI drivers installed on a node
+ ///
+ public partial class CSINodeSpecV1
+ {
+ ///
+ /// drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "drivers")]
+ [JsonProperty("drivers", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Drivers { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/CSINodeV1.cs b/src/KubeClient/Models/generated/CSINodeV1.cs
new file mode 100644
index 00000000..edd9cf5b
--- /dev/null
+++ b/src/KubeClient/Models/generated/CSINodeV1.cs
@@ -0,0 +1,30 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.
+ ///
+ [KubeObject("CSINode", "storage.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/storage.k8s.io/v1/csinodes")]
+ [KubeApi(KubeAction.Create, "apis/storage.k8s.io/v1/csinodes")]
+ [KubeApi(KubeAction.Get, "apis/storage.k8s.io/v1/csinodes/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/storage.k8s.io/v1/csinodes/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/storage.k8s.io/v1/csinodes/{name}")]
+ [KubeApi(KubeAction.Update, "apis/storage.k8s.io/v1/csinodes/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/storage.k8s.io/v1/watch/csinodes")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/storage.k8s.io/v1/csinodes")]
+ [KubeApi(KubeAction.Watch, "apis/storage.k8s.io/v1/watch/csinodes/{name}")]
+ public partial class CSINodeV1 : KubeResourceV1
+ {
+ ///
+ /// spec is the specification of CSINode
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public CSINodeSpecV1 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CSIPersistentVolumeSourceV1.cs b/src/KubeClient/Models/generated/CSIPersistentVolumeSourceV1.cs
index 2f7ff969..b6d78917 100644
--- a/src/KubeClient/Models/generated/CSIPersistentVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/CSIPersistentVolumeSourceV1.cs
@@ -11,49 +11,63 @@ namespace KubeClient.Models
public partial class CSIPersistentVolumeSourceV1
{
///
- /// Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs".
+ /// fsType to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs".
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// VolumeHandle is the unique volume name returned by the CSI volume plugins CreateVolume to refer to the volume on all subsequent calls. Required.
+ /// volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.
///
[YamlMember(Alias = "volumeHandle")]
[JsonProperty("volumeHandle", NullValueHandling = NullValueHandling.Include)]
public string VolumeHandle { get; set; }
///
- /// ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.
+ /// controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.
+ ///
+ [YamlMember(Alias = "controllerExpandSecretRef")]
+ [JsonProperty("controllerExpandSecretRef", NullValueHandling = NullValueHandling.Ignore)]
+ public SecretReferenceV1 ControllerExpandSecretRef { get; set; }
+
+ ///
+ /// controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.
///
[YamlMember(Alias = "controllerPublishSecretRef")]
[JsonProperty("controllerPublishSecretRef", NullValueHandling = NullValueHandling.Ignore)]
public SecretReferenceV1 ControllerPublishSecretRef { get; set; }
///
- /// NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.
+ /// nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed.
+ ///
+ [YamlMember(Alias = "nodeExpandSecretRef")]
+ [JsonProperty("nodeExpandSecretRef", NullValueHandling = NullValueHandling.Ignore)]
+ public SecretReferenceV1 NodeExpandSecretRef { get; set; }
+
+ ///
+ /// nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.
///
[YamlMember(Alias = "nodePublishSecretRef")]
[JsonProperty("nodePublishSecretRef", NullValueHandling = NullValueHandling.Ignore)]
public SecretReferenceV1 NodePublishSecretRef { get; set; }
///
- /// NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.
+ /// nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.
///
[YamlMember(Alias = "nodeStageSecretRef")]
[JsonProperty("nodeStageSecretRef", NullValueHandling = NullValueHandling.Ignore)]
public SecretReferenceV1 NodeStageSecretRef { get; set; }
///
- /// Driver is the name of the driver to use for this volume. Required.
+ /// driver is the name of the driver to use for this volume. Required.
///
[YamlMember(Alias = "driver")]
[JsonProperty("driver", NullValueHandling = NullValueHandling.Include)]
public string Driver { get; set; }
///
- /// Attributes of the volume to publish.
+ /// volumeAttributes of the volume to publish.
///
[YamlMember(Alias = "volumeAttributes")]
[JsonProperty("volumeAttributes", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -65,7 +79,7 @@ public partial class CSIPersistentVolumeSourceV1
public bool ShouldSerializeVolumeAttributes() => VolumeAttributes.Count > 0;
///
- /// Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).
+ /// readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/CSIStorageCapacityListV1.cs b/src/KubeClient/Models/generated/CSIStorageCapacityListV1.cs
new file mode 100644
index 00000000..4d999bdc
--- /dev/null
+++ b/src/KubeClient/Models/generated/CSIStorageCapacityListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CSIStorageCapacityList is a collection of CSIStorageCapacity objects.
+ ///
+ [KubeListItem("CSIStorageCapacity", "storage.k8s.io/v1")]
+ [KubeObject("CSIStorageCapacityList", "storage.k8s.io/v1")]
+ public partial class CSIStorageCapacityListV1 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of CSIStorageCapacity objects.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/CSIStorageCapacityV1.cs b/src/KubeClient/Models/generated/CSIStorageCapacityV1.cs
new file mode 100644
index 00000000..4d1b2ab6
--- /dev/null
+++ b/src/KubeClient/Models/generated/CSIStorageCapacityV1.cs
@@ -0,0 +1,65 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.
+ ///
+ /// For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123"
+ ///
+ /// The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero
+ ///
+ /// The producer of these objects can decide which approach is more suitable.
+ ///
+ /// They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.
+ ///
+ [KubeObject("CSIStorageCapacity", "storage.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/storage.k8s.io/v1/csistoragecapacities")]
+ [KubeApi(KubeAction.WatchList, "apis/storage.k8s.io/v1/watch/csistoragecapacities")]
+ [KubeApi(KubeAction.List, "apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities")]
+ [KubeApi(KubeAction.Create, "apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities")]
+ [KubeApi(KubeAction.Get, "apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}")]
+ [KubeApi(KubeAction.Update, "apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities")]
+ [KubeApi(KubeAction.Watch, "apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities/{name}")]
+ public partial class CSIStorageCapacityV1 : KubeResourceV1
+ {
+ ///
+ /// maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.
+ ///
+ /// This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.
+ ///
+ [YamlMember(Alias = "maximumVolumeSize")]
+ [JsonProperty("maximumVolumeSize", NullValueHandling = NullValueHandling.Ignore)]
+ public string MaximumVolumeSize { get; set; }
+
+ ///
+ /// storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.
+ ///
+ [YamlMember(Alias = "storageClassName")]
+ [JsonProperty("storageClassName", NullValueHandling = NullValueHandling.Include)]
+ public string StorageClassName { get; set; }
+
+ ///
+ /// capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.
+ ///
+ /// The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.
+ ///
+ [YamlMember(Alias = "capacity")]
+ [JsonProperty("capacity", NullValueHandling = NullValueHandling.Ignore)]
+ public string Capacity { get; set; }
+
+ ///
+ /// nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable.
+ ///
+ [YamlMember(Alias = "nodeTopology")]
+ [JsonProperty("nodeTopology", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 NodeTopology { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CSIVolumeSourceV1.cs b/src/KubeClient/Models/generated/CSIVolumeSourceV1.cs
new file mode 100644
index 00000000..e3ceb178
--- /dev/null
+++ b/src/KubeClient/Models/generated/CSIVolumeSourceV1.cs
@@ -0,0 +1,53 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Represents a source location of a volume to mount, managed by an external CSI driver
+ ///
+ public partial class CSIVolumeSourceV1
+ {
+ ///
+ /// fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.
+ ///
+ [YamlMember(Alias = "fsType")]
+ [JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
+ public string FsType { get; set; }
+
+ ///
+ /// nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed.
+ ///
+ [YamlMember(Alias = "nodePublishSecretRef")]
+ [JsonProperty("nodePublishSecretRef", NullValueHandling = NullValueHandling.Ignore)]
+ public LocalObjectReferenceV1 NodePublishSecretRef { get; set; }
+
+ ///
+ /// driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
+ ///
+ [YamlMember(Alias = "driver")]
+ [JsonProperty("driver", NullValueHandling = NullValueHandling.Include)]
+ public string Driver { get; set; }
+
+ ///
+ /// volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.
+ ///
+ [YamlMember(Alias = "volumeAttributes")]
+ [JsonProperty("volumeAttributes", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary VolumeAttributes { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeVolumeAttributes() => VolumeAttributes.Count > 0;
+
+ ///
+ /// readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).
+ ///
+ [YamlMember(Alias = "readOnly")]
+ [JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? ReadOnly { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CephFSPersistentVolumeSourceV1.cs b/src/KubeClient/Models/generated/CephFSPersistentVolumeSourceV1.cs
index 1015ed40..ef42b28f 100644
--- a/src/KubeClient/Models/generated/CephFSPersistentVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/CephFSPersistentVolumeSourceV1.cs
@@ -11,42 +11,42 @@ namespace KubeClient.Models
public partial class CephFSPersistentVolumeSourceV1
{
///
- /// Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
+ /// secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
///
[YamlMember(Alias = "secretFile")]
[JsonProperty("secretFile", NullValueHandling = NullValueHandling.Ignore)]
public string SecretFile { get; set; }
///
- /// Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
+ /// secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Ignore)]
public SecretReferenceV1 SecretRef { get; set; }
///
- /// Optional: Used as the mounted root, rather than the full Ceph tree, default is /
+ /// path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
///
[YamlMember(Alias = "path")]
[JsonProperty("path", NullValueHandling = NullValueHandling.Ignore)]
public string Path { get; set; }
///
- /// Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
+ /// user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
///
[YamlMember(Alias = "user")]
[JsonProperty("user", NullValueHandling = NullValueHandling.Ignore)]
public string User { get; set; }
///
- /// Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
+ /// monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
///
[YamlMember(Alias = "monitors")]
[JsonProperty("monitors", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public List Monitors { get; } = new List();
///
- /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
+ /// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/CephFSVolumeSourceV1.cs b/src/KubeClient/Models/generated/CephFSVolumeSourceV1.cs
index a529837b..ca2dd8ae 100644
--- a/src/KubeClient/Models/generated/CephFSVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/CephFSVolumeSourceV1.cs
@@ -11,42 +11,42 @@ namespace KubeClient.Models
public partial class CephFSVolumeSourceV1
{
///
- /// Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
+ /// secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
///
[YamlMember(Alias = "secretFile")]
[JsonProperty("secretFile", NullValueHandling = NullValueHandling.Ignore)]
public string SecretFile { get; set; }
///
- /// Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
+ /// secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Ignore)]
public LocalObjectReferenceV1 SecretRef { get; set; }
///
- /// Optional: Used as the mounted root, rather than the full Ceph tree, default is /
+ /// path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
///
[YamlMember(Alias = "path")]
[JsonProperty("path", NullValueHandling = NullValueHandling.Ignore)]
public string Path { get; set; }
///
- /// Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
+ /// user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
///
[YamlMember(Alias = "user")]
[JsonProperty("user", NullValueHandling = NullValueHandling.Ignore)]
public string User { get; set; }
///
- /// Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
+ /// monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
///
[YamlMember(Alias = "monitors")]
[JsonProperty("monitors", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public List Monitors { get; } = new List();
///
- /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
+ /// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/CertificateSigningRequestConditionV1.cs b/src/KubeClient/Models/generated/CertificateSigningRequestConditionV1.cs
new file mode 100644
index 00000000..e56e36a4
--- /dev/null
+++ b/src/KubeClient/Models/generated/CertificateSigningRequestConditionV1.cs
@@ -0,0 +1,65 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object
+ ///
+ public partial class CertificateSigningRequestConditionV1
+ {
+ ///
+ /// lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.
+ ///
+ [YamlMember(Alias = "lastTransitionTime")]
+ [JsonProperty("lastTransitionTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastTransitionTime { get; set; }
+
+ ///
+ /// lastUpdateTime is the time of the last update to this condition
+ ///
+ [YamlMember(Alias = "lastUpdateTime")]
+ [JsonProperty("lastUpdateTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastUpdateTime { get; set; }
+
+ ///
+ /// message contains a human readable message with details about the request state
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
+ public string Message { get; set; }
+
+ ///
+ /// type of the condition. Known conditions are "Approved", "Denied", and "Failed".
+ ///
+ /// An "Approved" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.
+ ///
+ /// A "Denied" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.
+ ///
+ /// A "Failed" condition is added via the /status subresource, indicating the signer failed to issue the certificate.
+ ///
+ /// Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.
+ ///
+ /// Only one condition of a given type is allowed.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// reason indicates a brief reason for the request state
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reason { get; set; }
+
+ ///
+ /// status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be "False" or "Unknown".
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Include)]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CertificateSigningRequestListV1.cs b/src/KubeClient/Models/generated/CertificateSigningRequestListV1.cs
new file mode 100644
index 00000000..b25e6cf7
--- /dev/null
+++ b/src/KubeClient/Models/generated/CertificateSigningRequestListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CertificateSigningRequestList is a collection of CertificateSigningRequest objects
+ ///
+ [KubeListItem("CertificateSigningRequest", "certificates.k8s.io/v1")]
+ [KubeObject("CertificateSigningRequestList", "certificates.k8s.io/v1")]
+ public partial class CertificateSigningRequestListV1 : KubeResourceListV1
+ {
+ ///
+ /// items is a collection of CertificateSigningRequest objects
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/CertificateSigningRequestSpecV1.cs b/src/KubeClient/Models/generated/CertificateSigningRequestSpecV1.cs
new file mode 100644
index 00000000..bb2b5b80
--- /dev/null
+++ b/src/KubeClient/Models/generated/CertificateSigningRequestSpecV1.cs
@@ -0,0 +1,128 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CertificateSigningRequestSpec contains the certificate request.
+ ///
+ public partial class CertificateSigningRequestSpecV1
+ {
+ ///
+ /// extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.
+ ///
+ [YamlMember(Alias = "extra")]
+ [JsonProperty("extra", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary> Extra { get; } = new Dictionary>();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeExtra() => Extra.Count > 0;
+
+ ///
+ /// uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.
+ ///
+ [YamlMember(Alias = "uid")]
+ [JsonProperty("uid", NullValueHandling = NullValueHandling.Ignore)]
+ public string Uid { get; set; }
+
+ ///
+ /// signerName indicates the requested signer, and is a qualified name.
+ ///
+ /// List/watch requests for CertificateSigningRequests can filter on this field using a "spec.signerName=NAME" fieldSelector.
+ ///
+ /// Well-known Kubernetes signers are:
+ /// 1. "kubernetes.io/kube-apiserver-client": issues client certificates that can be used to authenticate to kube-apiserver.
+ /// Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the "csrsigning" controller in kube-controller-manager.
+ /// 2. "kubernetes.io/kube-apiserver-client-kubelet": issues client certificates that kubelets use to authenticate to kube-apiserver.
+ /// Requests for this signer can be auto-approved by the "csrapproving" controller in kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager.
+ /// 3. "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.
+ /// Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager.
+ ///
+ /// More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers
+ ///
+ /// Custom signerNames can also be specified. The signer defines:
+ /// 1. Trust distribution: how trust (CA bundles) are distributed.
+ /// 2. Permitted subjects: and behavior when a disallowed subject is requested.
+ /// 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.
+ /// 4. Required, permitted, or forbidden key usages / extended key usages.
+ /// 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.
+ /// 6. Whether or not requests for CA certificates are allowed.
+ ///
+ [YamlMember(Alias = "signerName")]
+ [JsonProperty("signerName", NullValueHandling = NullValueHandling.Include)]
+ public string SignerName { get; set; }
+
+ ///
+ /// username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.
+ ///
+ [YamlMember(Alias = "username")]
+ [JsonProperty("username", NullValueHandling = NullValueHandling.Ignore)]
+ public string Username { get; set; }
+
+ ///
+ /// expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.
+ ///
+ /// The v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.
+ ///
+ /// Certificate signers may not honor this field for various reasons:
+ ///
+ /// 1. Old signer that is unaware of the field (such as the in-tree
+ /// implementations prior to v1.22)
+ /// 2. Signer whose configured maximum is shorter than the requested duration
+ /// 3. Signer whose configured minimum is longer than the requested duration
+ ///
+ /// The minimum valid value for expirationSeconds is 600, i.e. 10 minutes.
+ ///
+ [YamlMember(Alias = "expirationSeconds")]
+ [JsonProperty("expirationSeconds", NullValueHandling = NullValueHandling.Ignore)]
+ public int? ExpirationSeconds { get; set; }
+
+ ///
+ /// groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.
+ ///
+ [YamlMember(Alias = "groups")]
+ [JsonProperty("groups", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Groups { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeGroups() => Groups.Count > 0;
+
+ ///
+ /// usages specifies a set of key usages requested in the issued certificate.
+ ///
+ /// Requests for TLS client certificates typically request: "digital signature", "key encipherment", "client auth".
+ ///
+ /// Requests for TLS serving certificates typically request: "key encipherment", "digital signature", "server auth".
+ ///
+ /// Valid values are:
+ /// "signing", "digital signature", "content commitment",
+ /// "key encipherment", "key agreement", "data encipherment",
+ /// "cert sign", "crl sign", "encipher only", "decipher only", "any",
+ /// "server auth", "client auth",
+ /// "code signing", "email protection", "s/mime",
+ /// "ipsec end system", "ipsec tunnel", "ipsec user",
+ /// "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc"
+ ///
+ [YamlMember(Alias = "usages")]
+ [JsonProperty("usages", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Usages { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeUsages() => Usages.Count > 0;
+
+ ///
+ /// request contains an x509 certificate signing request encoded in a "CERTIFICATE REQUEST" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded.
+ ///
+ [YamlMember(Alias = "request")]
+ [JsonProperty("request", NullValueHandling = NullValueHandling.Include)]
+ public string Request { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CertificateSigningRequestStatusV1.cs b/src/KubeClient/Models/generated/CertificateSigningRequestStatusV1.cs
new file mode 100644
index 00000000..01e561dc
--- /dev/null
+++ b/src/KubeClient/Models/generated/CertificateSigningRequestStatusV1.cs
@@ -0,0 +1,53 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.
+ ///
+ public partial class CertificateSigningRequestStatusV1
+ {
+ ///
+ /// certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable.
+ ///
+ /// If the certificate signing request is denied, a condition of type "Denied" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type "Failed" is added and this field remains empty.
+ ///
+ /// Validation requirements:
+ /// 1. certificate must contain one or more PEM blocks.
+ /// 2. All PEM blocks must have the "CERTIFICATE" label, contain no headers, and the encoded data
+ /// must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.
+ /// 3. Non-PEM content may appear before or after the "CERTIFICATE" PEM blocks and is unvalidated,
+ /// to allow for explanatory text as described in section 5.2 of RFC7468.
+ ///
+ /// If more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.
+ ///
+ /// The certificate is encoded in PEM format.
+ ///
+ /// When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:
+ ///
+ /// base64(
+ /// -----BEGIN CERTIFICATE-----
+ /// ...
+ /// -----END CERTIFICATE-----
+ /// )
+ ///
+ [YamlMember(Alias = "certificate")]
+ [JsonProperty("certificate", NullValueHandling = NullValueHandling.Ignore)]
+ public string Certificate { get; set; }
+
+ ///
+ /// conditions applied to the request. Known conditions are "Approved", "Denied", and "Failed".
+ ///
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/CertificateSigningRequestV1.cs b/src/KubeClient/Models/generated/CertificateSigningRequestV1.cs
new file mode 100644
index 00000000..ce58c5a4
--- /dev/null
+++ b/src/KubeClient/Models/generated/CertificateSigningRequestV1.cs
@@ -0,0 +1,49 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.
+ ///
+ /// Kubelets use this API to obtain:
+ /// 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName).
+ /// 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName).
+ ///
+ /// This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers.
+ ///
+ [KubeObject("CertificateSigningRequest", "certificates.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/certificates.k8s.io/v1/certificatesigningrequests")]
+ [KubeApi(KubeAction.Create, "apis/certificates.k8s.io/v1/certificatesigningrequests")]
+ [KubeApi(KubeAction.Get, "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}")]
+ [KubeApi(KubeAction.Update, "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/certificates.k8s.io/v1/watch/certificatesigningrequests")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/certificates.k8s.io/v1/certificatesigningrequests")]
+ [KubeApi(KubeAction.Get, "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}")]
+ [KubeApi(KubeAction.Get, "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval")]
+ [KubeApi(KubeAction.Patch, "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status")]
+ [KubeApi(KubeAction.Patch, "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval")]
+ [KubeApi(KubeAction.Update, "apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval")]
+ public partial class CertificateSigningRequestV1 : KubeResourceV1
+ {
+ ///
+ /// spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public CertificateSigningRequestSpecV1 Spec { get; set; }
+
+ ///
+ /// status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public CertificateSigningRequestStatusV1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CinderPersistentVolumeSourceV1.cs b/src/KubeClient/Models/generated/CinderPersistentVolumeSourceV1.cs
index 9127f335..eb3389c3 100644
--- a/src/KubeClient/Models/generated/CinderPersistentVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/CinderPersistentVolumeSourceV1.cs
@@ -11,28 +11,28 @@ namespace KubeClient.Models
public partial class CinderPersistentVolumeSourceV1
{
///
- /// volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
+ /// volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
///
[YamlMember(Alias = "volumeID")]
[JsonProperty("volumeID", NullValueHandling = NullValueHandling.Include)]
public string VolumeID { get; set; }
///
- /// Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
+ /// fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// Optional: points to a secret object containing parameters used to connect to OpenStack.
+ /// secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Ignore)]
public SecretReferenceV1 SecretRef { get; set; }
///
- /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
+ /// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/CinderVolumeSourceV1.cs b/src/KubeClient/Models/generated/CinderVolumeSourceV1.cs
index e402a698..69991932 100644
--- a/src/KubeClient/Models/generated/CinderVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/CinderVolumeSourceV1.cs
@@ -11,28 +11,28 @@ namespace KubeClient.Models
public partial class CinderVolumeSourceV1
{
///
- /// volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
+ /// volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
///
[YamlMember(Alias = "volumeID")]
[JsonProperty("volumeID", NullValueHandling = NullValueHandling.Include)]
public string VolumeID { get; set; }
///
- /// Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
+ /// fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// Optional: points to a secret object containing parameters used to connect to OpenStack.
+ /// secretRef is optional: points to a secret object containing parameters used to connect to OpenStack.
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Ignore)]
public LocalObjectReferenceV1 SecretRef { get; set; }
///
- /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
+ /// readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ClusterRoleBindingV1.cs b/src/KubeClient/Models/generated/ClusterRoleBindingV1.cs
index 85a4571a..fe45b8dd 100644
--- a/src/KubeClient/Models/generated/ClusterRoleBindingV1.cs
+++ b/src/KubeClient/Models/generated/ClusterRoleBindingV1.cs
@@ -21,7 +21,7 @@ namespace KubeClient.Models
public partial class ClusterRoleBindingV1 : KubeResourceV1
{
///
- /// RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.
+ /// RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable.
///
[YamlMember(Alias = "roleRef")]
[JsonProperty("roleRef", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/ClusterRoleV1.cs b/src/KubeClient/Models/generated/ClusterRoleV1.cs
index d3cdc27e..e1bde9c3 100644
--- a/src/KubeClient/Models/generated/ClusterRoleV1.cs
+++ b/src/KubeClient/Models/generated/ClusterRoleV1.cs
@@ -33,5 +33,10 @@ public partial class ClusterRoleV1 : KubeResourceV1
[YamlMember(Alias = "rules")]
[JsonProperty("rules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public List Rules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRules() => Rules.Count > 0;
}
}
diff --git a/src/KubeClient/Models/generated/ClusterTrustBundleListV1Alpha1.cs b/src/KubeClient/Models/generated/ClusterTrustBundleListV1Alpha1.cs
new file mode 100644
index 00000000..c6bd6bd7
--- /dev/null
+++ b/src/KubeClient/Models/generated/ClusterTrustBundleListV1Alpha1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ClusterTrustBundleList is a collection of ClusterTrustBundle objects
+ ///
+ [KubeListItem("ClusterTrustBundle", "certificates.k8s.io/v1alpha1")]
+ [KubeObject("ClusterTrustBundleList", "certificates.k8s.io/v1alpha1")]
+ public partial class ClusterTrustBundleListV1Alpha1 : KubeResourceListV1
+ {
+ ///
+ /// items is a collection of ClusterTrustBundle objects
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ClusterTrustBundleProjectionV1.cs b/src/KubeClient/Models/generated/ClusterTrustBundleProjectionV1.cs
new file mode 100644
index 00000000..f02a205d
--- /dev/null
+++ b/src/KubeClient/Models/generated/ClusterTrustBundleProjectionV1.cs
@@ -0,0 +1,48 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.
+ ///
+ public partial class ClusterTrustBundleProjectionV1
+ {
+ ///
+ /// Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
+ public string Name { get; set; }
+
+ ///
+ /// Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.
+ ///
+ [YamlMember(Alias = "signerName")]
+ [JsonProperty("signerName", NullValueHandling = NullValueHandling.Ignore)]
+ public string SignerName { get; set; }
+
+ ///
+ /// Relative path from the volume root to write the bundle.
+ ///
+ [YamlMember(Alias = "path")]
+ [JsonProperty("path", NullValueHandling = NullValueHandling.Include)]
+ public string Path { get; set; }
+
+ ///
+ /// If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.
+ ///
+ [YamlMember(Alias = "optional")]
+ [JsonProperty("optional", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Optional { get; set; }
+
+ ///
+ /// Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as "match nothing". If set but empty, interpreted as "match everything".
+ ///
+ [YamlMember(Alias = "labelSelector")]
+ [JsonProperty("labelSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 LabelSelector { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ClusterTrustBundleSpecV1Alpha1.cs b/src/KubeClient/Models/generated/ClusterTrustBundleSpecV1Alpha1.cs
new file mode 100644
index 00000000..25896fbe
--- /dev/null
+++ b/src/KubeClient/Models/generated/ClusterTrustBundleSpecV1Alpha1.cs
@@ -0,0 +1,39 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ClusterTrustBundleSpec contains the signer and trust anchors.
+ ///
+ public partial class ClusterTrustBundleSpecV1Alpha1
+ {
+ ///
+ /// signerName indicates the associated signer, if any.
+ ///
+ /// In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest.
+ ///
+ /// If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.
+ ///
+ /// If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.
+ ///
+ /// List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.
+ ///
+ [YamlMember(Alias = "signerName")]
+ [JsonProperty("signerName", NullValueHandling = NullValueHandling.Ignore)]
+ public string SignerName { get; set; }
+
+ ///
+ /// trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.
+ ///
+ /// The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.
+ ///
+ /// Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.
+ ///
+ [YamlMember(Alias = "trustBundle")]
+ [JsonProperty("trustBundle", NullValueHandling = NullValueHandling.Include)]
+ public string TrustBundle { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ClusterTrustBundleV1Alpha1.cs b/src/KubeClient/Models/generated/ClusterTrustBundleV1Alpha1.cs
new file mode 100644
index 00000000..a2e9aee7
--- /dev/null
+++ b/src/KubeClient/Models/generated/ClusterTrustBundleV1Alpha1.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).
+ ///
+ /// ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.
+ ///
+ /// It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.
+ ///
+ [KubeObject("ClusterTrustBundle", "certificates.k8s.io/v1alpha1")]
+ [KubeApi(KubeAction.List, "apis/certificates.k8s.io/v1alpha1/clustertrustbundles")]
+ [KubeApi(KubeAction.Create, "apis/certificates.k8s.io/v1alpha1/clustertrustbundles")]
+ [KubeApi(KubeAction.Get, "apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}")]
+ [KubeApi(KubeAction.Update, "apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/certificates.k8s.io/v1alpha1/clustertrustbundles")]
+ [KubeApi(KubeAction.Watch, "apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}")]
+ public partial class ClusterTrustBundleV1Alpha1 : KubeResourceV1
+ {
+ ///
+ /// spec contains the signer (if any) and trust anchors.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public ClusterTrustBundleSpecV1Alpha1 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ComponentStatusListV1.cs b/src/KubeClient/Models/generated/ComponentStatusListV1.cs
index 95e01026..8c56d927 100644
--- a/src/KubeClient/Models/generated/ComponentStatusListV1.cs
+++ b/src/KubeClient/Models/generated/ComponentStatusListV1.cs
@@ -6,7 +6,7 @@
namespace KubeClient.Models
{
///
- /// Status of all the conditions for the component as a list of ComponentStatus objects.
+ /// Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+
///
[KubeListItem("ComponentStatus", "v1")]
[KubeObject("ComponentStatusList", "v1")]
diff --git a/src/KubeClient/Models/generated/ComponentStatusV1.cs b/src/KubeClient/Models/generated/ComponentStatusV1.cs
index a09259f2..3f42c116 100644
--- a/src/KubeClient/Models/generated/ComponentStatusV1.cs
+++ b/src/KubeClient/Models/generated/ComponentStatusV1.cs
@@ -6,7 +6,7 @@
namespace KubeClient.Models
{
///
- /// ComponentStatus (and ComponentStatusList) holds the cluster validation info.
+ /// ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+
///
[KubeObject("ComponentStatus", "v1")]
[KubeApi(KubeAction.List, "api/v1/componentstatuses")]
diff --git a/src/KubeClient/Models/generated/ConditionV1.cs b/src/KubeClient/Models/generated/ConditionV1.cs
new file mode 100644
index 00000000..f9976078
--- /dev/null
+++ b/src/KubeClient/Models/generated/ConditionV1.cs
@@ -0,0 +1,55 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Condition contains details for one aspect of the current state of this API Resource.
+ ///
+ public partial class ConditionV1
+ {
+ ///
+ /// lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
+ ///
+ [YamlMember(Alias = "lastTransitionTime")]
+ [JsonProperty("lastTransitionTime", NullValueHandling = NullValueHandling.Include)]
+ public DateTime? LastTransitionTime { get; set; }
+
+ ///
+ /// message is a human readable message indicating details about the transition. This may be an empty string.
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Include)]
+ public string Message { get; set; }
+
+ ///
+ /// type of condition in CamelCase or in foo.example.com/CamelCase.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
+ ///
+ [YamlMember(Alias = "observedGeneration")]
+ [JsonProperty("observedGeneration", NullValueHandling = NullValueHandling.Ignore)]
+ public long? ObservedGeneration { get; set; }
+
+ ///
+ /// reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Include)]
+ public string Reason { get; set; }
+
+ ///
+ /// status of the condition, one of True, False, Unknown.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Include)]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ConfigMapEnvSourceV1.cs b/src/KubeClient/Models/generated/ConfigMapEnvSourceV1.cs
index 401cc55d..83f10119 100644
--- a/src/KubeClient/Models/generated/ConfigMapEnvSourceV1.cs
+++ b/src/KubeClient/Models/generated/ConfigMapEnvSourceV1.cs
@@ -13,7 +13,7 @@ namespace KubeClient.Models
public partial class ConfigMapEnvSourceV1
{
///
- /// Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ /// Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ConfigMapKeySelectorV1.cs b/src/KubeClient/Models/generated/ConfigMapKeySelectorV1.cs
index 819fefd5..38877ea6 100644
--- a/src/KubeClient/Models/generated/ConfigMapKeySelectorV1.cs
+++ b/src/KubeClient/Models/generated/ConfigMapKeySelectorV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class ConfigMapKeySelectorV1
{
///
- /// Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ /// Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
public string Name { get; set; }
///
- /// Specify whether the ConfigMap or it's key must be defined
+ /// Specify whether the ConfigMap or its key must be defined
///
[YamlMember(Alias = "optional")]
[JsonProperty("optional", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ConfigMapNodeConfigSourceV1.cs b/src/KubeClient/Models/generated/ConfigMapNodeConfigSourceV1.cs
index 21fabe5b..26e14c5f 100644
--- a/src/KubeClient/Models/generated/ConfigMapNodeConfigSourceV1.cs
+++ b/src/KubeClient/Models/generated/ConfigMapNodeConfigSourceV1.cs
@@ -6,7 +6,7 @@
namespace KubeClient.Models
{
///
- /// ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node.
+ /// ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
///
public partial class ConfigMapNodeConfigSourceV1
{
diff --git a/src/KubeClient/Models/generated/ConfigMapProjectionV1.cs b/src/KubeClient/Models/generated/ConfigMapProjectionV1.cs
index 09f93ac6..57af938b 100644
--- a/src/KubeClient/Models/generated/ConfigMapProjectionV1.cs
+++ b/src/KubeClient/Models/generated/ConfigMapProjectionV1.cs
@@ -14,21 +14,21 @@ namespace KubeClient.Models
public partial class ConfigMapProjectionV1
{
///
- /// Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ /// Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
public string Name { get; set; }
///
- /// Specify whether the ConfigMap or it's keys must be defined
+ /// optional specify whether the ConfigMap or its keys must be defined
///
[YamlMember(Alias = "optional")]
[JsonProperty("optional", NullValueHandling = NullValueHandling.Ignore)]
public bool? Optional { get; set; }
///
- /// If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
+ /// items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
///
[YamlMember(Alias = "items")]
[JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
diff --git a/src/KubeClient/Models/generated/ConfigMapV1.cs b/src/KubeClient/Models/generated/ConfigMapV1.cs
index 7ff1a2a1..6c491868 100644
--- a/src/KubeClient/Models/generated/ConfigMapV1.cs
+++ b/src/KubeClient/Models/generated/ConfigMapV1.cs
@@ -1,5 +1,5 @@
using Newtonsoft.Json;
-using Newtonsoft.Json.Serialization;
+using System;
using System.Collections.Generic;
using YamlDotNet.Serialization;
@@ -45,5 +45,12 @@ public partial class ConfigMapV1 : KubeResourceV1
/// Determine whether the property should be serialised.
///
public bool ShouldSerializeData() => Data.Count > 0;
+
+ ///
+ /// Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.
+ ///
+ [YamlMember(Alias = "immutable")]
+ [JsonProperty("immutable", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Immutable { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/ConfigMapVolumeSourceV1.cs b/src/KubeClient/Models/generated/ConfigMapVolumeSourceV1.cs
index 95184f3f..f083c7ab 100644
--- a/src/KubeClient/Models/generated/ConfigMapVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/ConfigMapVolumeSourceV1.cs
@@ -14,28 +14,28 @@ namespace KubeClient.Models
public partial class ConfigMapVolumeSourceV1
{
///
- /// Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
+ /// defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
///
[YamlMember(Alias = "defaultMode")]
[JsonProperty("defaultMode", NullValueHandling = NullValueHandling.Ignore)]
public int? DefaultMode { get; set; }
///
- /// Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ /// Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
public string Name { get; set; }
///
- /// Specify whether the ConfigMap or it's keys must be defined
+ /// optional specify whether the ConfigMap or its keys must be defined
///
[YamlMember(Alias = "optional")]
[JsonProperty("optional", NullValueHandling = NullValueHandling.Ignore)]
public bool? Optional { get; set; }
///
- /// If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
+ /// items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
///
[YamlMember(Alias = "items")]
[JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
diff --git a/src/KubeClient/Models/generated/ContainerImageV1.cs b/src/KubeClient/Models/generated/ContainerImageV1.cs
index fbad11b8..3618df70 100644
--- a/src/KubeClient/Models/generated/ContainerImageV1.cs
+++ b/src/KubeClient/Models/generated/ContainerImageV1.cs
@@ -11,12 +11,17 @@ namespace KubeClient.Models
public partial class ContainerImageV1
{
///
- /// Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
+ /// Names by which this image is known. e.g. ["kubernetes.example/hyperkube:v1.0.7", "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"]
///
[YamlMember(Alias = "names")]
[JsonProperty("names", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public List Names { get; } = new List();
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeNames() => Names.Count > 0;
+
///
/// The size of the image in bytes.
///
diff --git a/src/KubeClient/Models/generated/ContainerPortV1.cs b/src/KubeClient/Models/generated/ContainerPortV1.cs
index 9900c6c5..7edf5047 100644
--- a/src/KubeClient/Models/generated/ContainerPortV1.cs
+++ b/src/KubeClient/Models/generated/ContainerPortV1.cs
@@ -25,7 +25,7 @@ public partial class ContainerPortV1
public string Name { get; set; }
///
- /// Protocol for port. Must be UDP or TCP. Defaults to "TCP".
+ /// Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".
///
[YamlMember(Alias = "protocol")]
[JsonProperty("protocol", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ContainerResizePolicyV1.cs b/src/KubeClient/Models/generated/ContainerResizePolicyV1.cs
new file mode 100644
index 00000000..c07ce895
--- /dev/null
+++ b/src/KubeClient/Models/generated/ContainerResizePolicyV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ContainerResizePolicy represents resource resize policy for the container.
+ ///
+ public partial class ContainerResizePolicyV1
+ {
+ ///
+ /// Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.
+ ///
+ [YamlMember(Alias = "resourceName")]
+ [JsonProperty("resourceName", NullValueHandling = NullValueHandling.Include)]
+ public string ResourceName { get; set; }
+
+ ///
+ /// Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.
+ ///
+ [YamlMember(Alias = "restartPolicy")]
+ [JsonProperty("restartPolicy", NullValueHandling = NullValueHandling.Include)]
+ public string RestartPolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ContainerResourceMetricSourceV2.cs b/src/KubeClient/Models/generated/ContainerResourceMetricSourceV2.cs
new file mode 100644
index 00000000..2b8b696d
--- /dev/null
+++ b/src/KubeClient/Models/generated/ContainerResourceMetricSourceV2.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.
+ ///
+ public partial class ContainerResourceMetricSourceV2
+ {
+ ///
+ /// name is the name of the resource in question.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// container is the name of the container in the pods of the scaling target
+ ///
+ [YamlMember(Alias = "container")]
+ [JsonProperty("container", NullValueHandling = NullValueHandling.Include)]
+ public string Container { get; set; }
+
+ ///
+ /// target specifies the target value for the given metric
+ ///
+ [YamlMember(Alias = "target")]
+ [JsonProperty("target", NullValueHandling = NullValueHandling.Include)]
+ public MetricTargetV2 Target { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ContainerResourceMetricStatusV2.cs b/src/KubeClient/Models/generated/ContainerResourceMetricStatusV2.cs
new file mode 100644
index 00000000..34a5b46f
--- /dev/null
+++ b/src/KubeClient/Models/generated/ContainerResourceMetricStatusV2.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
+ ///
+ public partial class ContainerResourceMetricStatusV2
+ {
+ ///
+ /// name is the name of the resource in question.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// container is the name of the container in the pods of the scaling target
+ ///
+ [YamlMember(Alias = "container")]
+ [JsonProperty("container", NullValueHandling = NullValueHandling.Include)]
+ public string Container { get; set; }
+
+ ///
+ /// current contains the current value for the given metric
+ ///
+ [YamlMember(Alias = "current")]
+ [JsonProperty("current", NullValueHandling = NullValueHandling.Include)]
+ public MetricValueStatusV2 Current { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ContainerStateTerminatedV1.cs b/src/KubeClient/Models/generated/ContainerStateTerminatedV1.cs
index 7134bac4..c4f9c185 100644
--- a/src/KubeClient/Models/generated/ContainerStateTerminatedV1.cs
+++ b/src/KubeClient/Models/generated/ContainerStateTerminatedV1.cs
@@ -11,7 +11,7 @@ namespace KubeClient.Models
public partial class ContainerStateTerminatedV1
{
///
- /// Container's ID in the format 'docker://<container_id>'
+ /// Container's ID in the format '<type>://<container_id>'
///
[YamlMember(Alias = "containerID")]
[JsonProperty("containerID", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ContainerStatusV1.cs b/src/KubeClient/Models/generated/ContainerStatusV1.cs
index 728ef3cb..3557acd4 100644
--- a/src/KubeClient/Models/generated/ContainerStatusV1.cs
+++ b/src/KubeClient/Models/generated/ContainerStatusV1.cs
@@ -11,56 +11,117 @@ namespace KubeClient.Models
public partial class ContainerStatusV1
{
///
- /// Container's ID in the format 'docker://<container_id>'.
+ /// ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example "containerd").
///
[YamlMember(Alias = "containerID")]
[JsonProperty("containerID", NullValueHandling = NullValueHandling.Ignore)]
public string ContainerID { get; set; }
///
- /// ImageID of the container's image.
+ /// ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.
///
[YamlMember(Alias = "imageID")]
[JsonProperty("imageID", NullValueHandling = NullValueHandling.Include)]
public string ImageID { get; set; }
///
- /// The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images
+ /// Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.
+ ///
+ [YamlMember(Alias = "started")]
+ [JsonProperty("started", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Started { get; set; }
+
+ ///
+ /// Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.
///
[YamlMember(Alias = "image")]
[JsonProperty("image", NullValueHandling = NullValueHandling.Include)]
public string Image { get; set; }
///
- /// Details about the container's last termination condition.
+ /// LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0.
///
[YamlMember(Alias = "lastState")]
[JsonProperty("lastState", NullValueHandling = NullValueHandling.Ignore)]
public ContainerStateV1 LastState { get; set; }
///
- /// This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.
+ /// Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
public string Name { get; set; }
///
- /// Details about the container's current condition.
+ /// State holds details about the container's current condition.
///
[YamlMember(Alias = "state")]
[JsonProperty("state", NullValueHandling = NullValueHandling.Ignore)]
public ContainerStateV1 State { get; set; }
///
- /// The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC.
+ /// User represents user identity information initially attached to the first process of the container
+ ///
+ [YamlMember(Alias = "user")]
+ [JsonProperty("user", NullValueHandling = NullValueHandling.Ignore)]
+ public ContainerUserV1 User { get; set; }
+
+ ///
+ /// AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.
+ ///
+ [YamlMember(Alias = "allocatedResources")]
+ [JsonProperty("allocatedResources", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary AllocatedResources { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAllocatedResources() => AllocatedResources.Count > 0;
+
+ ///
+ /// AllocatedResourcesStatus represents the status of various resources allocated for this Pod.
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "allocatedResourcesStatus")]
+ [JsonProperty("allocatedResourcesStatus", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List AllocatedResourcesStatus { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAllocatedResourcesStatus() => AllocatedResourcesStatus.Count > 0;
+
+ ///
+ /// Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized.
+ ///
+ [YamlMember(Alias = "resources")]
+ [JsonProperty("resources", NullValueHandling = NullValueHandling.Ignore)]
+ public ResourceRequirementsV1 Resources { get; set; }
+
+ ///
+ /// Status of volume mounts.
+ ///
+ [MergeStrategy(Key = "mountPath")]
+ [YamlMember(Alias = "volumeMounts")]
+ [JsonProperty("volumeMounts", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List VolumeMounts { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeVolumeMounts() => VolumeMounts.Count > 0;
+
+ ///
+ /// RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.
///
[YamlMember(Alias = "restartCount")]
[JsonProperty("restartCount", NullValueHandling = NullValueHandling.Include)]
public int RestartCount { get; set; }
///
- /// Specifies whether the container has passed its readiness probe.
+ /// Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).
+ ///
+ /// The value is typically used to determine whether a container is ready to accept traffic.
///
[YamlMember(Alias = "ready")]
[JsonProperty("ready", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/ContainerUserV1.cs b/src/KubeClient/Models/generated/ContainerUserV1.cs
new file mode 100644
index 00000000..abdccca3
--- /dev/null
+++ b/src/KubeClient/Models/generated/ContainerUserV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ContainerUser represents user identity information
+ ///
+ public partial class ContainerUserV1
+ {
+ ///
+ /// Linux holds user identity information initially attached to the first process of the containers in Linux. Note that the actual running identity can be changed if the process has enough privilege to do so.
+ ///
+ [YamlMember(Alias = "linux")]
+ [JsonProperty("linux", NullValueHandling = NullValueHandling.Ignore)]
+ public LinuxContainerUserV1 Linux { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ContainerV1.cs b/src/KubeClient/Models/generated/ContainerV1.cs
index 6c55d5dd..1f378965 100644
--- a/src/KubeClient/Models/generated/ContainerV1.cs
+++ b/src/KubeClient/Models/generated/ContainerV1.cs
@@ -11,7 +11,7 @@ namespace KubeClient.Models
public partial class ContainerV1
{
///
- /// Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
+ /// Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
///
[YamlMember(Alias = "command")]
[JsonProperty("command", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -23,7 +23,7 @@ public partial class ContainerV1
public bool ShouldSerializeCommand() => Command.Count > 0;
///
- /// Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.
+ /// Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.
///
[YamlMember(Alias = "image")]
[JsonProperty("image", NullValueHandling = NullValueHandling.Ignore)]
@@ -57,6 +57,13 @@ public partial class ContainerV1
[JsonProperty("readinessProbe", NullValueHandling = NullValueHandling.Ignore)]
public ProbeV1 ReadinessProbe { get; set; }
+ ///
+ /// StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+ ///
+ [YamlMember(Alias = "startupProbe")]
+ [JsonProperty("startupProbe", NullValueHandling = NullValueHandling.Ignore)]
+ public ProbeV1 StartupProbe { get; set; }
+
///
/// Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false
///
@@ -98,7 +105,7 @@ public partial class ContainerV1
public string WorkingDir { get; set; }
///
- /// Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
+ /// Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
///
[YamlMember(Alias = "args")]
[JsonProperty("args", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -110,7 +117,7 @@ public partial class ContainerV1
public bool ShouldSerializeArgs() => Args.Count > 0;
///
- /// List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated.
+ /// List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.
///
[YamlMember(Alias = "ports")]
[MergeStrategy(Key = "containerPort")]
@@ -123,14 +130,14 @@ public partial class ContainerV1
public bool ShouldSerializePorts() => Ports.Count > 0;
///
- /// Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
+ /// Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
///
[YamlMember(Alias = "resources")]
[JsonProperty("resources", NullValueHandling = NullValueHandling.Ignore)]
public ResourceRequirementsV1 Resources { get; set; }
///
- /// volumeDevices is the list of block devices to be used by the container. This is an alpha feature and may change in the future.
+ /// volumeDevices is the list of block devices to be used by the container.
///
[MergeStrategy(Key = "devicePath")]
[YamlMember(Alias = "volumeDevices")]
@@ -156,7 +163,7 @@ public partial class ContainerV1
public bool ShouldSerializeVolumeMounts() => VolumeMounts.Count > 0;
///
- /// Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
+ /// SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
///
[YamlMember(Alias = "securityContext")]
[JsonProperty("securityContext", NullValueHandling = NullValueHandling.Ignore)]
@@ -182,6 +189,25 @@ public partial class ContainerV1
[JsonProperty("imagePullPolicy", NullValueHandling = NullValueHandling.Ignore)]
public string ImagePullPolicy { get; set; }
+ ///
+ /// Resources resize policy for the container.
+ ///
+ [YamlMember(Alias = "resizePolicy")]
+ [JsonProperty("resizePolicy", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ResizePolicy { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResizePolicy() => ResizePolicy.Count > 0;
+
+ ///
+ /// RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.
+ ///
+ [YamlMember(Alias = "restartPolicy")]
+ [JsonProperty("restartPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string RestartPolicy { get; set; }
+
///
/// Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
///
diff --git a/src/KubeClient/Models/generated/CronJobListV1.cs b/src/KubeClient/Models/generated/CronJobListV1.cs
new file mode 100644
index 00000000..53dc2bdf
--- /dev/null
+++ b/src/KubeClient/Models/generated/CronJobListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CronJobList is a collection of cron jobs.
+ ///
+ [KubeListItem("CronJob", "batch/v1")]
+ [KubeObject("CronJobList", "batch/v1")]
+ public partial class CronJobListV1 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of CronJobs.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/CronJobSpecV1.cs b/src/KubeClient/Models/generated/CronJobSpecV1.cs
new file mode 100644
index 00000000..bdf888dd
--- /dev/null
+++ b/src/KubeClient/Models/generated/CronJobSpecV1.cs
@@ -0,0 +1,71 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CronJobSpec describes how the job execution will look like and when it will actually run.
+ ///
+ public partial class CronJobSpecV1
+ {
+ ///
+ /// This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.
+ ///
+ [YamlMember(Alias = "suspend")]
+ [JsonProperty("suspend", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Suspend { get; set; }
+
+ ///
+ /// Specifies the job that will be created when executing a CronJob.
+ ///
+ [YamlMember(Alias = "jobTemplate")]
+ [JsonProperty("jobTemplate", NullValueHandling = NullValueHandling.Include)]
+ public JobTemplateSpecV1 JobTemplate { get; set; }
+
+ ///
+ /// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
+ ///
+ [YamlMember(Alias = "schedule")]
+ [JsonProperty("schedule", NullValueHandling = NullValueHandling.Include)]
+ public string Schedule { get; set; }
+
+ ///
+ /// The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones
+ ///
+ [YamlMember(Alias = "timeZone")]
+ [JsonProperty("timeZone", NullValueHandling = NullValueHandling.Ignore)]
+ public string TimeZone { get; set; }
+
+ ///
+ /// Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.
+ ///
+ [YamlMember(Alias = "startingDeadlineSeconds")]
+ [JsonProperty("startingDeadlineSeconds", NullValueHandling = NullValueHandling.Ignore)]
+ public long? StartingDeadlineSeconds { get; set; }
+
+ ///
+ /// The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.
+ ///
+ [YamlMember(Alias = "failedJobsHistoryLimit")]
+ [JsonProperty("failedJobsHistoryLimit", NullValueHandling = NullValueHandling.Ignore)]
+ public int? FailedJobsHistoryLimit { get; set; }
+
+ ///
+ /// The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.
+ ///
+ [YamlMember(Alias = "successfulJobsHistoryLimit")]
+ [JsonProperty("successfulJobsHistoryLimit", NullValueHandling = NullValueHandling.Ignore)]
+ public int? SuccessfulJobsHistoryLimit { get; set; }
+
+ ///
+ /// Specifies how to treat concurrent executions of a Job. Valid values are:
+ ///
+ /// - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one
+ ///
+ [YamlMember(Alias = "concurrencyPolicy")]
+ [JsonProperty("concurrencyPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string ConcurrencyPolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CronJobStatusV1.cs b/src/KubeClient/Models/generated/CronJobStatusV1.cs
new file mode 100644
index 00000000..9c72f156
--- /dev/null
+++ b/src/KubeClient/Models/generated/CronJobStatusV1.cs
@@ -0,0 +1,39 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CronJobStatus represents the current state of a cron job.
+ ///
+ public partial class CronJobStatusV1
+ {
+ ///
+ /// A list of pointers to currently running jobs.
+ ///
+ [YamlMember(Alias = "active")]
+ [JsonProperty("active", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Active { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeActive() => Active.Count > 0;
+
+ ///
+ /// Information when was the last time the job was successfully scheduled.
+ ///
+ [YamlMember(Alias = "lastScheduleTime")]
+ [JsonProperty("lastScheduleTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastScheduleTime { get; set; }
+
+ ///
+ /// Information when was the last time the job successfully completed.
+ ///
+ [YamlMember(Alias = "lastSuccessfulTime")]
+ [JsonProperty("lastSuccessfulTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastSuccessfulTime { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CronJobV1.cs b/src/KubeClient/Models/generated/CronJobV1.cs
new file mode 100644
index 00000000..119bf06e
--- /dev/null
+++ b/src/KubeClient/Models/generated/CronJobV1.cs
@@ -0,0 +1,42 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CronJob represents the configuration of a single cron job.
+ ///
+ [KubeObject("CronJob", "batch/v1")]
+ [KubeApi(KubeAction.List, "apis/batch/v1/cronjobs")]
+ [KubeApi(KubeAction.WatchList, "apis/batch/v1/watch/cronjobs")]
+ [KubeApi(KubeAction.List, "apis/batch/v1/namespaces/{namespace}/cronjobs")]
+ [KubeApi(KubeAction.Create, "apis/batch/v1/namespaces/{namespace}/cronjobs")]
+ [KubeApi(KubeAction.Get, "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}")]
+ [KubeApi(KubeAction.Update, "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/batch/v1/watch/namespaces/{namespace}/cronjobs")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/batch/v1/namespaces/{namespace}/cronjobs")]
+ [KubeApi(KubeAction.Get, "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status")]
+ public partial class CronJobV1 : KubeResourceV1
+ {
+ ///
+ /// Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public CronJobSpecV1 Spec { get; set; }
+
+ ///
+ /// Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public CronJobStatusV1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CrossVersionObjectReferenceV1.cs b/src/KubeClient/Models/generated/CrossVersionObjectReferenceV1.cs
index 500333bc..d0289e8b 100644
--- a/src/KubeClient/Models/generated/CrossVersionObjectReferenceV1.cs
+++ b/src/KubeClient/Models/generated/CrossVersionObjectReferenceV1.cs
@@ -11,7 +11,7 @@ namespace KubeClient.Models
public partial class CrossVersionObjectReferenceV1 : KubeObjectV1
{
///
- /// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
+ /// name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/CrossVersionObjectReferenceV2.cs b/src/KubeClient/Models/generated/CrossVersionObjectReferenceV2.cs
new file mode 100644
index 00000000..523fe987
--- /dev/null
+++ b/src/KubeClient/Models/generated/CrossVersionObjectReferenceV2.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CrossVersionObjectReference contains enough information to let you identify the referred resource.
+ ///
+ public partial class CrossVersionObjectReferenceV2 : KubeObjectV1
+ {
+ ///
+ /// name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CustomResourceColumnDefinitionV1.cs b/src/KubeClient/Models/generated/CustomResourceColumnDefinitionV1.cs
new file mode 100644
index 00000000..84d2f461
--- /dev/null
+++ b/src/KubeClient/Models/generated/CustomResourceColumnDefinitionV1.cs
@@ -0,0 +1,55 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CustomResourceColumnDefinition specifies a column for server side printing.
+ ///
+ public partial class CustomResourceColumnDefinitionV1
+ {
+ ///
+ /// name is a human readable name for the column.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.
+ ///
+ [YamlMember(Alias = "jsonPath")]
+ [JsonProperty("jsonPath", NullValueHandling = NullValueHandling.Include)]
+ public string JsonPath { get; set; }
+
+ ///
+ /// description is a human readable description of this column.
+ ///
+ [YamlMember(Alias = "description")]
+ [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
+ public string Description { get; set; }
+
+ ///
+ /// format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.
+ ///
+ [YamlMember(Alias = "format")]
+ [JsonProperty("format", NullValueHandling = NullValueHandling.Ignore)]
+ public string Format { get; set; }
+
+ ///
+ /// priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.
+ ///
+ [YamlMember(Alias = "priority")]
+ [JsonProperty("priority", NullValueHandling = NullValueHandling.Ignore)]
+ public int? Priority { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CustomResourceConversionV1.cs b/src/KubeClient/Models/generated/CustomResourceConversionV1.cs
new file mode 100644
index 00000000..80c33932
--- /dev/null
+++ b/src/KubeClient/Models/generated/CustomResourceConversionV1.cs
@@ -0,0 +1,28 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CustomResourceConversion describes how to convert different versions of a CR.
+ ///
+ public partial class CustomResourceConversionV1
+ {
+ ///
+ /// webhook describes how to call the conversion webhook. Required when `strategy` is set to `"Webhook"`.
+ ///
+ [YamlMember(Alias = "webhook")]
+ [JsonProperty("webhook", NullValueHandling = NullValueHandling.Ignore)]
+ public WebhookConversionV1 Webhook { get; set; }
+
+ ///
+ /// strategy specifies how custom resources are converted between versions. Allowed values are: - `"None"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `"Webhook"`: API Server will call to an external webhook to do the conversion. Additional information
+ /// is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.
+ ///
+ [YamlMember(Alias = "strategy")]
+ [JsonProperty("strategy", NullValueHandling = NullValueHandling.Include)]
+ public string Strategy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CustomResourceDefinitionConditionV1.cs b/src/KubeClient/Models/generated/CustomResourceDefinitionConditionV1.cs
new file mode 100644
index 00000000..6b43b575
--- /dev/null
+++ b/src/KubeClient/Models/generated/CustomResourceDefinitionConditionV1.cs
@@ -0,0 +1,48 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CustomResourceDefinitionCondition contains details for the current condition of this pod.
+ ///
+ public partial class CustomResourceDefinitionConditionV1
+ {
+ ///
+ /// lastTransitionTime last time the condition transitioned from one status to another.
+ ///
+ [YamlMember(Alias = "lastTransitionTime")]
+ [JsonProperty("lastTransitionTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastTransitionTime { get; set; }
+
+ ///
+ /// message is a human-readable message indicating details about last transition.
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
+ public string Message { get; set; }
+
+ ///
+ /// type is the type of the condition. Types include Established, NamesAccepted and Terminating.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// reason is a unique, one-word, CamelCase reason for the condition's last transition.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reason { get; set; }
+
+ ///
+ /// status is the status of the condition. Can be True, False, Unknown.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Include)]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CustomResourceDefinitionListV1.cs b/src/KubeClient/Models/generated/CustomResourceDefinitionListV1.cs
new file mode 100644
index 00000000..ab5cca5a
--- /dev/null
+++ b/src/KubeClient/Models/generated/CustomResourceDefinitionListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CustomResourceDefinitionList is a list of CustomResourceDefinition objects.
+ ///
+ [KubeListItem("CustomResourceDefinition", "apiextensions.k8s.io/v1")]
+ [KubeObject("CustomResourceDefinitionList", "apiextensions.k8s.io/v1")]
+ public partial class CustomResourceDefinitionListV1 : KubeResourceListV1
+ {
+ ///
+ /// items list individual CustomResourceDefinition objects
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/CustomResourceDefinitionNamesV1.cs b/src/KubeClient/Models/generated/CustomResourceDefinitionNamesV1.cs
new file mode 100644
index 00000000..61aefd53
--- /dev/null
+++ b/src/KubeClient/Models/generated/CustomResourceDefinitionNamesV1.cs
@@ -0,0 +1,65 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
+ ///
+ public partial class CustomResourceDefinitionNamesV1
+ {
+ ///
+ /// kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.
+ ///
+ [YamlMember(Alias = "kind")]
+ [JsonProperty("kind", NullValueHandling = NullValueHandling.Include)]
+ public string Kind { get; set; }
+
+ ///
+ /// listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
+ ///
+ [YamlMember(Alias = "listKind")]
+ [JsonProperty("listKind", NullValueHandling = NullValueHandling.Ignore)]
+ public string ListKind { get; set; }
+
+ ///
+ /// plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.
+ ///
+ [YamlMember(Alias = "plural")]
+ [JsonProperty("plural", NullValueHandling = NullValueHandling.Include)]
+ public string Plural { get; set; }
+
+ ///
+ /// singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
+ ///
+ [YamlMember(Alias = "singular")]
+ [JsonProperty("singular", NullValueHandling = NullValueHandling.Ignore)]
+ public string Singular { get; set; }
+
+ ///
+ /// categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
+ ///
+ [YamlMember(Alias = "categories")]
+ [JsonProperty("categories", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Categories { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeCategories() => Categories.Count > 0;
+
+ ///
+ /// shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.
+ ///
+ [YamlMember(Alias = "shortNames")]
+ [JsonProperty("shortNames", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ShortNames { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeShortNames() => ShortNames.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/CustomResourceDefinitionSpecV1.cs b/src/KubeClient/Models/generated/CustomResourceDefinitionSpecV1.cs
new file mode 100644
index 00000000..131aaa88
--- /dev/null
+++ b/src/KubeClient/Models/generated/CustomResourceDefinitionSpecV1.cs
@@ -0,0 +1,55 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CustomResourceDefinitionSpec describes how a user wants their resource to appear
+ ///
+ public partial class CustomResourceDefinitionSpecV1
+ {
+ ///
+ /// scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.
+ ///
+ [YamlMember(Alias = "scope")]
+ [JsonProperty("scope", NullValueHandling = NullValueHandling.Include)]
+ public string Scope { get; set; }
+
+ ///
+ /// conversion defines conversion settings for the CRD.
+ ///
+ [YamlMember(Alias = "conversion")]
+ [JsonProperty("conversion", NullValueHandling = NullValueHandling.Ignore)]
+ public CustomResourceConversionV1 Conversion { get; set; }
+
+ ///
+ /// group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
+ ///
+ [YamlMember(Alias = "group")]
+ [JsonProperty("group", NullValueHandling = NullValueHandling.Include)]
+ public string Group { get; set; }
+
+ ///
+ /// names specify the resource and kind names for the custom resource.
+ ///
+ [YamlMember(Alias = "names")]
+ [JsonProperty("names", NullValueHandling = NullValueHandling.Include)]
+ public CustomResourceDefinitionNamesV1 Names { get; set; }
+
+ ///
+ /// preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.
+ ///
+ [YamlMember(Alias = "preserveUnknownFields")]
+ [JsonProperty("preserveUnknownFields", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? PreserveUnknownFields { get; set; }
+
+ ///
+ /// versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
+ ///
+ [YamlMember(Alias = "versions")]
+ [JsonProperty("versions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Versions { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/CustomResourceDefinitionStatusV1.cs b/src/KubeClient/Models/generated/CustomResourceDefinitionStatusV1.cs
new file mode 100644
index 00000000..736c4690
--- /dev/null
+++ b/src/KubeClient/Models/generated/CustomResourceDefinitionStatusV1.cs
@@ -0,0 +1,44 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition
+ ///
+ public partial class CustomResourceDefinitionStatusV1
+ {
+ ///
+ /// acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec.
+ ///
+ [YamlMember(Alias = "acceptedNames")]
+ [JsonProperty("acceptedNames", NullValueHandling = NullValueHandling.Ignore)]
+ public CustomResourceDefinitionNamesV1 AcceptedNames { get; set; }
+
+ ///
+ /// conditions indicate state for particular aspects of a CustomResourceDefinition
+ ///
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+
+ ///
+ /// storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.
+ ///
+ [YamlMember(Alias = "storedVersions")]
+ [JsonProperty("storedVersions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List StoredVersions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeStoredVersions() => StoredVersions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/CustomResourceDefinitionV1.cs b/src/KubeClient/Models/generated/CustomResourceDefinitionV1.cs
new file mode 100644
index 00000000..09a7efa8
--- /dev/null
+++ b/src/KubeClient/Models/generated/CustomResourceDefinitionV1.cs
@@ -0,0 +1,40 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.
+ ///
+ [KubeObject("CustomResourceDefinition", "apiextensions.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/apiextensions.k8s.io/v1/customresourcedefinitions")]
+ [KubeApi(KubeAction.Create, "apis/apiextensions.k8s.io/v1/customresourcedefinitions")]
+ [KubeApi(KubeAction.Get, "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}")]
+ [KubeApi(KubeAction.Update, "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/apiextensions.k8s.io/v1/customresourcedefinitions")]
+ [KubeApi(KubeAction.Get, "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status")]
+ public partial class CustomResourceDefinitionV1 : KubeResourceV1
+ {
+ ///
+ /// spec describes how the user wants the resources to appear
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public CustomResourceDefinitionSpecV1 Spec { get; set; }
+
+ ///
+ /// status indicates the actual state of the CustomResourceDefinition
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public CustomResourceDefinitionStatusV1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CustomResourceDefinitionVersionV1.cs b/src/KubeClient/Models/generated/CustomResourceDefinitionVersionV1.cs
new file mode 100644
index 00000000..76b23992
--- /dev/null
+++ b/src/KubeClient/Models/generated/CustomResourceDefinitionVersionV1.cs
@@ -0,0 +1,86 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CustomResourceDefinitionVersion describes a version for CRD.
+ ///
+ public partial class CustomResourceDefinitionVersionV1
+ {
+ ///
+ /// schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource.
+ ///
+ [YamlMember(Alias = "schema")]
+ [JsonProperty("schema", NullValueHandling = NullValueHandling.Ignore)]
+ public CustomResourceValidationV1 Schema { get; set; }
+
+ ///
+ /// deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.
+ ///
+ [YamlMember(Alias = "deprecated")]
+ [JsonProperty("deprecated", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Deprecated { get; set; }
+
+ ///
+ /// served is a flag enabling/disabling this version from being served via REST APIs
+ ///
+ [YamlMember(Alias = "served")]
+ [JsonProperty("served", NullValueHandling = NullValueHandling.Include)]
+ public bool Served { get; set; }
+
+ ///
+ /// name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.
+ ///
+ [YamlMember(Alias = "storage")]
+ [JsonProperty("storage", NullValueHandling = NullValueHandling.Include)]
+ public bool Storage { get; set; }
+
+ ///
+ /// deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.
+ ///
+ [YamlMember(Alias = "deprecationWarning")]
+ [JsonProperty("deprecationWarning", NullValueHandling = NullValueHandling.Ignore)]
+ public string DeprecationWarning { get; set; }
+
+ ///
+ /// additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.
+ ///
+ [YamlMember(Alias = "additionalPrinterColumns")]
+ [JsonProperty("additionalPrinterColumns", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List AdditionalPrinterColumns { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAdditionalPrinterColumns() => AdditionalPrinterColumns.Count > 0;
+
+ ///
+ /// selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors
+ ///
+ [YamlMember(Alias = "selectableFields")]
+ [JsonProperty("selectableFields", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List SelectableFields { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeSelectableFields() => SelectableFields.Count > 0;
+
+ ///
+ /// subresources specify what subresources this version of the defined custom resource have.
+ ///
+ [YamlMember(Alias = "subresources")]
+ [JsonProperty("subresources", NullValueHandling = NullValueHandling.Ignore)]
+ public CustomResourceSubresourcesV1 Subresources { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CustomResourceSubresourceScaleV1.cs b/src/KubeClient/Models/generated/CustomResourceSubresourceScaleV1.cs
new file mode 100644
index 00000000..4b5a2493
--- /dev/null
+++ b/src/KubeClient/Models/generated/CustomResourceSubresourceScaleV1.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.
+ ///
+ public partial class CustomResourceSubresourceScaleV1
+ {
+ ///
+ /// labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.
+ ///
+ [YamlMember(Alias = "labelSelectorPath")]
+ [JsonProperty("labelSelectorPath", NullValueHandling = NullValueHandling.Ignore)]
+ public string LabelSelectorPath { get; set; }
+
+ ///
+ /// specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.
+ ///
+ [YamlMember(Alias = "specReplicasPath")]
+ [JsonProperty("specReplicasPath", NullValueHandling = NullValueHandling.Include)]
+ public string SpecReplicasPath { get; set; }
+
+ ///
+ /// statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.
+ ///
+ [YamlMember(Alias = "statusReplicasPath")]
+ [JsonProperty("statusReplicasPath", NullValueHandling = NullValueHandling.Include)]
+ public string StatusReplicasPath { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CustomResourceSubresourceStatusV1.cs b/src/KubeClient/Models/generated/CustomResourceSubresourceStatusV1.cs
new file mode 100644
index 00000000..02af83df
--- /dev/null
+++ b/src/KubeClient/Models/generated/CustomResourceSubresourceStatusV1.cs
@@ -0,0 +1,14 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. Status is represented by the `.status` JSON path inside of a CustomResource. When set, * exposes a /status subresource for the custom resource * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza
+ ///
+ public partial class CustomResourceSubresourceStatusV1
+ {
+ }
+}
diff --git a/src/KubeClient/Models/generated/CustomResourceSubresourcesV1.cs b/src/KubeClient/Models/generated/CustomResourceSubresourcesV1.cs
new file mode 100644
index 00000000..29d4b6f6
--- /dev/null
+++ b/src/KubeClient/Models/generated/CustomResourceSubresourcesV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CustomResourceSubresources defines the status and scale subresources for CustomResources.
+ ///
+ public partial class CustomResourceSubresourcesV1
+ {
+ ///
+ /// scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
+ ///
+ [YamlMember(Alias = "scale")]
+ [JsonProperty("scale", NullValueHandling = NullValueHandling.Ignore)]
+ public CustomResourceSubresourceScaleV1 Scale { get; set; }
+
+ ///
+ /// status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public CustomResourceSubresourceStatusV1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/CustomResourceValidationV1.cs b/src/KubeClient/Models/generated/CustomResourceValidationV1.cs
new file mode 100644
index 00000000..01b43e40
--- /dev/null
+++ b/src/KubeClient/Models/generated/CustomResourceValidationV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// CustomResourceValidation is a list of validation methods for CustomResources.
+ ///
+ public partial class CustomResourceValidationV1
+ {
+ ///
+ /// openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
+ ///
+ [YamlMember(Alias = "openAPIV3Schema")]
+ [JsonProperty("openAPIV3Schema", NullValueHandling = NullValueHandling.Ignore)]
+ public JSONSchemaPropsV1 OpenAPIV3Schema { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/DaemonSetSpecV1.cs b/src/KubeClient/Models/generated/DaemonSetSpecV1.cs
index d821958d..6ffac4a8 100644
--- a/src/KubeClient/Models/generated/DaemonSetSpecV1.cs
+++ b/src/KubeClient/Models/generated/DaemonSetSpecV1.cs
@@ -11,7 +11,7 @@ namespace KubeClient.Models
public partial class DaemonSetSpecV1
{
///
- /// An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
+ /// An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
///
[YamlMember(Alias = "template")]
[JsonProperty("template", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/DaemonSetStatusV1.cs b/src/KubeClient/Models/generated/DaemonSetStatusV1.cs
index a57092c7..1da0db80 100644
--- a/src/KubeClient/Models/generated/DaemonSetStatusV1.cs
+++ b/src/KubeClient/Models/generated/DaemonSetStatusV1.cs
@@ -80,7 +80,7 @@ public partial class DaemonSetStatusV1
public int? CollisionCount { get; set; }
///
- /// The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.
+ /// numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.
///
[YamlMember(Alias = "numberReady")]
[JsonProperty("numberReady", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/DaemonSetV1.cs b/src/KubeClient/Models/generated/DaemonSetV1.cs
index 4c25317e..2a890e59 100644
--- a/src/KubeClient/Models/generated/DaemonSetV1.cs
+++ b/src/KubeClient/Models/generated/DaemonSetV1.cs
@@ -26,14 +26,14 @@ namespace KubeClient.Models
public partial class DaemonSetV1 : KubeResourceV1
{
///
- /// The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
public DaemonSetSpecV1 Spec { get; set; }
///
- /// The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/DeploymentSpecV1.cs b/src/KubeClient/Models/generated/DeploymentSpecV1.cs
index a1d7af37..e13ff236 100644
--- a/src/KubeClient/Models/generated/DeploymentSpecV1.cs
+++ b/src/KubeClient/Models/generated/DeploymentSpecV1.cs
@@ -18,7 +18,7 @@ public partial class DeploymentSpecV1
public bool? Paused { get; set; }
///
- /// Template describes the pods that will be created.
+ /// Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is "Always".
///
[YamlMember(Alias = "template")]
[JsonProperty("template", NullValueHandling = NullValueHandling.Include)]
@@ -62,6 +62,7 @@ public partial class DeploymentSpecV1
///
/// The deployment strategy to use to replace existing pods with new ones.
///
+ [RetainKeysStrategy]
[YamlMember(Alias = "strategy")]
[JsonProperty("strategy", NullValueHandling = NullValueHandling.Ignore)]
public DeploymentStrategyV1 Strategy { get; set; }
diff --git a/src/KubeClient/Models/generated/DeploymentStatusV1.cs b/src/KubeClient/Models/generated/DeploymentStatusV1.cs
index 303cf5f6..aa407665 100644
--- a/src/KubeClient/Models/generated/DeploymentStatusV1.cs
+++ b/src/KubeClient/Models/generated/DeploymentStatusV1.cs
@@ -38,7 +38,7 @@ public partial class DeploymentStatusV1
public bool ShouldSerializeConditions() => Conditions.Count > 0;
///
- /// Total number of ready pods targeted by this deployment.
+ /// readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.
///
[YamlMember(Alias = "readyReplicas")]
[JsonProperty("readyReplicas", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/DeviceAllocationConfigurationV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceAllocationConfigurationV1Alpha3.cs
new file mode 100644
index 00000000..21a8f89b
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceAllocationConfigurationV1Alpha3.cs
@@ -0,0 +1,39 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// DeviceAllocationConfiguration gets embedded in an AllocationResult.
+ ///
+ public partial class DeviceAllocationConfigurationV1Alpha3
+ {
+ ///
+ /// Opaque provides driver-specific configuration parameters.
+ ///
+ [YamlMember(Alias = "opaque")]
+ [JsonProperty("opaque", NullValueHandling = NullValueHandling.Ignore)]
+ public OpaqueDeviceConfigurationV1Alpha3 Opaque { get; set; }
+
+ ///
+ /// Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
+ ///
+ [YamlMember(Alias = "source")]
+ [JsonProperty("source", NullValueHandling = NullValueHandling.Include)]
+ public string Source { get; set; }
+
+ ///
+ /// Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
+ ///
+ [YamlMember(Alias = "requests")]
+ [JsonProperty("requests", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Requests { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRequests() => Requests.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/DeviceAllocationResultV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceAllocationResultV1Alpha3.cs
new file mode 100644
index 00000000..1d8689ef
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceAllocationResultV1Alpha3.cs
@@ -0,0 +1,39 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// DeviceAllocationResult is the result of allocating devices.
+ ///
+ public partial class DeviceAllocationResultV1Alpha3
+ {
+ ///
+ /// This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
+ ///
+ /// This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
+ ///
+ [YamlMember(Alias = "config")]
+ [JsonProperty("config", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Config { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConfig() => Config.Count > 0;
+
+ ///
+ /// Results lists all allocated devices.
+ ///
+ [YamlMember(Alias = "results")]
+ [JsonProperty("results", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Results { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResults() => Results.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/DeviceAttributeV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceAttributeV1Alpha3.cs
new file mode 100644
index 00000000..c910281f
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceAttributeV1Alpha3.cs
@@ -0,0 +1,41 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// DeviceAttribute must have exactly one field set.
+ ///
+ public partial class DeviceAttributeV1Alpha3
+ {
+ ///
+ /// StringValue is a string. Must not be longer than 64 characters.
+ ///
+ [YamlMember(Alias = "string")]
+ [JsonProperty("string", NullValueHandling = NullValueHandling.Ignore)]
+ public string String { get; set; }
+
+ ///
+ /// BoolValue is a true/false value.
+ ///
+ [YamlMember(Alias = "bool")]
+ [JsonProperty("bool", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Bool { get; set; }
+
+ ///
+ /// VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
+ ///
+ [YamlMember(Alias = "version")]
+ [JsonProperty("version", NullValueHandling = NullValueHandling.Ignore)]
+ public string Version { get; set; }
+
+ ///
+ /// IntValue is a number.
+ ///
+ [YamlMember(Alias = "int")]
+ [JsonProperty("int", NullValueHandling = NullValueHandling.Ignore)]
+ public long? Int { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/DeviceClaimConfigurationV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceClaimConfigurationV1Alpha3.cs
new file mode 100644
index 00000000..3f3ce111
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceClaimConfigurationV1Alpha3.cs
@@ -0,0 +1,32 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
+ ///
+ public partial class DeviceClaimConfigurationV1Alpha3
+ {
+ ///
+ /// Opaque provides driver-specific configuration parameters.
+ ///
+ [YamlMember(Alias = "opaque")]
+ [JsonProperty("opaque", NullValueHandling = NullValueHandling.Ignore)]
+ public OpaqueDeviceConfigurationV1Alpha3 Opaque { get; set; }
+
+ ///
+ /// Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
+ ///
+ [YamlMember(Alias = "requests")]
+ [JsonProperty("requests", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Requests { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRequests() => Requests.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/DeviceClaimV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceClaimV1Alpha3.cs
new file mode 100644
index 00000000..5daf2ab2
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceClaimV1Alpha3.cs
@@ -0,0 +1,49 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// DeviceClaim defines how to request devices with a ResourceClaim.
+ ///
+ public partial class DeviceClaimV1Alpha3
+ {
+ ///
+ /// This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
+ ///
+ [YamlMember(Alias = "config")]
+ [JsonProperty("config", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Config { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConfig() => Config.Count > 0;
+
+ ///
+ /// These constraints must be satisfied by the set of devices that get allocated for the claim.
+ ///
+ [YamlMember(Alias = "constraints")]
+ [JsonProperty("constraints", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Constraints { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConstraints() => Constraints.Count > 0;
+
+ ///
+ /// Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
+ ///
+ [YamlMember(Alias = "requests")]
+ [JsonProperty("requests", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Requests { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRequests() => Requests.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/DeviceClassConfigurationV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceClassConfigurationV1Alpha3.cs
new file mode 100644
index 00000000..a9d9e2f4
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceClassConfigurationV1Alpha3.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// DeviceClassConfiguration is used in DeviceClass.
+ ///
+ public partial class DeviceClassConfigurationV1Alpha3
+ {
+ ///
+ /// Opaque provides driver-specific configuration parameters.
+ ///
+ [YamlMember(Alias = "opaque")]
+ [JsonProperty("opaque", NullValueHandling = NullValueHandling.Ignore)]
+ public OpaqueDeviceConfigurationV1Alpha3 Opaque { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/DeviceClassListV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceClassListV1Alpha3.cs
new file mode 100644
index 00000000..0b5f95a3
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceClassListV1Alpha3.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// DeviceClassList is a collection of classes.
+ ///
+ [KubeListItem("DeviceClass", "resource.k8s.io/v1alpha3")]
+ [KubeObject("DeviceClassList", "resource.k8s.io/v1alpha3")]
+ public partial class DeviceClassListV1Alpha3 : KubeResourceListV1
+ {
+ ///
+ /// Items is the list of resource classes.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/DeviceClassSpecV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceClassSpecV1Alpha3.cs
new file mode 100644
index 00000000..3fd20b2d
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceClassSpecV1Alpha3.cs
@@ -0,0 +1,50 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
+ ///
+ public partial class DeviceClassSpecV1Alpha3
+ {
+ ///
+ /// Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
+ ///
+ /// They are passed to the driver, but are not considered while allocating the claim.
+ ///
+ [YamlMember(Alias = "config")]
+ [JsonProperty("config", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Config { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConfig() => Config.Count > 0;
+
+ ///
+ /// Each selector must be satisfied by a device which is claimed via this class.
+ ///
+ [YamlMember(Alias = "selectors")]
+ [JsonProperty("selectors", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Selectors { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeSelectors() => Selectors.Count > 0;
+
+ ///
+ /// Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet *and* that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation.
+ ///
+ /// Setting this field is optional. If unset, all Nodes are candidates.
+ ///
+ /// This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
+ ///
+ [YamlMember(Alias = "suitableNodes")]
+ [JsonProperty("suitableNodes", NullValueHandling = NullValueHandling.Ignore)]
+ public NodeSelectorV1 SuitableNodes { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/DeviceClassV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceClassV1Alpha3.cs
new file mode 100644
index 00000000..4a571ea2
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceClassV1Alpha3.cs
@@ -0,0 +1,36 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.
+ ///
+ /// This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
+ ///
+ [KubeObject("DeviceClass", "resource.k8s.io/v1alpha3")]
+ [KubeApi(KubeAction.List, "apis/resource.k8s.io/v1alpha3/deviceclasses")]
+ [KubeApi(KubeAction.Create, "apis/resource.k8s.io/v1alpha3/deviceclasses")]
+ [KubeApi(KubeAction.Get, "apis/resource.k8s.io/v1alpha3/deviceclasses/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/resource.k8s.io/v1alpha3/deviceclasses/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/resource.k8s.io/v1alpha3/deviceclasses/{name}")]
+ [KubeApi(KubeAction.Update, "apis/resource.k8s.io/v1alpha3/deviceclasses/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/resource.k8s.io/v1alpha3/watch/deviceclasses")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/resource.k8s.io/v1alpha3/deviceclasses")]
+ [KubeApi(KubeAction.Watch, "apis/resource.k8s.io/v1alpha3/watch/deviceclasses/{name}")]
+ public partial class DeviceClassV1Alpha3 : KubeResourceV1
+ {
+ ///
+ /// Spec defines what can be allocated and how to configure it.
+ ///
+ /// This is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.
+ ///
+ /// Changing the spec automatically increments the metadata.generation number.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public DeviceClassSpecV1Alpha3 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/DeviceConstraintV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceConstraintV1Alpha3.cs
new file mode 100644
index 00000000..72d0027e
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceConstraintV1Alpha3.cs
@@ -0,0 +1,36 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// DeviceConstraint must have exactly one field set besides Requests.
+ ///
+ public partial class DeviceConstraintV1Alpha3
+ {
+ ///
+ /// MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
+ ///
+ /// For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
+ ///
+ /// Must include the domain qualifier.
+ ///
+ [YamlMember(Alias = "matchAttribute")]
+ [JsonProperty("matchAttribute", NullValueHandling = NullValueHandling.Ignore)]
+ public string MatchAttribute { get; set; }
+
+ ///
+ /// Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
+ ///
+ [YamlMember(Alias = "requests")]
+ [JsonProperty("requests", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Requests { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRequests() => Requests.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/DeviceRequestAllocationResultV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceRequestAllocationResultV1Alpha3.cs
new file mode 100644
index 00000000..9f0fb7c5
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceRequestAllocationResultV1Alpha3.cs
@@ -0,0 +1,45 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// DeviceRequestAllocationResult contains the allocation result for one request.
+ ///
+ public partial class DeviceRequestAllocationResultV1Alpha3
+ {
+ ///
+ /// Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
+ ///
+ [YamlMember(Alias = "device")]
+ [JsonProperty("device", NullValueHandling = NullValueHandling.Include)]
+ public string Device { get; set; }
+
+ ///
+ /// This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+ ///
+ /// Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
+ ///
+ [YamlMember(Alias = "pool")]
+ [JsonProperty("pool", NullValueHandling = NullValueHandling.Include)]
+ public string Pool { get; set; }
+
+ ///
+ /// Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
+ ///
+ /// Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
+ ///
+ [YamlMember(Alias = "driver")]
+ [JsonProperty("driver", NullValueHandling = NullValueHandling.Include)]
+ public string Driver { get; set; }
+
+ ///
+ /// Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
+ ///
+ [YamlMember(Alias = "request")]
+ [JsonProperty("request", NullValueHandling = NullValueHandling.Include)]
+ public string Request { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/DeviceRequestV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceRequestV1Alpha3.cs
new file mode 100644
index 00000000..2f26fbfb
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceRequestV1Alpha3.cs
@@ -0,0 +1,80 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.
+ ///
+ /// A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
+ ///
+ public partial class DeviceRequestV1Alpha3
+ {
+ ///
+ /// AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
+ ///
+ /// - ExactCount: This request is for a specific number of devices.
+ /// This is the default. The exact number is provided in the
+ /// count field.
+ ///
+ /// - All: This request is for all of the matching devices in a pool.
+ /// Allocation will fail if some devices are already allocated,
+ /// unless adminAccess is requested.
+ ///
+ /// If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
+ ///
+ /// More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
+ ///
+ [YamlMember(Alias = "allocationMode")]
+ [JsonProperty("allocationMode", NullValueHandling = NullValueHandling.Ignore)]
+ public string AllocationMode { get; set; }
+
+ ///
+ /// DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
+ ///
+ /// A class is required. Which classes are available depends on the cluster.
+ ///
+ /// Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
+ ///
+ [YamlMember(Alias = "deviceClassName")]
+ [JsonProperty("deviceClassName", NullValueHandling = NullValueHandling.Include)]
+ public string DeviceClassName { get; set; }
+
+ ///
+ /// Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
+ ///
+ /// Must be a DNS label.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
+ ///
+ [YamlMember(Alias = "adminAccess")]
+ [JsonProperty("adminAccess", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? AdminAccess { get; set; }
+
+ ///
+ /// Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
+ ///
+ [YamlMember(Alias = "selectors")]
+ [JsonProperty("selectors", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Selectors { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeSelectors() => Selectors.Count > 0;
+
+ ///
+ /// Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
+ ///
+ [YamlMember(Alias = "count")]
+ [JsonProperty("count", NullValueHandling = NullValueHandling.Ignore)]
+ public long? Count { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/DeviceSelectorV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceSelectorV1Alpha3.cs
new file mode 100644
index 00000000..efbcc9f3
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceSelectorV1Alpha3.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// DeviceSelector must have exactly one field set.
+ ///
+ public partial class DeviceSelectorV1Alpha3
+ {
+ ///
+ /// CEL contains a CEL expression for selecting a device.
+ ///
+ [YamlMember(Alias = "cel")]
+ [JsonProperty("cel", NullValueHandling = NullValueHandling.Ignore)]
+ public CELDeviceSelectorV1Alpha3 Cel { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/DeviceV1Alpha3.cs b/src/KubeClient/Models/generated/DeviceV1Alpha3.cs
new file mode 100644
index 00000000..17dd9c68
--- /dev/null
+++ b/src/KubeClient/Models/generated/DeviceV1Alpha3.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
+ ///
+ public partial class DeviceV1Alpha3
+ {
+ ///
+ /// Basic defines one device instance.
+ ///
+ [YamlMember(Alias = "basic")]
+ [JsonProperty("basic", NullValueHandling = NullValueHandling.Ignore)]
+ public BasicDeviceV1Alpha3 Basic { get; set; }
+
+ ///
+ /// Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/DownwardAPIVolumeFileV1.cs b/src/KubeClient/Models/generated/DownwardAPIVolumeFileV1.cs
index b3f1c0fb..352049a5 100644
--- a/src/KubeClient/Models/generated/DownwardAPIVolumeFileV1.cs
+++ b/src/KubeClient/Models/generated/DownwardAPIVolumeFileV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class DownwardAPIVolumeFileV1
{
///
- /// Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
+ /// Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
///
[YamlMember(Alias = "mode")]
[JsonProperty("mode", NullValueHandling = NullValueHandling.Ignore)]
public int? Mode { get; set; }
///
- /// Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
+ /// Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.
///
[YamlMember(Alias = "fieldRef")]
[JsonProperty("fieldRef", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/DownwardAPIVolumeSourceV1.cs b/src/KubeClient/Models/generated/DownwardAPIVolumeSourceV1.cs
index 6bf726b2..e50ba5a6 100644
--- a/src/KubeClient/Models/generated/DownwardAPIVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/DownwardAPIVolumeSourceV1.cs
@@ -12,7 +12,7 @@ namespace KubeClient.Models
public partial class DownwardAPIVolumeSourceV1
{
///
- /// Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
+ /// Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
///
[YamlMember(Alias = "defaultMode")]
[JsonProperty("defaultMode", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/EmptyDirVolumeSourceV1.cs b/src/KubeClient/Models/generated/EmptyDirVolumeSourceV1.cs
index 430db28d..c6f160ac 100644
--- a/src/KubeClient/Models/generated/EmptyDirVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/EmptyDirVolumeSourceV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class EmptyDirVolumeSourceV1
{
///
- /// What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
+ /// medium represents what type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
///
[YamlMember(Alias = "medium")]
[JsonProperty("medium", NullValueHandling = NullValueHandling.Ignore)]
public string Medium { get; set; }
///
- /// Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
+ /// sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
///
[YamlMember(Alias = "sizeLimit")]
[JsonProperty("sizeLimit", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/EndpointAddressV1.cs b/src/KubeClient/Models/generated/EndpointAddressV1.cs
index 1f974f45..6dcb9218 100644
--- a/src/KubeClient/Models/generated/EndpointAddressV1.cs
+++ b/src/KubeClient/Models/generated/EndpointAddressV1.cs
@@ -32,7 +32,7 @@ public partial class EndpointAddressV1
public ObjectReferenceV1 TargetRef { get; set; }
///
- /// The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.
+ /// The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).
///
[YamlMember(Alias = "ip")]
[JsonProperty("ip", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/EndpointConditionsV1.cs b/src/KubeClient/Models/generated/EndpointConditionsV1.cs
new file mode 100644
index 00000000..a40a9f04
--- /dev/null
+++ b/src/KubeClient/Models/generated/EndpointConditionsV1.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// EndpointConditions represents the current condition of an endpoint.
+ ///
+ public partial class EndpointConditionsV1
+ {
+ ///
+ /// serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.
+ ///
+ [YamlMember(Alias = "serving")]
+ [JsonProperty("serving", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Serving { get; set; }
+
+ ///
+ /// terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.
+ ///
+ [YamlMember(Alias = "terminating")]
+ [JsonProperty("terminating", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Terminating { get; set; }
+
+ ///
+ /// ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag.
+ ///
+ [YamlMember(Alias = "ready")]
+ [JsonProperty("ready", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Ready { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/EndpointHintsV1.cs b/src/KubeClient/Models/generated/EndpointHintsV1.cs
new file mode 100644
index 00000000..fc984e39
--- /dev/null
+++ b/src/KubeClient/Models/generated/EndpointHintsV1.cs
@@ -0,0 +1,25 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// EndpointHints provides hints describing how an endpoint should be consumed.
+ ///
+ public partial class EndpointHintsV1
+ {
+ ///
+ /// forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
+ ///
+ [YamlMember(Alias = "forZones")]
+ [JsonProperty("forZones", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ForZones { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeForZones() => ForZones.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/EndpointPortV1.cs b/src/KubeClient/Models/generated/EndpointPortV1.cs
index 436fd9e9..83988f81 100644
--- a/src/KubeClient/Models/generated/EndpointPortV1.cs
+++ b/src/KubeClient/Models/generated/EndpointPortV1.cs
@@ -6,29 +6,45 @@
namespace KubeClient.Models
{
///
- /// EndpointPort is a tuple that describes a single port.
+ /// EndpointPort represents a Port used by an EndpointSlice
///
public partial class EndpointPortV1
{
///
- /// The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.
+ /// name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
public string Name { get; set; }
///
- /// The IP protocol for this port. Must be UDP or TCP. Default is TCP.
+ /// The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:
+ ///
+ /// * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).
+ ///
+ /// * Kubernetes-defined prefixed names:
+ /// * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+ /// * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+ /// * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+ ///
+ /// * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.
+ ///
+ [YamlMember(Alias = "appProtocol")]
+ [JsonProperty("appProtocol", NullValueHandling = NullValueHandling.Ignore)]
+ public string AppProtocol { get; set; }
+
+ ///
+ /// protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.
///
[YamlMember(Alias = "protocol")]
[JsonProperty("protocol", NullValueHandling = NullValueHandling.Ignore)]
public string Protocol { get; set; }
///
- /// The port number of the endpoint.
+ /// port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.
///
[YamlMember(Alias = "port")]
- [JsonProperty("port", NullValueHandling = NullValueHandling.Include)]
- public int Port { get; set; }
+ [JsonProperty("port", NullValueHandling = NullValueHandling.Ignore)]
+ public int? Port { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/EndpointSliceListV1.cs b/src/KubeClient/Models/generated/EndpointSliceListV1.cs
new file mode 100644
index 00000000..4a8efdde
--- /dev/null
+++ b/src/KubeClient/Models/generated/EndpointSliceListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// EndpointSliceList represents a list of endpoint slices
+ ///
+ [KubeListItem("EndpointSlice", "discovery.k8s.io/v1")]
+ [KubeObject("EndpointSliceList", "discovery.k8s.io/v1")]
+ public partial class EndpointSliceListV1 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of endpoint slices
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/EndpointSliceV1.cs b/src/KubeClient/Models/generated/EndpointSliceV1.cs
new file mode 100644
index 00000000..c8cde5f6
--- /dev/null
+++ b/src/KubeClient/Models/generated/EndpointSliceV1.cs
@@ -0,0 +1,51 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.
+ ///
+ [KubeObject("EndpointSlice", "discovery.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/discovery.k8s.io/v1/endpointslices")]
+ [KubeApi(KubeAction.WatchList, "apis/discovery.k8s.io/v1/watch/endpointslices")]
+ [KubeApi(KubeAction.List, "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices")]
+ [KubeApi(KubeAction.Create, "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices")]
+ [KubeApi(KubeAction.Get, "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}")]
+ [KubeApi(KubeAction.Update, "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices")]
+ [KubeApi(KubeAction.Watch, "apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}")]
+ public partial class EndpointSliceV1 : KubeResourceV1
+ {
+ ///
+ /// addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.
+ ///
+ [YamlMember(Alias = "addressType")]
+ [JsonProperty("addressType", NullValueHandling = NullValueHandling.Include)]
+ public string AddressType { get; set; }
+
+ ///
+ /// endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.
+ ///
+ [YamlMember(Alias = "endpoints")]
+ [JsonProperty("endpoints", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Endpoints { get; } = new List();
+
+ ///
+ /// ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports.
+ ///
+ [YamlMember(Alias = "ports")]
+ [JsonProperty("ports", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Ports { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializePorts() => Ports.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/EndpointSubsetV1.cs b/src/KubeClient/Models/generated/EndpointSubsetV1.cs
index 3e0f0dbe..aa5e85c8 100644
--- a/src/KubeClient/Models/generated/EndpointSubsetV1.cs
+++ b/src/KubeClient/Models/generated/EndpointSubsetV1.cs
@@ -7,13 +7,16 @@ namespace KubeClient.Models
{
///
/// EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:
- /// {
- /// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
- /// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
- /// }
+ ///
+ /// {
+ /// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
+ /// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
+ /// }
+ ///
/// The resulting set of endpoints can be viewed as:
- /// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],
- /// b: [ 10.10.1.1:309, 10.10.2.2:309 ]
+ ///
+ /// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],
+ /// b: [ 10.10.1.1:309, 10.10.2.2:309 ]
///
public partial class EndpointSubsetV1
{
diff --git a/src/KubeClient/Models/generated/EndpointV1.cs b/src/KubeClient/Models/generated/EndpointV1.cs
new file mode 100644
index 00000000..c25c01e7
--- /dev/null
+++ b/src/KubeClient/Models/generated/EndpointV1.cs
@@ -0,0 +1,74 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Endpoint represents a single logical "backend" implementing a service.
+ ///
+ public partial class EndpointV1
+ {
+ ///
+ /// hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.
+ ///
+ [YamlMember(Alias = "hostname")]
+ [JsonProperty("hostname", NullValueHandling = NullValueHandling.Ignore)]
+ public string Hostname { get; set; }
+
+ ///
+ /// nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.
+ ///
+ [YamlMember(Alias = "nodeName")]
+ [JsonProperty("nodeName", NullValueHandling = NullValueHandling.Ignore)]
+ public string NodeName { get; set; }
+
+ ///
+ /// zone is the name of the Zone this endpoint exists in.
+ ///
+ [YamlMember(Alias = "zone")]
+ [JsonProperty("zone", NullValueHandling = NullValueHandling.Ignore)]
+ public string Zone { get; set; }
+
+ ///
+ /// targetRef is a reference to a Kubernetes object that represents this endpoint.
+ ///
+ [YamlMember(Alias = "targetRef")]
+ [JsonProperty("targetRef", NullValueHandling = NullValueHandling.Ignore)]
+ public ObjectReferenceV1 TargetRef { get; set; }
+
+ ///
+ /// addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267
+ ///
+ [YamlMember(Alias = "addresses")]
+ [JsonProperty("addresses", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Addresses { get; } = new List();
+
+ ///
+ /// conditions contains information about the current status of the endpoint.
+ ///
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", NullValueHandling = NullValueHandling.Ignore)]
+ public EndpointConditionsV1 Conditions { get; set; }
+
+ ///
+ /// hints contains information associated with how an endpoint should be consumed.
+ ///
+ [YamlMember(Alias = "hints")]
+ [JsonProperty("hints", NullValueHandling = NullValueHandling.Ignore)]
+ public EndpointHintsV1 Hints { get; set; }
+
+ ///
+ /// deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.
+ ///
+ [YamlMember(Alias = "deprecatedTopology")]
+ [JsonProperty("deprecatedTopology", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary DeprecatedTopology { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeDeprecatedTopology() => DeprecatedTopology.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/EndpointsV1.cs b/src/KubeClient/Models/generated/EndpointsV1.cs
index eabf7753..f0ed19f0 100644
--- a/src/KubeClient/Models/generated/EndpointsV1.cs
+++ b/src/KubeClient/Models/generated/EndpointsV1.cs
@@ -7,17 +7,18 @@ namespace KubeClient.Models
{
///
/// Endpoints is a collection of endpoints that implement the actual service. Example:
- /// Name: "mysvc",
- /// Subsets: [
- /// {
- /// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
- /// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
- /// },
- /// {
- /// Addresses: [{"ip": "10.10.3.3"}],
- /// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}]
- /// },
- /// ]
+ ///
+ /// Name: "mysvc",
+ /// Subsets: [
+ /// {
+ /// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
+ /// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
+ /// },
+ /// {
+ /// Addresses: [{"ip": "10.10.3.3"}],
+ /// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}]
+ /// },
+ /// ]
///
[KubeObject("Endpoints", "v1")]
[KubeApi(KubeAction.List, "api/v1/endpoints")]
diff --git a/src/KubeClient/Models/generated/EnvVarSourceV1.cs b/src/KubeClient/Models/generated/EnvVarSourceV1.cs
index 883f2b89..f1ec175e 100644
--- a/src/KubeClient/Models/generated/EnvVarSourceV1.cs
+++ b/src/KubeClient/Models/generated/EnvVarSourceV1.cs
@@ -18,7 +18,7 @@ public partial class EnvVarSourceV1
public ConfigMapKeySelectorV1 ConfigMapKeyRef { get; set; }
///
- /// Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP.
+ /// Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
///
[YamlMember(Alias = "fieldRef")]
[JsonProperty("fieldRef", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/EnvVarV1.cs b/src/KubeClient/Models/generated/EnvVarV1.cs
index 53f69f21..c5f97988 100644
--- a/src/KubeClient/Models/generated/EnvVarV1.cs
+++ b/src/KubeClient/Models/generated/EnvVarV1.cs
@@ -18,7 +18,7 @@ public partial class EnvVarV1
public string Name { get; set; }
///
- /// Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".
+ /// Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".
///
[YamlMember(Alias = "value")]
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/EphemeralContainerV1.cs b/src/KubeClient/Models/generated/EphemeralContainerV1.cs
new file mode 100644
index 00000000..e23bae44
--- /dev/null
+++ b/src/KubeClient/Models/generated/EphemeralContainerV1.cs
@@ -0,0 +1,236 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.
+ ///
+ /// To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.
+ ///
+ public partial class EphemeralContainerV1
+ {
+ ///
+ /// Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
+ ///
+ [YamlMember(Alias = "command")]
+ [JsonProperty("command", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Command { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeCommand() => Command.Count > 0;
+
+ ///
+ /// Container image name. More info: https://kubernetes.io/docs/concepts/containers/images
+ ///
+ [YamlMember(Alias = "image")]
+ [JsonProperty("image", NullValueHandling = NullValueHandling.Ignore)]
+ public string Image { get; set; }
+
+ ///
+ /// Lifecycle is not allowed for ephemeral containers.
+ ///
+ [YamlMember(Alias = "lifecycle")]
+ [JsonProperty("lifecycle", NullValueHandling = NullValueHandling.Ignore)]
+ public LifecycleV1 Lifecycle { get; set; }
+
+ ///
+ /// Probes are not allowed for ephemeral containers.
+ ///
+ [YamlMember(Alias = "livenessProbe")]
+ [JsonProperty("livenessProbe", NullValueHandling = NullValueHandling.Ignore)]
+ public ProbeV1 LivenessProbe { get; set; }
+
+ ///
+ /// Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// Probes are not allowed for ephemeral containers.
+ ///
+ [YamlMember(Alias = "readinessProbe")]
+ [JsonProperty("readinessProbe", NullValueHandling = NullValueHandling.Ignore)]
+ public ProbeV1 ReadinessProbe { get; set; }
+
+ ///
+ /// Probes are not allowed for ephemeral containers.
+ ///
+ [YamlMember(Alias = "startupProbe")]
+ [JsonProperty("startupProbe", NullValueHandling = NullValueHandling.Ignore)]
+ public ProbeV1 StartupProbe { get; set; }
+
+ ///
+ /// Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false
+ ///
+ [YamlMember(Alias = "stdinOnce")]
+ [JsonProperty("stdinOnce", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? StdinOnce { get; set; }
+
+ ///
+ /// If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.
+ ///
+ /// The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.
+ ///
+ [YamlMember(Alias = "targetContainerName")]
+ [JsonProperty("targetContainerName", NullValueHandling = NullValueHandling.Ignore)]
+ public string TargetContainerName { get; set; }
+
+ ///
+ /// Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.
+ ///
+ [YamlMember(Alias = "terminationMessagePath")]
+ [JsonProperty("terminationMessagePath", NullValueHandling = NullValueHandling.Ignore)]
+ public string TerminationMessagePath { get; set; }
+
+ ///
+ /// List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.
+ ///
+ [YamlMember(Alias = "envFrom")]
+ [JsonProperty("envFrom", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List EnvFrom { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeEnvFrom() => EnvFrom.Count > 0;
+
+ ///
+ /// Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.
+ ///
+ [YamlMember(Alias = "stdin")]
+ [JsonProperty("stdin", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Stdin { get; set; }
+
+ ///
+ /// Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.
+ ///
+ [YamlMember(Alias = "workingDir")]
+ [JsonProperty("workingDir", NullValueHandling = NullValueHandling.Ignore)]
+ public string WorkingDir { get; set; }
+
+ ///
+ /// Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
+ ///
+ [YamlMember(Alias = "args")]
+ [JsonProperty("args", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Args { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeArgs() => Args.Count > 0;
+
+ ///
+ /// Ports are not allowed for ephemeral containers.
+ ///
+ [YamlMember(Alias = "ports")]
+ [MergeStrategy(Key = "containerPort")]
+ [JsonProperty("ports", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Ports { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializePorts() => Ports.Count > 0;
+
+ ///
+ /// Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.
+ ///
+ [YamlMember(Alias = "resources")]
+ [JsonProperty("resources", NullValueHandling = NullValueHandling.Ignore)]
+ public ResourceRequirementsV1 Resources { get; set; }
+
+ ///
+ /// volumeDevices is the list of block devices to be used by the container.
+ ///
+ [MergeStrategy(Key = "devicePath")]
+ [YamlMember(Alias = "volumeDevices")]
+ [JsonProperty("volumeDevices", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List VolumeDevices { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeVolumeDevices() => VolumeDevices.Count > 0;
+
+ ///
+ /// Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.
+ ///
+ [MergeStrategy(Key = "mountPath")]
+ [YamlMember(Alias = "volumeMounts")]
+ [JsonProperty("volumeMounts", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List VolumeMounts { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeVolumeMounts() => VolumeMounts.Count > 0;
+
+ ///
+ /// Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
+ ///
+ [YamlMember(Alias = "securityContext")]
+ [JsonProperty("securityContext", NullValueHandling = NullValueHandling.Ignore)]
+ public SecurityContextV1 SecurityContext { get; set; }
+
+ ///
+ /// List of environment variables to set in the container. Cannot be updated.
+ ///
+ [YamlMember(Alias = "env")]
+ [MergeStrategy(Key = "name")]
+ [JsonProperty("env", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Env { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeEnv() => Env.Count > 0;
+
+ ///
+ /// Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
+ ///
+ [YamlMember(Alias = "imagePullPolicy")]
+ [JsonProperty("imagePullPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string ImagePullPolicy { get; set; }
+
+ ///
+ /// Resources resize policy for the container.
+ ///
+ [YamlMember(Alias = "resizePolicy")]
+ [JsonProperty("resizePolicy", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ResizePolicy { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResizePolicy() => ResizePolicy.Count > 0;
+
+ ///
+ /// Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.
+ ///
+ [YamlMember(Alias = "restartPolicy")]
+ [JsonProperty("restartPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string RestartPolicy { get; set; }
+
+ ///
+ /// Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
+ ///
+ [YamlMember(Alias = "terminationMessagePolicy")]
+ [JsonProperty("terminationMessagePolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string TerminationMessagePolicy { get; set; }
+
+ ///
+ /// Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.
+ ///
+ [YamlMember(Alias = "tty")]
+ [JsonProperty("tty", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Tty { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/EphemeralVolumeSourceV1.cs b/src/KubeClient/Models/generated/EphemeralVolumeSourceV1.cs
new file mode 100644
index 00000000..4fd72727
--- /dev/null
+++ b/src/KubeClient/Models/generated/EphemeralVolumeSourceV1.cs
@@ -0,0 +1,26 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Represents an ephemeral volume that is handled by a normal storage driver.
+ ///
+ public partial class EphemeralVolumeSourceV1
+ {
+ ///
+ /// Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `<pod name>-<volume name>` where `<volume name>` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).
+ ///
+ /// An existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.
+ ///
+ /// This field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.
+ ///
+ /// Required, must not be nil.
+ ///
+ [YamlMember(Alias = "volumeClaimTemplate")]
+ [JsonProperty("volumeClaimTemplate", NullValueHandling = NullValueHandling.Ignore)]
+ public PersistentVolumeClaimTemplateV1 VolumeClaimTemplate { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/EventSeriesV1.cs b/src/KubeClient/Models/generated/EventSeriesV1.cs
index 9863aa2b..fa7f2f32 100644
--- a/src/KubeClient/Models/generated/EventSeriesV1.cs
+++ b/src/KubeClient/Models/generated/EventSeriesV1.cs
@@ -6,29 +6,22 @@
namespace KubeClient.Models
{
///
- /// EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.
+ /// EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations.
///
public partial class EventSeriesV1
{
///
- /// Time of the last occurrence observed
+ /// lastObservedTime is the time when last Event from the series was seen before last heartbeat.
///
[YamlMember(Alias = "lastObservedTime")]
- [JsonProperty("lastObservedTime", NullValueHandling = NullValueHandling.Ignore)]
- public MicroTimeV1? LastObservedTime { get; set; }
+ [JsonProperty("lastObservedTime", NullValueHandling = NullValueHandling.Include)]
+ public DateTime? LastObservedTime { get; set; }
///
- /// State of this Series: Ongoing or Finished
- ///
- [YamlMember(Alias = "state")]
- [JsonProperty("state", NullValueHandling = NullValueHandling.Ignore)]
- public string State { get; set; }
-
- ///
- /// Number of occurrences in this series up to the last heartbeat time
+ /// count is the number of occurrences in this series up to the last heartbeat time.
///
[YamlMember(Alias = "count")]
- [JsonProperty("count", NullValueHandling = NullValueHandling.Ignore)]
- public int? Count { get; set; }
+ [JsonProperty("count", NullValueHandling = NullValueHandling.Include)]
+ public int Count { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/EventV1.cs b/src/KubeClient/Models/generated/EventV1.cs
index 406ec1fa..d0b61480 100644
--- a/src/KubeClient/Models/generated/EventV1.cs
+++ b/src/KubeClient/Models/generated/EventV1.cs
@@ -6,7 +6,7 @@
namespace KubeClient.Models
{
///
- /// Event is a report of an event somewhere in the cluster.
+ /// Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.
///
[KubeObject("Event", "v1")]
[KubeApi(KubeAction.List, "api/v1/events")]
@@ -34,7 +34,7 @@ public partial class EventV1 : KubeResourceV1
///
[YamlMember(Alias = "eventTime")]
[JsonProperty("eventTime", NullValueHandling = NullValueHandling.Ignore)]
- public MicroTimeV1? EventTime { get; set; }
+ public DateTime? EventTime { get; set; }
///
/// A human-readable description of the status of this operation.
diff --git a/src/KubeClient/Models/generated/EvictionV1.cs b/src/KubeClient/Models/generated/EvictionV1.cs
new file mode 100644
index 00000000..95053163
--- /dev/null
+++ b/src/KubeClient/Models/generated/EvictionV1.cs
@@ -0,0 +1,22 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/<pod name>/evictions.
+ ///
+ [KubeObject("Eviction", "policy/v1")]
+ [KubeApi(KubeAction.Create, "api/v1/namespaces/{namespace}/pods/{name}/eviction")]
+ public partial class EvictionV1 : KubeResourceV1
+ {
+ ///
+ /// DeleteOptions may be provided
+ ///
+ [YamlMember(Alias = "deleteOptions")]
+ [JsonProperty("deleteOptions", NullValueHandling = NullValueHandling.Ignore)]
+ public DeleteOptionsV1 DeleteOptions { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ExemptPriorityLevelConfigurationV1.cs b/src/KubeClient/Models/generated/ExemptPriorityLevelConfigurationV1.cs
new file mode 100644
index 00000000..546f38dd
--- /dev/null
+++ b/src/KubeClient/Models/generated/ExemptPriorityLevelConfigurationV1.cs
@@ -0,0 +1,33 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.
+ ///
+ public partial class ExemptPriorityLevelConfigurationV1
+ {
+ ///
+ /// `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:
+ ///
+ /// NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)
+ ///
+ /// Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.
+ ///
+ [YamlMember(Alias = "nominalConcurrencyShares")]
+ [JsonProperty("nominalConcurrencyShares", NullValueHandling = NullValueHandling.Ignore)]
+ public int? NominalConcurrencyShares { get; set; }
+
+ ///
+ /// `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+ ///
+ /// LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+ ///
+ [YamlMember(Alias = "lendablePercent")]
+ [JsonProperty("lendablePercent", NullValueHandling = NullValueHandling.Ignore)]
+ public int? LendablePercent { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ExemptPriorityLevelConfigurationV1Beta3.cs b/src/KubeClient/Models/generated/ExemptPriorityLevelConfigurationV1Beta3.cs
new file mode 100644
index 00000000..924f4db5
--- /dev/null
+++ b/src/KubeClient/Models/generated/ExemptPriorityLevelConfigurationV1Beta3.cs
@@ -0,0 +1,33 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.
+ ///
+ public partial class ExemptPriorityLevelConfigurationV1Beta3
+ {
+ ///
+ /// `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:
+ ///
+ /// NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)
+ ///
+ /// Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.
+ ///
+ [YamlMember(Alias = "nominalConcurrencyShares")]
+ [JsonProperty("nominalConcurrencyShares", NullValueHandling = NullValueHandling.Ignore)]
+ public int? NominalConcurrencyShares { get; set; }
+
+ ///
+ /// `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+ ///
+ /// LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+ ///
+ [YamlMember(Alias = "lendablePercent")]
+ [JsonProperty("lendablePercent", NullValueHandling = NullValueHandling.Ignore)]
+ public int? LendablePercent { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ExpressionWarningV1.cs b/src/KubeClient/Models/generated/ExpressionWarningV1.cs
new file mode 100644
index 00000000..fe7d03b7
--- /dev/null
+++ b/src/KubeClient/Models/generated/ExpressionWarningV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ExpressionWarning is a warning information that targets a specific expression.
+ ///
+ public partial class ExpressionWarningV1
+ {
+ ///
+ /// The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
+ ///
+ [YamlMember(Alias = "fieldRef")]
+ [JsonProperty("fieldRef", NullValueHandling = NullValueHandling.Include)]
+ public string FieldRef { get; set; }
+
+ ///
+ /// The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
+ ///
+ [YamlMember(Alias = "warning")]
+ [JsonProperty("warning", NullValueHandling = NullValueHandling.Include)]
+ public string Warning { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ExpressionWarningV1Alpha1.cs b/src/KubeClient/Models/generated/ExpressionWarningV1Alpha1.cs
new file mode 100644
index 00000000..22cde91c
--- /dev/null
+++ b/src/KubeClient/Models/generated/ExpressionWarningV1Alpha1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ExpressionWarning is a warning information that targets a specific expression.
+ ///
+ public partial class ExpressionWarningV1Alpha1
+ {
+ ///
+ /// The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
+ ///
+ [YamlMember(Alias = "fieldRef")]
+ [JsonProperty("fieldRef", NullValueHandling = NullValueHandling.Include)]
+ public string FieldRef { get; set; }
+
+ ///
+ /// The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
+ ///
+ [YamlMember(Alias = "warning")]
+ [JsonProperty("warning", NullValueHandling = NullValueHandling.Include)]
+ public string Warning { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ExpressionWarningV1Beta1.cs b/src/KubeClient/Models/generated/ExpressionWarningV1Beta1.cs
new file mode 100644
index 00000000..d61720d9
--- /dev/null
+++ b/src/KubeClient/Models/generated/ExpressionWarningV1Beta1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ExpressionWarning is a warning information that targets a specific expression.
+ ///
+ public partial class ExpressionWarningV1Beta1
+ {
+ ///
+ /// The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
+ ///
+ [YamlMember(Alias = "fieldRef")]
+ [JsonProperty("fieldRef", NullValueHandling = NullValueHandling.Include)]
+ public string FieldRef { get; set; }
+
+ ///
+ /// The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
+ ///
+ [YamlMember(Alias = "warning")]
+ [JsonProperty("warning", NullValueHandling = NullValueHandling.Include)]
+ public string Warning { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ExternalDocumentationV1.cs b/src/KubeClient/Models/generated/ExternalDocumentationV1.cs
new file mode 100644
index 00000000..3bf71911
--- /dev/null
+++ b/src/KubeClient/Models/generated/ExternalDocumentationV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ExternalDocumentation allows referencing an external resource for extended documentation.
+ ///
+ public partial class ExternalDocumentationV1
+ {
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "url")]
+ [JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)]
+ public string Url { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "description")]
+ [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
+ public string Description { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ExternalMetricSourceV2.cs b/src/KubeClient/Models/generated/ExternalMetricSourceV2.cs
new file mode 100644
index 00000000..f3280d8d
--- /dev/null
+++ b/src/KubeClient/Models/generated/ExternalMetricSourceV2.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
+ ///
+ public partial class ExternalMetricSourceV2
+ {
+ ///
+ /// metric identifies the target metric by name and selector
+ ///
+ [YamlMember(Alias = "metric")]
+ [JsonProperty("metric", NullValueHandling = NullValueHandling.Include)]
+ public MetricIdentifierV2 Metric { get; set; }
+
+ ///
+ /// target specifies the target value for the given metric
+ ///
+ [YamlMember(Alias = "target")]
+ [JsonProperty("target", NullValueHandling = NullValueHandling.Include)]
+ public MetricTargetV2 Target { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ExternalMetricStatusV2.cs b/src/KubeClient/Models/generated/ExternalMetricStatusV2.cs
new file mode 100644
index 00000000..2c1e12a4
--- /dev/null
+++ b/src/KubeClient/Models/generated/ExternalMetricStatusV2.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.
+ ///
+ public partial class ExternalMetricStatusV2
+ {
+ ///
+ /// metric identifies the target metric by name and selector
+ ///
+ [YamlMember(Alias = "metric")]
+ [JsonProperty("metric", NullValueHandling = NullValueHandling.Include)]
+ public MetricIdentifierV2 Metric { get; set; }
+
+ ///
+ /// current contains the current value for the given metric
+ ///
+ [YamlMember(Alias = "current")]
+ [JsonProperty("current", NullValueHandling = NullValueHandling.Include)]
+ public MetricValueStatusV2 Current { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/FCVolumeSourceV1.cs b/src/KubeClient/Models/generated/FCVolumeSourceV1.cs
index d54cc937..4f2d0754 100644
--- a/src/KubeClient/Models/generated/FCVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/FCVolumeSourceV1.cs
@@ -11,21 +11,21 @@ namespace KubeClient.Models
public partial class FCVolumeSourceV1
{
///
- /// Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+ /// fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// Optional: FC target lun number
+ /// lun is Optional: FC target lun number
///
[YamlMember(Alias = "lun")]
[JsonProperty("lun", NullValueHandling = NullValueHandling.Ignore)]
public int? Lun { get; set; }
///
- /// Optional: FC target worldwide names (WWNs)
+ /// targetWWNs is Optional: FC target worldwide names (WWNs)
///
[YamlMember(Alias = "targetWWNs")]
[JsonProperty("targetWWNs", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -37,7 +37,7 @@ public partial class FCVolumeSourceV1
public bool ShouldSerializeTargetWWNs() => TargetWWNs.Count > 0;
///
- /// Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
+ /// wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
///
[YamlMember(Alias = "wwids")]
[JsonProperty("wwids", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -49,7 +49,7 @@ public partial class FCVolumeSourceV1
public bool ShouldSerializeWwids() => Wwids.Count > 0;
///
- /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
+ /// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/FieldSelectorAttributesV1.cs b/src/KubeClient/Models/generated/FieldSelectorAttributesV1.cs
new file mode 100644
index 00000000..574b3d3f
--- /dev/null
+++ b/src/KubeClient/Models/generated/FieldSelectorAttributesV1.cs
@@ -0,0 +1,32 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.
+ ///
+ public partial class FieldSelectorAttributesV1
+ {
+ ///
+ /// rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.
+ ///
+ [YamlMember(Alias = "rawSelector")]
+ [JsonProperty("rawSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public string RawSelector { get; set; }
+
+ ///
+ /// requirements is the parsed interpretation of a field selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.
+ ///
+ [YamlMember(Alias = "requirements")]
+ [JsonProperty("requirements", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Requirements { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRequirements() => Requirements.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/FieldSelectorRequirementV1.cs b/src/KubeClient/Models/generated/FieldSelectorRequirementV1.cs
new file mode 100644
index 00000000..7c76ce14
--- /dev/null
+++ b/src/KubeClient/Models/generated/FieldSelectorRequirementV1.cs
@@ -0,0 +1,39 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.
+ ///
+ public partial class FieldSelectorRequirementV1
+ {
+ ///
+ /// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.
+ ///
+ [YamlMember(Alias = "operator")]
+ [JsonProperty("operator", NullValueHandling = NullValueHandling.Include)]
+ public string Operator { get; set; }
+
+ ///
+ /// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.
+ ///
+ [YamlMember(Alias = "values")]
+ [JsonProperty("values", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Values { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeValues() => Values.Count > 0;
+
+ ///
+ /// key is the field selector key that the requirement applies to.
+ ///
+ [YamlMember(Alias = "key")]
+ [JsonProperty("key", NullValueHandling = NullValueHandling.Include)]
+ public string Key { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/FieldsV1.cs b/src/KubeClient/Models/generated/FieldsV1.cs
new file mode 100644
index 00000000..7649d2d1
--- /dev/null
+++ b/src/KubeClient/Models/generated/FieldsV1.cs
@@ -0,0 +1,18 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.
+ ///
+ /// Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.
+ ///
+ /// The exact format is defined in sigs.k8s.io/structured-merge-diff
+ ///
+ public partial class FieldsV1
+ {
+ }
+}
diff --git a/src/KubeClient/Models/generated/FlexPersistentVolumeSourceV1.cs b/src/KubeClient/Models/generated/FlexPersistentVolumeSourceV1.cs
index dbdb33f6..5de7a382 100644
--- a/src/KubeClient/Models/generated/FlexPersistentVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/FlexPersistentVolumeSourceV1.cs
@@ -11,28 +11,28 @@ namespace KubeClient.Models
public partial class FlexPersistentVolumeSourceV1
{
///
- /// Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
+ /// fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.
+ /// secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Ignore)]
public SecretReferenceV1 SecretRef { get; set; }
///
- /// Driver is the name of the driver to use for this volume.
+ /// driver is the name of the driver to use for this volume.
///
[YamlMember(Alias = "driver")]
[JsonProperty("driver", NullValueHandling = NullValueHandling.Include)]
public string Driver { get; set; }
///
- /// Optional: Extra command options if any.
+ /// options is Optional: this field holds extra command options if any.
///
[YamlMember(Alias = "options")]
[JsonProperty("options", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -44,7 +44,7 @@ public partial class FlexPersistentVolumeSourceV1
public bool ShouldSerializeOptions() => Options.Count > 0;
///
- /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
+ /// readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/FlexVolumeSourceV1.cs b/src/KubeClient/Models/generated/FlexVolumeSourceV1.cs
index d636de1d..92b73a69 100644
--- a/src/KubeClient/Models/generated/FlexVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/FlexVolumeSourceV1.cs
@@ -11,28 +11,28 @@ namespace KubeClient.Models
public partial class FlexVolumeSourceV1
{
///
- /// Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
+ /// fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.
+ /// secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Ignore)]
public LocalObjectReferenceV1 SecretRef { get; set; }
///
- /// Driver is the name of the driver to use for this volume.
+ /// driver is the name of the driver to use for this volume.
///
[YamlMember(Alias = "driver")]
[JsonProperty("driver", NullValueHandling = NullValueHandling.Include)]
public string Driver { get; set; }
///
- /// Optional: Extra command options if any.
+ /// options is Optional: this field holds extra command options if any.
///
[YamlMember(Alias = "options")]
[JsonProperty("options", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -44,7 +44,7 @@ public partial class FlexVolumeSourceV1
public bool ShouldSerializeOptions() => Options.Count > 0;
///
- /// Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
+ /// readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/FlockerVolumeSourceV1.cs b/src/KubeClient/Models/generated/FlockerVolumeSourceV1.cs
index 5f3116fe..a1385272 100644
--- a/src/KubeClient/Models/generated/FlockerVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/FlockerVolumeSourceV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class FlockerVolumeSourceV1
{
///
- /// UUID of the dataset. This is unique identifier of a Flocker dataset
+ /// datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset
///
[YamlMember(Alias = "datasetUUID")]
[JsonProperty("datasetUUID", NullValueHandling = NullValueHandling.Ignore)]
public string DatasetUUID { get; set; }
///
- /// Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated
+ /// datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated
///
[YamlMember(Alias = "datasetName")]
[JsonProperty("datasetName", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/FlowDistinguisherMethodV1.cs b/src/KubeClient/Models/generated/FlowDistinguisherMethodV1.cs
new file mode 100644
index 00000000..783b21db
--- /dev/null
+++ b/src/KubeClient/Models/generated/FlowDistinguisherMethodV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FlowDistinguisherMethod specifies the method of a flow distinguisher.
+ ///
+ public partial class FlowDistinguisherMethodV1
+ {
+ ///
+ /// `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/FlowDistinguisherMethodV1Beta3.cs b/src/KubeClient/Models/generated/FlowDistinguisherMethodV1Beta3.cs
new file mode 100644
index 00000000..5e11ba54
--- /dev/null
+++ b/src/KubeClient/Models/generated/FlowDistinguisherMethodV1Beta3.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FlowDistinguisherMethod specifies the method of a flow distinguisher.
+ ///
+ public partial class FlowDistinguisherMethodV1Beta3
+ {
+ ///
+ /// `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/FlowSchemaConditionV1.cs b/src/KubeClient/Models/generated/FlowSchemaConditionV1.cs
new file mode 100644
index 00000000..f3dfee5c
--- /dev/null
+++ b/src/KubeClient/Models/generated/FlowSchemaConditionV1.cs
@@ -0,0 +1,48 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FlowSchemaCondition describes conditions for a FlowSchema.
+ ///
+ public partial class FlowSchemaConditionV1
+ {
+ ///
+ /// `lastTransitionTime` is the last time the condition transitioned from one status to another.
+ ///
+ [YamlMember(Alias = "lastTransitionTime")]
+ [JsonProperty("lastTransitionTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastTransitionTime { get; set; }
+
+ ///
+ /// `message` is a human-readable message indicating details about last transition.
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
+ public string Message { get; set; }
+
+ ///
+ /// `type` is the type of the condition. Required.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)]
+ public string Type { get; set; }
+
+ ///
+ /// `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reason { get; set; }
+
+ ///
+ /// `status` is the status of the condition. Can be True, False, Unknown. Required.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/FlowSchemaConditionV1Beta3.cs b/src/KubeClient/Models/generated/FlowSchemaConditionV1Beta3.cs
new file mode 100644
index 00000000..409dd21c
--- /dev/null
+++ b/src/KubeClient/Models/generated/FlowSchemaConditionV1Beta3.cs
@@ -0,0 +1,48 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FlowSchemaCondition describes conditions for a FlowSchema.
+ ///
+ public partial class FlowSchemaConditionV1Beta3
+ {
+ ///
+ /// `lastTransitionTime` is the last time the condition transitioned from one status to another.
+ ///
+ [YamlMember(Alias = "lastTransitionTime")]
+ [JsonProperty("lastTransitionTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastTransitionTime { get; set; }
+
+ ///
+ /// `message` is a human-readable message indicating details about last transition.
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
+ public string Message { get; set; }
+
+ ///
+ /// `type` is the type of the condition. Required.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)]
+ public string Type { get; set; }
+
+ ///
+ /// `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reason { get; set; }
+
+ ///
+ /// `status` is the status of the condition. Can be True, False, Unknown. Required.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/FlowSchemaListV1.cs b/src/KubeClient/Models/generated/FlowSchemaListV1.cs
new file mode 100644
index 00000000..ef9329b4
--- /dev/null
+++ b/src/KubeClient/Models/generated/FlowSchemaListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FlowSchemaList is a list of FlowSchema objects.
+ ///
+ [KubeListItem("FlowSchema", "flowcontrol.apiserver.k8s.io/v1")]
+ [KubeObject("FlowSchemaList", "flowcontrol.apiserver.k8s.io/v1")]
+ public partial class FlowSchemaListV1 : KubeResourceListV1
+ {
+ ///
+ /// `items` is a list of FlowSchemas.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/FlowSchemaListV1Beta3.cs b/src/KubeClient/Models/generated/FlowSchemaListV1Beta3.cs
new file mode 100644
index 00000000..4237e062
--- /dev/null
+++ b/src/KubeClient/Models/generated/FlowSchemaListV1Beta3.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FlowSchemaList is a list of FlowSchema objects.
+ ///
+ [KubeListItem("FlowSchema", "flowcontrol.apiserver.k8s.io/v1beta3")]
+ [KubeObject("FlowSchemaList", "flowcontrol.apiserver.k8s.io/v1beta3")]
+ public partial class FlowSchemaListV1Beta3 : KubeResourceListV1
+ {
+ ///
+ /// `items` is a list of FlowSchemas.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/FlowSchemaSpecV1.cs b/src/KubeClient/Models/generated/FlowSchemaSpecV1.cs
new file mode 100644
index 00000000..e61330e7
--- /dev/null
+++ b/src/KubeClient/Models/generated/FlowSchemaSpecV1.cs
@@ -0,0 +1,46 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FlowSchemaSpec describes how the FlowSchema's specification looks like.
+ ///
+ public partial class FlowSchemaSpecV1
+ {
+ ///
+ /// `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string.
+ ///
+ [YamlMember(Alias = "distinguisherMethod")]
+ [JsonProperty("distinguisherMethod", NullValueHandling = NullValueHandling.Ignore)]
+ public FlowDistinguisherMethodV1 DistinguisherMethod { get; set; }
+
+ ///
+ /// `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.
+ ///
+ [YamlMember(Alias = "matchingPrecedence")]
+ [JsonProperty("matchingPrecedence", NullValueHandling = NullValueHandling.Ignore)]
+ public int? MatchingPrecedence { get; set; }
+
+ ///
+ /// `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required.
+ ///
+ [YamlMember(Alias = "priorityLevelConfiguration")]
+ [JsonProperty("priorityLevelConfiguration", NullValueHandling = NullValueHandling.Include)]
+ public PriorityLevelConfigurationReferenceV1 PriorityLevelConfiguration { get; set; }
+
+ ///
+ /// `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.
+ ///
+ [YamlMember(Alias = "rules")]
+ [JsonProperty("rules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Rules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRules() => Rules.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/FlowSchemaSpecV1Beta3.cs b/src/KubeClient/Models/generated/FlowSchemaSpecV1Beta3.cs
new file mode 100644
index 00000000..4aad5dd9
--- /dev/null
+++ b/src/KubeClient/Models/generated/FlowSchemaSpecV1Beta3.cs
@@ -0,0 +1,46 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FlowSchemaSpec describes how the FlowSchema's specification looks like.
+ ///
+ public partial class FlowSchemaSpecV1Beta3
+ {
+ ///
+ /// `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string.
+ ///
+ [YamlMember(Alias = "distinguisherMethod")]
+ [JsonProperty("distinguisherMethod", NullValueHandling = NullValueHandling.Ignore)]
+ public FlowDistinguisherMethodV1Beta3 DistinguisherMethod { get; set; }
+
+ ///
+ /// `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.
+ ///
+ [YamlMember(Alias = "matchingPrecedence")]
+ [JsonProperty("matchingPrecedence", NullValueHandling = NullValueHandling.Ignore)]
+ public int? MatchingPrecedence { get; set; }
+
+ ///
+ /// `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required.
+ ///
+ [YamlMember(Alias = "priorityLevelConfiguration")]
+ [JsonProperty("priorityLevelConfiguration", NullValueHandling = NullValueHandling.Include)]
+ public PriorityLevelConfigurationReferenceV1Beta3 PriorityLevelConfiguration { get; set; }
+
+ ///
+ /// `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.
+ ///
+ [YamlMember(Alias = "rules")]
+ [JsonProperty("rules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Rules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRules() => Rules.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/FlowSchemaStatusV1.cs b/src/KubeClient/Models/generated/FlowSchemaStatusV1.cs
new file mode 100644
index 00000000..6ea903df
--- /dev/null
+++ b/src/KubeClient/Models/generated/FlowSchemaStatusV1.cs
@@ -0,0 +1,26 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FlowSchemaStatus represents the current state of a FlowSchema.
+ ///
+ public partial class FlowSchemaStatusV1
+ {
+ ///
+ /// `conditions` is a list of the current states of FlowSchema.
+ ///
+ [MergeStrategy(Key = "type")]
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/FlowSchemaStatusV1Beta3.cs b/src/KubeClient/Models/generated/FlowSchemaStatusV1Beta3.cs
new file mode 100644
index 00000000..623cfe95
--- /dev/null
+++ b/src/KubeClient/Models/generated/FlowSchemaStatusV1Beta3.cs
@@ -0,0 +1,26 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FlowSchemaStatus represents the current state of a FlowSchema.
+ ///
+ public partial class FlowSchemaStatusV1Beta3
+ {
+ ///
+ /// `conditions` is a list of the current states of FlowSchema.
+ ///
+ [MergeStrategy(Key = "type")]
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/FlowSchemaV1.cs b/src/KubeClient/Models/generated/FlowSchemaV1.cs
new file mode 100644
index 00000000..56ca02ad
--- /dev/null
+++ b/src/KubeClient/Models/generated/FlowSchemaV1.cs
@@ -0,0 +1,40 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".
+ ///
+ [KubeObject("FlowSchema", "flowcontrol.apiserver.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/flowcontrol.apiserver.k8s.io/v1/flowschemas")]
+ [KubeApi(KubeAction.Create, "apis/flowcontrol.apiserver.k8s.io/v1/flowschemas")]
+ [KubeApi(KubeAction.Get, "apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}")]
+ [KubeApi(KubeAction.Update, "apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/flowcontrol.apiserver.k8s.io/v1/flowschemas")]
+ [KubeApi(KubeAction.Get, "apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status")]
+ public partial class FlowSchemaV1 : KubeResourceV1
+ {
+ ///
+ /// `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public FlowSchemaSpecV1 Spec { get; set; }
+
+ ///
+ /// `status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public FlowSchemaStatusV1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/FlowSchemaV1Beta3.cs b/src/KubeClient/Models/generated/FlowSchemaV1Beta3.cs
new file mode 100644
index 00000000..31ddcee9
--- /dev/null
+++ b/src/KubeClient/Models/generated/FlowSchemaV1Beta3.cs
@@ -0,0 +1,40 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher".
+ ///
+ [KubeObject("FlowSchema", "flowcontrol.apiserver.k8s.io/v1beta3")]
+ [KubeApi(KubeAction.List, "apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas")]
+ [KubeApi(KubeAction.Create, "apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas")]
+ [KubeApi(KubeAction.Get, "apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}")]
+ [KubeApi(KubeAction.Update, "apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas")]
+ [KubeApi(KubeAction.Get, "apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status")]
+ public partial class FlowSchemaV1Beta3 : KubeResourceV1
+ {
+ ///
+ /// `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public FlowSchemaSpecV1Beta3 Spec { get; set; }
+
+ ///
+ /// `status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public FlowSchemaStatusV1Beta3 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ForZoneV1.cs b/src/KubeClient/Models/generated/ForZoneV1.cs
new file mode 100644
index 00000000..8fc5cb7d
--- /dev/null
+++ b/src/KubeClient/Models/generated/ForZoneV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ForZone provides information about which zones should consume this endpoint.
+ ///
+ public partial class ForZoneV1
+ {
+ ///
+ /// name represents the name of the zone.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/GCEPersistentDiskVolumeSourceV1.cs b/src/KubeClient/Models/generated/GCEPersistentDiskVolumeSourceV1.cs
index bfcb6c94..4458cd01 100644
--- a/src/KubeClient/Models/generated/GCEPersistentDiskVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/GCEPersistentDiskVolumeSourceV1.cs
@@ -13,28 +13,28 @@ namespace KubeClient.Models
public partial class GCEPersistentDiskVolumeSourceV1
{
///
- /// Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
+ /// fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
+ /// pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
///
[YamlMember(Alias = "pdName")]
[JsonProperty("pdName", NullValueHandling = NullValueHandling.Include)]
public string PdName { get; set; }
///
- /// The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
+ /// partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
///
[YamlMember(Alias = "partition")]
[JsonProperty("partition", NullValueHandling = NullValueHandling.Ignore)]
public int? Partition { get; set; }
///
- /// ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
+ /// readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/GRPCActionV1.cs b/src/KubeClient/Models/generated/GRPCActionV1.cs
new file mode 100644
index 00000000..7ad8aa51
--- /dev/null
+++ b/src/KubeClient/Models/generated/GRPCActionV1.cs
@@ -0,0 +1,29 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// No description provided.
+ ///
+ public partial class GRPCActionV1
+ {
+ ///
+ /// Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
+ ///
+ /// If this is not specified, the default behavior is defined by gRPC.
+ ///
+ [YamlMember(Alias = "service")]
+ [JsonProperty("service", NullValueHandling = NullValueHandling.Ignore)]
+ public string Service { get; set; }
+
+ ///
+ /// Port number of the gRPC service. Number must be in the range 1 to 65535.
+ ///
+ [YamlMember(Alias = "port")]
+ [JsonProperty("port", NullValueHandling = NullValueHandling.Include)]
+ public int Port { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/GitRepoVolumeSourceV1.cs b/src/KubeClient/Models/generated/GitRepoVolumeSourceV1.cs
index af519b25..405c8d5e 100644
--- a/src/KubeClient/Models/generated/GitRepoVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/GitRepoVolumeSourceV1.cs
@@ -13,21 +13,21 @@ namespace KubeClient.Models
public partial class GitRepoVolumeSourceV1
{
///
- /// Commit hash for the specified revision.
+ /// revision is the commit hash for the specified revision.
///
[YamlMember(Alias = "revision")]
[JsonProperty("revision", NullValueHandling = NullValueHandling.Ignore)]
public string Revision { get; set; }
///
- /// Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.
+ /// directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.
///
[YamlMember(Alias = "directory")]
[JsonProperty("directory", NullValueHandling = NullValueHandling.Ignore)]
public string Directory { get; set; }
///
- /// Repository URL
+ /// repository is the URL
///
[YamlMember(Alias = "repository")]
[JsonProperty("repository", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/GlusterfsPersistentVolumeSourceV1.cs b/src/KubeClient/Models/generated/GlusterfsPersistentVolumeSourceV1.cs
new file mode 100644
index 00000000..efbbf2c6
--- /dev/null
+++ b/src/KubeClient/Models/generated/GlusterfsPersistentVolumeSourceV1.cs
@@ -0,0 +1,41 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.
+ ///
+ public partial class GlusterfsPersistentVolumeSourceV1
+ {
+ ///
+ /// endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
+ ///
+ [YamlMember(Alias = "endpointsNamespace")]
+ [JsonProperty("endpointsNamespace", NullValueHandling = NullValueHandling.Ignore)]
+ public string EndpointsNamespace { get; set; }
+
+ ///
+ /// path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
+ ///
+ [YamlMember(Alias = "path")]
+ [JsonProperty("path", NullValueHandling = NullValueHandling.Include)]
+ public string Path { get; set; }
+
+ ///
+ /// endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
+ ///
+ [YamlMember(Alias = "endpoints")]
+ [JsonProperty("endpoints", NullValueHandling = NullValueHandling.Include)]
+ public string Endpoints { get; set; }
+
+ ///
+ /// readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
+ ///
+ [YamlMember(Alias = "readOnly")]
+ [JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? ReadOnly { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/GlusterfsVolumeSourceV1.cs b/src/KubeClient/Models/generated/GlusterfsVolumeSourceV1.cs
index fc3f93fb..caac14af 100644
--- a/src/KubeClient/Models/generated/GlusterfsVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/GlusterfsVolumeSourceV1.cs
@@ -11,21 +11,21 @@ namespace KubeClient.Models
public partial class GlusterfsVolumeSourceV1
{
///
- /// Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod
+ /// path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
///
[YamlMember(Alias = "path")]
[JsonProperty("path", NullValueHandling = NullValueHandling.Include)]
public string Path { get; set; }
///
- /// EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod
+ /// endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
///
[YamlMember(Alias = "endpoints")]
[JsonProperty("endpoints", NullValueHandling = NullValueHandling.Include)]
public string Endpoints { get; set; }
///
- /// ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod
+ /// readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/GroupSubjectV1.cs b/src/KubeClient/Models/generated/GroupSubjectV1.cs
new file mode 100644
index 00000000..000b0f53
--- /dev/null
+++ b/src/KubeClient/Models/generated/GroupSubjectV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// GroupSubject holds detailed information for group-kind subject.
+ ///
+ public partial class GroupSubjectV1
+ {
+ ///
+ /// name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/GroupSubjectV1Beta3.cs b/src/KubeClient/Models/generated/GroupSubjectV1Beta3.cs
new file mode 100644
index 00000000..f6cb6781
--- /dev/null
+++ b/src/KubeClient/Models/generated/GroupSubjectV1Beta3.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// GroupSubject holds detailed information for group-kind subject.
+ ///
+ public partial class GroupSubjectV1Beta3
+ {
+ ///
+ /// name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/GroupVersionResourceV1Alpha1.cs b/src/KubeClient/Models/generated/GroupVersionResourceV1Alpha1.cs
new file mode 100644
index 00000000..fe6b4a15
--- /dev/null
+++ b/src/KubeClient/Models/generated/GroupVersionResourceV1Alpha1.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// The names of the group, the version, and the resource.
+ ///
+ public partial class GroupVersionResourceV1Alpha1
+ {
+ ///
+ /// The name of the resource.
+ ///
+ [YamlMember(Alias = "resource")]
+ [JsonProperty("resource", NullValueHandling = NullValueHandling.Ignore)]
+ public string Resource { get; set; }
+
+ ///
+ /// The name of the version.
+ ///
+ [YamlMember(Alias = "version")]
+ [JsonProperty("version", NullValueHandling = NullValueHandling.Ignore)]
+ public string Version { get; set; }
+
+ ///
+ /// The name of the group.
+ ///
+ [YamlMember(Alias = "group")]
+ [JsonProperty("group", NullValueHandling = NullValueHandling.Ignore)]
+ public string Group { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/HPAScalingPolicyV2.cs b/src/KubeClient/Models/generated/HPAScalingPolicyV2.cs
new file mode 100644
index 00000000..a4544cef
--- /dev/null
+++ b/src/KubeClient/Models/generated/HPAScalingPolicyV2.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// HPAScalingPolicy is a single policy which must hold true for a specified past interval.
+ ///
+ public partial class HPAScalingPolicyV2
+ {
+ ///
+ /// type is used to specify the scaling policy.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// value contains the amount of change which is permitted by the policy. It must be greater than zero
+ ///
+ [YamlMember(Alias = "value")]
+ [JsonProperty("value", NullValueHandling = NullValueHandling.Include)]
+ public int Value { get; set; }
+
+ ///
+ /// periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
+ ///
+ [YamlMember(Alias = "periodSeconds")]
+ [JsonProperty("periodSeconds", NullValueHandling = NullValueHandling.Include)]
+ public int PeriodSeconds { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/HPAScalingRulesV2.cs b/src/KubeClient/Models/generated/HPAScalingRulesV2.cs
new file mode 100644
index 00000000..2e520d59
--- /dev/null
+++ b/src/KubeClient/Models/generated/HPAScalingRulesV2.cs
@@ -0,0 +1,39 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
+ ///
+ public partial class HPAScalingRulesV2
+ {
+ ///
+ /// policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
+ ///
+ [YamlMember(Alias = "policies")]
+ [JsonProperty("policies", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Policies { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializePolicies() => Policies.Count > 0;
+
+ ///
+ /// stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
+ ///
+ [YamlMember(Alias = "stabilizationWindowSeconds")]
+ [JsonProperty("stabilizationWindowSeconds", NullValueHandling = NullValueHandling.Ignore)]
+ public int? StabilizationWindowSeconds { get; set; }
+
+ ///
+ /// selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.
+ ///
+ [YamlMember(Alias = "selectPolicy")]
+ [JsonProperty("selectPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string SelectPolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/HTTPHeaderV1.cs b/src/KubeClient/Models/generated/HTTPHeaderV1.cs
index efefa802..14101b66 100644
--- a/src/KubeClient/Models/generated/HTTPHeaderV1.cs
+++ b/src/KubeClient/Models/generated/HTTPHeaderV1.cs
@@ -11,7 +11,7 @@ namespace KubeClient.Models
public partial class HTTPHeaderV1
{
///
- /// The header field name
+ /// The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/HTTPIngressPathV1.cs b/src/KubeClient/Models/generated/HTTPIngressPathV1.cs
new file mode 100644
index 00000000..35b7b353
--- /dev/null
+++ b/src/KubeClient/Models/generated/HTTPIngressPathV1.cs
@@ -0,0 +1,44 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.
+ ///
+ public partial class HTTPIngressPathV1
+ {
+ ///
+ /// backend defines the referenced service endpoint to which the traffic will be forwarded to.
+ ///
+ [YamlMember(Alias = "backend")]
+ [JsonProperty("backend", NullValueHandling = NullValueHandling.Include)]
+ public IngressBackendV1 Backend { get; set; }
+
+ ///
+ /// pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is
+ /// done on a path element by element basis. A path element refers is the
+ /// list of labels in the path split by the '/' separator. A request is a
+ /// match for path p if every p is an element-wise prefix of p of the
+ /// request path. Note that if the last element of the path is a substring
+ /// of the last element in request path, it is not a match (e.g. /foo/bar
+ /// matches /foo/bar/baz, but does not match /foo/barbaz).
+ /// * ImplementationSpecific: Interpretation of the Path matching is up to
+ /// the IngressClass. Implementations can treat this as a separate PathType
+ /// or treat it identically to Prefix or Exact path types.
+ /// Implementations are required to support all path types.
+ ///
+ [YamlMember(Alias = "pathType")]
+ [JsonProperty("pathType", NullValueHandling = NullValueHandling.Include)]
+ public string PathType { get; set; }
+
+ ///
+ /// path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value "Exact" or "Prefix".
+ ///
+ [YamlMember(Alias = "path")]
+ [JsonProperty("path", NullValueHandling = NullValueHandling.Ignore)]
+ public string Path { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/HTTPIngressRuleValueV1.cs b/src/KubeClient/Models/generated/HTTPIngressRuleValueV1.cs
new file mode 100644
index 00000000..3cb8cbf5
--- /dev/null
+++ b/src/KubeClient/Models/generated/HTTPIngressRuleValueV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.
+ ///
+ public partial class HTTPIngressRuleValueV1
+ {
+ ///
+ /// paths is a collection of paths that map requests to backends.
+ ///
+ [YamlMember(Alias = "paths")]
+ [JsonProperty("paths", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Paths { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/HorizontalPodAutoscalerBehaviorV2.cs b/src/KubeClient/Models/generated/HorizontalPodAutoscalerBehaviorV2.cs
new file mode 100644
index 00000000..320a78a8
--- /dev/null
+++ b/src/KubeClient/Models/generated/HorizontalPodAutoscalerBehaviorV2.cs
@@ -0,0 +1,30 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).
+ ///
+ public partial class HorizontalPodAutoscalerBehaviorV2
+ {
+ ///
+ /// scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used).
+ ///
+ [YamlMember(Alias = "scaleDown")]
+ [JsonProperty("scaleDown", NullValueHandling = NullValueHandling.Ignore)]
+ public HPAScalingRulesV2 ScaleDown { get; set; }
+
+ ///
+ /// scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:
+ /// * increase no more than 4 pods per 60 seconds
+ /// * double the number of pods per 60 seconds
+ /// No stabilization is used.
+ ///
+ [YamlMember(Alias = "scaleUp")]
+ [JsonProperty("scaleUp", NullValueHandling = NullValueHandling.Ignore)]
+ public HPAScalingRulesV2 ScaleUp { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/HorizontalPodAutoscalerConditionV2.cs b/src/KubeClient/Models/generated/HorizontalPodAutoscalerConditionV2.cs
new file mode 100644
index 00000000..8b5a06ad
--- /dev/null
+++ b/src/KubeClient/Models/generated/HorizontalPodAutoscalerConditionV2.cs
@@ -0,0 +1,48 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.
+ ///
+ public partial class HorizontalPodAutoscalerConditionV2
+ {
+ ///
+ /// lastTransitionTime is the last time the condition transitioned from one status to another
+ ///
+ [YamlMember(Alias = "lastTransitionTime")]
+ [JsonProperty("lastTransitionTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastTransitionTime { get; set; }
+
+ ///
+ /// message is a human-readable explanation containing details about the transition
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
+ public string Message { get; set; }
+
+ ///
+ /// type describes the current condition
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// reason is the reason for the condition's last transition.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reason { get; set; }
+
+ ///
+ /// status is the status of the condition (True, False, Unknown)
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Include)]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/HorizontalPodAutoscalerListV1.cs b/src/KubeClient/Models/generated/HorizontalPodAutoscalerListV1.cs
index caf23338..7d13deee 100644
--- a/src/KubeClient/Models/generated/HorizontalPodAutoscalerListV1.cs
+++ b/src/KubeClient/Models/generated/HorizontalPodAutoscalerListV1.cs
@@ -13,7 +13,7 @@ namespace KubeClient.Models
public partial class HorizontalPodAutoscalerListV1 : KubeResourceListV1
{
///
- /// list of horizontal pod autoscaler objects.
+ /// items is the list of horizontal pod autoscaler objects.
///
[JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public override List Items { get; } = new List();
diff --git a/src/KubeClient/Models/generated/HorizontalPodAutoscalerListV2.cs b/src/KubeClient/Models/generated/HorizontalPodAutoscalerListV2.cs
new file mode 100644
index 00000000..1c7ee7ce
--- /dev/null
+++ b/src/KubeClient/Models/generated/HorizontalPodAutoscalerListV2.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.
+ ///
+ [KubeListItem("HorizontalPodAutoscaler", "autoscaling/v2")]
+ [KubeObject("HorizontalPodAutoscalerList", "autoscaling/v2")]
+ public partial class HorizontalPodAutoscalerListV2 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of horizontal pod autoscaler objects.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/HorizontalPodAutoscalerSpecV1.cs b/src/KubeClient/Models/generated/HorizontalPodAutoscalerSpecV1.cs
index 92ba246d..2fbfb3fb 100644
--- a/src/KubeClient/Models/generated/HorizontalPodAutoscalerSpecV1.cs
+++ b/src/KubeClient/Models/generated/HorizontalPodAutoscalerSpecV1.cs
@@ -11,7 +11,7 @@ namespace KubeClient.Models
public partial class HorizontalPodAutoscalerSpecV1
{
///
- /// target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.
+ /// targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.
///
[YamlMember(Alias = "targetCPUUtilizationPercentage")]
[JsonProperty("targetCPUUtilizationPercentage", NullValueHandling = NullValueHandling.Ignore)]
@@ -25,14 +25,14 @@ public partial class HorizontalPodAutoscalerSpecV1
public CrossVersionObjectReferenceV1 ScaleTargetRef { get; set; }
///
- /// upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
+ /// maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
///
[YamlMember(Alias = "maxReplicas")]
[JsonProperty("maxReplicas", NullValueHandling = NullValueHandling.Include)]
public int MaxReplicas { get; set; }
///
- /// lower limit for the number of pods that can be set by the autoscaler, default 1.
+ /// minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.
///
[YamlMember(Alias = "minReplicas")]
[JsonProperty("minReplicas", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/HorizontalPodAutoscalerSpecV2.cs b/src/KubeClient/Models/generated/HorizontalPodAutoscalerSpecV2.cs
new file mode 100644
index 00000000..6eb17717
--- /dev/null
+++ b/src/KubeClient/Models/generated/HorizontalPodAutoscalerSpecV2.cs
@@ -0,0 +1,53 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.
+ ///
+ public partial class HorizontalPodAutoscalerSpecV2
+ {
+ ///
+ /// scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.
+ ///
+ [YamlMember(Alias = "scaleTargetRef")]
+ [JsonProperty("scaleTargetRef", NullValueHandling = NullValueHandling.Include)]
+ public CrossVersionObjectReferenceV2 ScaleTargetRef { get; set; }
+
+ ///
+ /// behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used.
+ ///
+ [YamlMember(Alias = "behavior")]
+ [JsonProperty("behavior", NullValueHandling = NullValueHandling.Ignore)]
+ public HorizontalPodAutoscalerBehaviorV2 Behavior { get; set; }
+
+ ///
+ /// maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.
+ ///
+ [YamlMember(Alias = "maxReplicas")]
+ [JsonProperty("maxReplicas", NullValueHandling = NullValueHandling.Include)]
+ public int MaxReplicas { get; set; }
+
+ ///
+ /// metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.
+ ///
+ [YamlMember(Alias = "metrics")]
+ [JsonProperty("metrics", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Metrics { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeMetrics() => Metrics.Count > 0;
+
+ ///
+ /// minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.
+ ///
+ [YamlMember(Alias = "minReplicas")]
+ [JsonProperty("minReplicas", NullValueHandling = NullValueHandling.Ignore)]
+ public int? MinReplicas { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/HorizontalPodAutoscalerStatusV1.cs b/src/KubeClient/Models/generated/HorizontalPodAutoscalerStatusV1.cs
index efc3a3be..2c5342e5 100644
--- a/src/KubeClient/Models/generated/HorizontalPodAutoscalerStatusV1.cs
+++ b/src/KubeClient/Models/generated/HorizontalPodAutoscalerStatusV1.cs
@@ -11,35 +11,35 @@ namespace KubeClient.Models
public partial class HorizontalPodAutoscalerStatusV1
{
///
- /// current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.
+ /// currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.
///
[YamlMember(Alias = "currentCPUUtilizationPercentage")]
[JsonProperty("currentCPUUtilizationPercentage", NullValueHandling = NullValueHandling.Ignore)]
public int? CurrentCPUUtilizationPercentage { get; set; }
///
- /// last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.
+ /// lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.
///
[YamlMember(Alias = "lastScaleTime")]
[JsonProperty("lastScaleTime", NullValueHandling = NullValueHandling.Ignore)]
public DateTime? LastScaleTime { get; set; }
///
- /// most recent generation observed by this autoscaler.
+ /// observedGeneration is the most recent generation observed by this autoscaler.
///
[YamlMember(Alias = "observedGeneration")]
[JsonProperty("observedGeneration", NullValueHandling = NullValueHandling.Ignore)]
public long? ObservedGeneration { get; set; }
///
- /// current number of replicas of pods managed by this autoscaler.
+ /// currentReplicas is the current number of replicas of pods managed by this autoscaler.
///
[YamlMember(Alias = "currentReplicas")]
[JsonProperty("currentReplicas", NullValueHandling = NullValueHandling.Include)]
public int CurrentReplicas { get; set; }
///
- /// desired number of replicas of pods managed by this autoscaler.
+ /// desiredReplicas is the desired number of replicas of pods managed by this autoscaler.
///
[YamlMember(Alias = "desiredReplicas")]
[JsonProperty("desiredReplicas", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/HorizontalPodAutoscalerStatusV2.cs b/src/KubeClient/Models/generated/HorizontalPodAutoscalerStatusV2.cs
new file mode 100644
index 00000000..bf915452
--- /dev/null
+++ b/src/KubeClient/Models/generated/HorizontalPodAutoscalerStatusV2.cs
@@ -0,0 +1,66 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.
+ ///
+ public partial class HorizontalPodAutoscalerStatusV2
+ {
+ ///
+ /// lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.
+ ///
+ [YamlMember(Alias = "lastScaleTime")]
+ [JsonProperty("lastScaleTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastScaleTime { get; set; }
+
+ ///
+ /// observedGeneration is the most recent generation observed by this autoscaler.
+ ///
+ [YamlMember(Alias = "observedGeneration")]
+ [JsonProperty("observedGeneration", NullValueHandling = NullValueHandling.Ignore)]
+ public long? ObservedGeneration { get; set; }
+
+ ///
+ /// conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.
+ ///
+ [MergeStrategy(Key = "type")]
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+
+ ///
+ /// currentMetrics is the last read state of the metrics used by this autoscaler.
+ ///
+ [YamlMember(Alias = "currentMetrics")]
+ [JsonProperty("currentMetrics", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List CurrentMetrics { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeCurrentMetrics() => CurrentMetrics.Count > 0;
+
+ ///
+ /// currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.
+ ///
+ [YamlMember(Alias = "currentReplicas")]
+ [JsonProperty("currentReplicas", NullValueHandling = NullValueHandling.Ignore)]
+ public int? CurrentReplicas { get; set; }
+
+ ///
+ /// desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.
+ ///
+ [YamlMember(Alias = "desiredReplicas")]
+ [JsonProperty("desiredReplicas", NullValueHandling = NullValueHandling.Include)]
+ public int DesiredReplicas { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/HorizontalPodAutoscalerV1.cs b/src/KubeClient/Models/generated/HorizontalPodAutoscalerV1.cs
index 37a4d2c0..504acb49 100644
--- a/src/KubeClient/Models/generated/HorizontalPodAutoscalerV1.cs
+++ b/src/KubeClient/Models/generated/HorizontalPodAutoscalerV1.cs
@@ -26,14 +26,14 @@ namespace KubeClient.Models
public partial class HorizontalPodAutoscalerV1 : KubeResourceV1
{
///
- /// behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.
+ /// spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
public HorizontalPodAutoscalerSpecV1 Spec { get; set; }
///
- /// current information about the autoscaler.
+ /// status is the current information about the autoscaler.
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/HorizontalPodAutoscalerV2.cs b/src/KubeClient/Models/generated/HorizontalPodAutoscalerV2.cs
new file mode 100644
index 00000000..d1243191
--- /dev/null
+++ b/src/KubeClient/Models/generated/HorizontalPodAutoscalerV2.cs
@@ -0,0 +1,42 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.
+ ///
+ [KubeObject("HorizontalPodAutoscaler", "autoscaling/v2")]
+ [KubeApi(KubeAction.List, "apis/autoscaling/v2/horizontalpodautoscalers")]
+ [KubeApi(KubeAction.WatchList, "apis/autoscaling/v2/watch/horizontalpodautoscalers")]
+ [KubeApi(KubeAction.List, "apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers")]
+ [KubeApi(KubeAction.Create, "apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers")]
+ [KubeApi(KubeAction.Get, "apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}")]
+ [KubeApi(KubeAction.Update, "apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers")]
+ [KubeApi(KubeAction.Get, "apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status")]
+ public partial class HorizontalPodAutoscalerV2 : KubeResourceV1
+ {
+ ///
+ /// spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public HorizontalPodAutoscalerSpecV2 Spec { get; set; }
+
+ ///
+ /// status is the current information about the autoscaler.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public HorizontalPodAutoscalerStatusV2 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/HostAliasV1.cs b/src/KubeClient/Models/generated/HostAliasV1.cs
index fe9faeab..05b2f8cd 100644
--- a/src/KubeClient/Models/generated/HostAliasV1.cs
+++ b/src/KubeClient/Models/generated/HostAliasV1.cs
@@ -14,7 +14,7 @@ public partial class HostAliasV1
/// IP address of the host file entry.
///
[YamlMember(Alias = "ip")]
- [JsonProperty("ip", NullValueHandling = NullValueHandling.Ignore)]
+ [JsonProperty("ip", NullValueHandling = NullValueHandling.Include)]
public string Ip { get; set; }
///
diff --git a/src/KubeClient/Models/generated/HostIPV1.cs b/src/KubeClient/Models/generated/HostIPV1.cs
new file mode 100644
index 00000000..964f28f9
--- /dev/null
+++ b/src/KubeClient/Models/generated/HostIPV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// HostIP represents a single IP address allocated to the host.
+ ///
+ public partial class HostIPV1
+ {
+ ///
+ /// IP is the IP address assigned to the host
+ ///
+ [YamlMember(Alias = "ip")]
+ [JsonProperty("ip", NullValueHandling = NullValueHandling.Include)]
+ public string Ip { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/HostPathVolumeSourceV1.cs b/src/KubeClient/Models/generated/HostPathVolumeSourceV1.cs
index 9bc723fb..5c446a38 100644
--- a/src/KubeClient/Models/generated/HostPathVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/HostPathVolumeSourceV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class HostPathVolumeSourceV1
{
///
- /// Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
+ /// type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
///
[YamlMember(Alias = "type")]
[JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)]
public string Type { get; set; }
///
- /// Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
+ /// path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
///
[YamlMember(Alias = "path")]
[JsonProperty("path", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/IPAddressListV1Beta1.cs b/src/KubeClient/Models/generated/IPAddressListV1Beta1.cs
new file mode 100644
index 00000000..ba3bf520
--- /dev/null
+++ b/src/KubeClient/Models/generated/IPAddressListV1Beta1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IPAddressList contains a list of IPAddress.
+ ///
+ [KubeListItem("IPAddress", "networking.k8s.io/v1beta1")]
+ [KubeObject("IPAddressList", "networking.k8s.io/v1beta1")]
+ public partial class IPAddressListV1Beta1 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of IPAddresses.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/IPAddressSpecV1Beta1.cs b/src/KubeClient/Models/generated/IPAddressSpecV1Beta1.cs
new file mode 100644
index 00000000..cabb68af
--- /dev/null
+++ b/src/KubeClient/Models/generated/IPAddressSpecV1Beta1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IPAddressSpec describe the attributes in an IP Address.
+ ///
+ public partial class IPAddressSpecV1Beta1
+ {
+ ///
+ /// ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object.
+ ///
+ [YamlMember(Alias = "parentRef")]
+ [JsonProperty("parentRef", NullValueHandling = NullValueHandling.Include)]
+ public ParentReferenceV1Beta1 ParentRef { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/IPAddressV1Beta1.cs b/src/KubeClient/Models/generated/IPAddressV1Beta1.cs
new file mode 100644
index 00000000..94036495
--- /dev/null
+++ b/src/KubeClient/Models/generated/IPAddressV1Beta1.cs
@@ -0,0 +1,30 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1
+ ///
+ [KubeObject("IPAddress", "networking.k8s.io/v1beta1")]
+ [KubeApi(KubeAction.List, "apis/networking.k8s.io/v1beta1/ipaddresses")]
+ [KubeApi(KubeAction.Create, "apis/networking.k8s.io/v1beta1/ipaddresses")]
+ [KubeApi(KubeAction.Get, "apis/networking.k8s.io/v1beta1/ipaddresses/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/networking.k8s.io/v1beta1/ipaddresses/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/networking.k8s.io/v1beta1/ipaddresses/{name}")]
+ [KubeApi(KubeAction.Update, "apis/networking.k8s.io/v1beta1/ipaddresses/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/networking.k8s.io/v1beta1/watch/ipaddresses")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/networking.k8s.io/v1beta1/ipaddresses")]
+ [KubeApi(KubeAction.Watch, "apis/networking.k8s.io/v1beta1/watch/ipaddresses/{name}")]
+ public partial class IPAddressV1Beta1 : KubeResourceV1
+ {
+ ///
+ /// spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public IPAddressSpecV1Beta1 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/IPBlockV1.cs b/src/KubeClient/Models/generated/IPBlockV1.cs
index 779088c1..92e236de 100644
--- a/src/KubeClient/Models/generated/IPBlockV1.cs
+++ b/src/KubeClient/Models/generated/IPBlockV1.cs
@@ -6,19 +6,19 @@
namespace KubeClient.Models
{
///
- /// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.
+ /// IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.
///
public partial class IPBlockV1
{
///
- /// CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
+ /// cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
///
[YamlMember(Alias = "cidr")]
[JsonProperty("cidr", NullValueHandling = NullValueHandling.Include)]
public string Cidr { get; set; }
///
- /// Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range
+ /// except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range
///
[YamlMember(Alias = "except")]
[JsonProperty("except", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
diff --git a/src/KubeClient/Models/generated/ISCSIPersistentVolumeSourceV1.cs b/src/KubeClient/Models/generated/ISCSIPersistentVolumeSourceV1.cs
index 368c5b71..13f9923e 100644
--- a/src/KubeClient/Models/generated/ISCSIPersistentVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/ISCSIPersistentVolumeSourceV1.cs
@@ -11,63 +11,63 @@ namespace KubeClient.Models
public partial class ISCSIPersistentVolumeSourceV1
{
///
- /// Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
+ /// fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.
+ /// initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.
///
[YamlMember(Alias = "initiatorName")]
[JsonProperty("initiatorName", NullValueHandling = NullValueHandling.Ignore)]
public string InitiatorName { get; set; }
///
- /// iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).
+ /// iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).
///
[YamlMember(Alias = "iscsiInterface")]
[JsonProperty("iscsiInterface", NullValueHandling = NullValueHandling.Ignore)]
public string IscsiInterface { get; set; }
///
- /// CHAP Secret for iSCSI target and initiator authentication
+ /// secretRef is the CHAP Secret for iSCSI target and initiator authentication
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Ignore)]
public SecretReferenceV1 SecretRef { get; set; }
///
- /// iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
+ /// targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
///
[YamlMember(Alias = "targetPortal")]
[JsonProperty("targetPortal", NullValueHandling = NullValueHandling.Include)]
public string TargetPortal { get; set; }
///
- /// whether support iSCSI Session CHAP authentication
+ /// chapAuthSession defines whether support iSCSI Session CHAP authentication
///
[YamlMember(Alias = "chapAuthSession")]
[JsonProperty("chapAuthSession", NullValueHandling = NullValueHandling.Ignore)]
public bool? ChapAuthSession { get; set; }
///
- /// Target iSCSI Qualified Name.
+ /// iqn is Target iSCSI Qualified Name.
///
[YamlMember(Alias = "iqn")]
[JsonProperty("iqn", NullValueHandling = NullValueHandling.Include)]
public string Iqn { get; set; }
///
- /// iSCSI Target Lun number.
+ /// lun is iSCSI Target Lun number.
///
[YamlMember(Alias = "lun")]
[JsonProperty("lun", NullValueHandling = NullValueHandling.Include)]
public int Lun { get; set; }
///
- /// iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
+ /// portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
///
[YamlMember(Alias = "portals")]
[JsonProperty("portals", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -79,14 +79,14 @@ public partial class ISCSIPersistentVolumeSourceV1
public bool ShouldSerializePortals() => Portals.Count > 0;
///
- /// whether support iSCSI Discovery CHAP authentication
+ /// chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
///
[YamlMember(Alias = "chapAuthDiscovery")]
[JsonProperty("chapAuthDiscovery", NullValueHandling = NullValueHandling.Ignore)]
public bool? ChapAuthDiscovery { get; set; }
///
- /// ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
+ /// readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ISCSIVolumeSourceV1.cs b/src/KubeClient/Models/generated/ISCSIVolumeSourceV1.cs
index 931a0fbc..bf0742b0 100644
--- a/src/KubeClient/Models/generated/ISCSIVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/ISCSIVolumeSourceV1.cs
@@ -11,63 +11,63 @@ namespace KubeClient.Models
public partial class ISCSIVolumeSourceV1
{
///
- /// Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
+ /// fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.
+ /// initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.
///
[YamlMember(Alias = "initiatorName")]
[JsonProperty("initiatorName", NullValueHandling = NullValueHandling.Ignore)]
public string InitiatorName { get; set; }
///
- /// iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).
+ /// iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).
///
[YamlMember(Alias = "iscsiInterface")]
[JsonProperty("iscsiInterface", NullValueHandling = NullValueHandling.Ignore)]
public string IscsiInterface { get; set; }
///
- /// CHAP Secret for iSCSI target and initiator authentication
+ /// secretRef is the CHAP Secret for iSCSI target and initiator authentication
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Ignore)]
public LocalObjectReferenceV1 SecretRef { get; set; }
///
- /// iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
+ /// targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
///
[YamlMember(Alias = "targetPortal")]
[JsonProperty("targetPortal", NullValueHandling = NullValueHandling.Include)]
public string TargetPortal { get; set; }
///
- /// whether support iSCSI Session CHAP authentication
+ /// chapAuthSession defines whether support iSCSI Session CHAP authentication
///
[YamlMember(Alias = "chapAuthSession")]
[JsonProperty("chapAuthSession", NullValueHandling = NullValueHandling.Ignore)]
public bool? ChapAuthSession { get; set; }
///
- /// Target iSCSI Qualified Name.
+ /// iqn is the target iSCSI Qualified Name.
///
[YamlMember(Alias = "iqn")]
[JsonProperty("iqn", NullValueHandling = NullValueHandling.Include)]
public string Iqn { get; set; }
///
- /// iSCSI Target Lun number.
+ /// lun represents iSCSI Target Lun number.
///
[YamlMember(Alias = "lun")]
[JsonProperty("lun", NullValueHandling = NullValueHandling.Include)]
public int Lun { get; set; }
///
- /// iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
+ /// portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
///
[YamlMember(Alias = "portals")]
[JsonProperty("portals", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -79,14 +79,14 @@ public partial class ISCSIVolumeSourceV1
public bool ShouldSerializePortals() => Portals.Count > 0;
///
- /// whether support iSCSI Discovery CHAP authentication
+ /// chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
///
[YamlMember(Alias = "chapAuthDiscovery")]
[JsonProperty("chapAuthDiscovery", NullValueHandling = NullValueHandling.Ignore)]
public bool? ChapAuthDiscovery { get; set; }
///
- /// ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
+ /// readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ImageVolumeSourceV1.cs b/src/KubeClient/Models/generated/ImageVolumeSourceV1.cs
new file mode 100644
index 00000000..a49ddfff
--- /dev/null
+++ b/src/KubeClient/Models/generated/ImageVolumeSourceV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ImageVolumeSource represents a image volume resource.
+ ///
+ public partial class ImageVolumeSourceV1
+ {
+ ///
+ /// Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.
+ ///
+ [YamlMember(Alias = "reference")]
+ [JsonProperty("reference", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reference { get; set; }
+
+ ///
+ /// Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
+ ///
+ [YamlMember(Alias = "pullPolicy")]
+ [JsonProperty("pullPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string PullPolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressBackendV1.cs b/src/KubeClient/Models/generated/IngressBackendV1.cs
new file mode 100644
index 00000000..8701eea7
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressBackendV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressBackend describes all endpoints for a given service and port.
+ ///
+ public partial class IngressBackendV1
+ {
+ ///
+ /// resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service".
+ ///
+ [YamlMember(Alias = "resource")]
+ [JsonProperty("resource", NullValueHandling = NullValueHandling.Ignore)]
+ public TypedLocalObjectReferenceV1 Resource { get; set; }
+
+ ///
+ /// service references a service as a backend. This is a mutually exclusive setting with "Resource".
+ ///
+ [YamlMember(Alias = "service")]
+ [JsonProperty("service", NullValueHandling = NullValueHandling.Ignore)]
+ public IngressServiceBackendV1 Service { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressClassListV1.cs b/src/KubeClient/Models/generated/IngressClassListV1.cs
new file mode 100644
index 00000000..01ea41a6
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressClassListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressClassList is a collection of IngressClasses.
+ ///
+ [KubeListItem("IngressClass", "networking.k8s.io/v1")]
+ [KubeObject("IngressClassList", "networking.k8s.io/v1")]
+ public partial class IngressClassListV1 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of IngressClasses.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressClassParametersReferenceV1.cs b/src/KubeClient/Models/generated/IngressClassParametersReferenceV1.cs
new file mode 100644
index 00000000..224fed58
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressClassParametersReferenceV1.cs
@@ -0,0 +1,48 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.
+ ///
+ public partial class IngressClassParametersReferenceV1
+ {
+ ///
+ /// kind is the type of resource being referenced.
+ ///
+ [YamlMember(Alias = "kind")]
+ [JsonProperty("kind", NullValueHandling = NullValueHandling.Include)]
+ public string Kind { get; set; }
+
+ ///
+ /// name is the name of resource being referenced.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// namespace is the namespace of the resource being referenced. This field is required when scope is set to "Namespace" and must be unset when scope is set to "Cluster".
+ ///
+ [YamlMember(Alias = "namespace")]
+ [JsonProperty("namespace", NullValueHandling = NullValueHandling.Ignore)]
+ public string Namespace { get; set; }
+
+ ///
+ /// scope represents if this refers to a cluster or namespace scoped resource. This may be set to "Cluster" (default) or "Namespace".
+ ///
+ [YamlMember(Alias = "scope")]
+ [JsonProperty("scope", NullValueHandling = NullValueHandling.Ignore)]
+ public string Scope { get; set; }
+
+ ///
+ /// apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
+ ///
+ [YamlMember(Alias = "apiGroup")]
+ [JsonProperty("apiGroup", NullValueHandling = NullValueHandling.Ignore)]
+ public string ApiGroup { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressClassSpecV1.cs b/src/KubeClient/Models/generated/IngressClassSpecV1.cs
new file mode 100644
index 00000000..237ceea7
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressClassSpecV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressClassSpec provides information about the class of an Ingress.
+ ///
+ public partial class IngressClassSpecV1
+ {
+ ///
+ /// controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable.
+ ///
+ [YamlMember(Alias = "controller")]
+ [JsonProperty("controller", NullValueHandling = NullValueHandling.Ignore)]
+ public string Controller { get; set; }
+
+ ///
+ /// parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters.
+ ///
+ [YamlMember(Alias = "parameters")]
+ [JsonProperty("parameters", NullValueHandling = NullValueHandling.Ignore)]
+ public IngressClassParametersReferenceV1 Parameters { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressClassV1.cs b/src/KubeClient/Models/generated/IngressClassV1.cs
new file mode 100644
index 00000000..b3e6f671
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressClassV1.cs
@@ -0,0 +1,30 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.
+ ///
+ [KubeObject("IngressClass", "networking.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/networking.k8s.io/v1/ingressclasses")]
+ [KubeApi(KubeAction.Create, "apis/networking.k8s.io/v1/ingressclasses")]
+ [KubeApi(KubeAction.Get, "apis/networking.k8s.io/v1/ingressclasses/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/networking.k8s.io/v1/ingressclasses/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/networking.k8s.io/v1/ingressclasses/{name}")]
+ [KubeApi(KubeAction.Update, "apis/networking.k8s.io/v1/ingressclasses/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/networking.k8s.io/v1/watch/ingressclasses")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/networking.k8s.io/v1/ingressclasses")]
+ [KubeApi(KubeAction.Watch, "apis/networking.k8s.io/v1/watch/ingressclasses/{name}")]
+ public partial class IngressClassV1 : KubeResourceV1
+ {
+ ///
+ /// spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public IngressClassSpecV1 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressListV1.cs b/src/KubeClient/Models/generated/IngressListV1.cs
new file mode 100644
index 00000000..d0776f2e
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressList is a collection of Ingress.
+ ///
+ [KubeListItem("Ingress", "networking.k8s.io/v1")]
+ [KubeObject("IngressList", "networking.k8s.io/v1")]
+ public partial class IngressListV1 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of Ingress.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressLoadBalancerIngressV1.cs b/src/KubeClient/Models/generated/IngressLoadBalancerIngressV1.cs
new file mode 100644
index 00000000..4a15c2d1
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressLoadBalancerIngressV1.cs
@@ -0,0 +1,39 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressLoadBalancerIngress represents the status of a load-balancer ingress point.
+ ///
+ public partial class IngressLoadBalancerIngressV1
+ {
+ ///
+ /// hostname is set for load-balancer ingress points that are DNS based.
+ ///
+ [YamlMember(Alias = "hostname")]
+ [JsonProperty("hostname", NullValueHandling = NullValueHandling.Ignore)]
+ public string Hostname { get; set; }
+
+ ///
+ /// ip is set for load-balancer ingress points that are IP based.
+ ///
+ [YamlMember(Alias = "ip")]
+ [JsonProperty("ip", NullValueHandling = NullValueHandling.Ignore)]
+ public string Ip { get; set; }
+
+ ///
+ /// ports provides information about the ports exposed by this LoadBalancer.
+ ///
+ [YamlMember(Alias = "ports")]
+ [JsonProperty("ports", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Ports { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializePorts() => Ports.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressLoadBalancerStatusV1.cs b/src/KubeClient/Models/generated/IngressLoadBalancerStatusV1.cs
new file mode 100644
index 00000000..7f6f8dbc
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressLoadBalancerStatusV1.cs
@@ -0,0 +1,25 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressLoadBalancerStatus represents the status of a load-balancer.
+ ///
+ public partial class IngressLoadBalancerStatusV1
+ {
+ ///
+ /// ingress is a list containing ingress points for the load-balancer.
+ ///
+ [YamlMember(Alias = "ingress")]
+ [JsonProperty("ingress", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Ingress { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeIngress() => Ingress.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressPortStatusV1.cs b/src/KubeClient/Models/generated/IngressPortStatusV1.cs
new file mode 100644
index 00000000..9a18260d
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressPortStatusV1.cs
@@ -0,0 +1,37 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressPortStatus represents the error condition of a service port
+ ///
+ public partial class IngressPortStatusV1
+ {
+ ///
+ /// protocol is the protocol of the ingress port. The supported values are: "TCP", "UDP", "SCTP"
+ ///
+ [YamlMember(Alias = "protocol")]
+ [JsonProperty("protocol", NullValueHandling = NullValueHandling.Include)]
+ public string Protocol { get; set; }
+
+ ///
+ /// error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use
+ /// CamelCase names
+ /// - cloud provider specific error values must have names that comply with the
+ /// format foo.example.com/CamelCase.
+ ///
+ [YamlMember(Alias = "error")]
+ [JsonProperty("error", NullValueHandling = NullValueHandling.Ignore)]
+ public string Error { get; set; }
+
+ ///
+ /// port is the port number of the ingress port.
+ ///
+ [YamlMember(Alias = "port")]
+ [JsonProperty("port", NullValueHandling = NullValueHandling.Include)]
+ public int Port { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressRuleV1.cs b/src/KubeClient/Models/generated/IngressRuleV1.cs
new file mode 100644
index 00000000..58677804
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressRuleV1.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.
+ ///
+ public partial class IngressRuleV1
+ {
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "http")]
+ [JsonProperty("http", NullValueHandling = NullValueHandling.Ignore)]
+ public HTTPIngressRuleValueV1 Http { get; set; }
+
+ ///
+ /// host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to
+ /// the IP in the Spec of the parent Ingress.
+ /// 2. The `:` delimiter is not respected because ports are not allowed.
+ /// Currently the port of an Ingress is implicitly :80 for http and
+ /// :443 for https.
+ /// Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.
+ ///
+ /// host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.
+ ///
+ [YamlMember(Alias = "host")]
+ [JsonProperty("host", NullValueHandling = NullValueHandling.Ignore)]
+ public string Host { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressServiceBackendV1.cs b/src/KubeClient/Models/generated/IngressServiceBackendV1.cs
new file mode 100644
index 00000000..66dc4739
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressServiceBackendV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressServiceBackend references a Kubernetes Service as a Backend.
+ ///
+ public partial class IngressServiceBackendV1
+ {
+ ///
+ /// name is the referenced service. The service must exist in the same namespace as the Ingress object.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// port of the referenced service. A port name or port number is required for a IngressServiceBackend.
+ ///
+ [YamlMember(Alias = "port")]
+ [JsonProperty("port", NullValueHandling = NullValueHandling.Ignore)]
+ public ServiceBackendPortV1 Port { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressSpecV1.cs b/src/KubeClient/Models/generated/IngressSpecV1.cs
new file mode 100644
index 00000000..7e9ef932
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressSpecV1.cs
@@ -0,0 +1,51 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressSpec describes the Ingress the user wishes to exist.
+ ///
+ public partial class IngressSpecV1
+ {
+ ///
+ /// defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller.
+ ///
+ [YamlMember(Alias = "defaultBackend")]
+ [JsonProperty("defaultBackend", NullValueHandling = NullValueHandling.Ignore)]
+ public IngressBackendV1 DefaultBackend { get; set; }
+
+ ///
+ /// ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.
+ ///
+ [YamlMember(Alias = "ingressClassName")]
+ [JsonProperty("ingressClassName", NullValueHandling = NullValueHandling.Ignore)]
+ public string IngressClassName { get; set; }
+
+ ///
+ /// rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.
+ ///
+ [YamlMember(Alias = "rules")]
+ [JsonProperty("rules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Rules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRules() => Rules.Count > 0;
+
+ ///
+ /// tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.
+ ///
+ [YamlMember(Alias = "tls")]
+ [JsonProperty("tls", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Tls { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeTls() => Tls.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressStatusV1.cs b/src/KubeClient/Models/generated/IngressStatusV1.cs
new file mode 100644
index 00000000..c8eaf8a0
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressStatusV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressStatus describe the current state of the Ingress.
+ ///
+ public partial class IngressStatusV1
+ {
+ ///
+ /// loadBalancer contains the current status of the load-balancer.
+ ///
+ [YamlMember(Alias = "loadBalancer")]
+ [JsonProperty("loadBalancer", NullValueHandling = NullValueHandling.Ignore)]
+ public IngressLoadBalancerStatusV1 LoadBalancer { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressTLSV1.cs b/src/KubeClient/Models/generated/IngressTLSV1.cs
new file mode 100644
index 00000000..b4af9009
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressTLSV1.cs
@@ -0,0 +1,32 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// IngressTLS describes the transport layer security associated with an ingress.
+ ///
+ public partial class IngressTLSV1
+ {
+ ///
+ /// secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the "Host" header is used for routing.
+ ///
+ [YamlMember(Alias = "secretName")]
+ [JsonProperty("secretName", NullValueHandling = NullValueHandling.Ignore)]
+ public string SecretName { get; set; }
+
+ ///
+ /// hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.
+ ///
+ [YamlMember(Alias = "hosts")]
+ [JsonProperty("hosts", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Hosts { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeHosts() => Hosts.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/IngressV1.cs b/src/KubeClient/Models/generated/IngressV1.cs
new file mode 100644
index 00000000..144cdc23
--- /dev/null
+++ b/src/KubeClient/Models/generated/IngressV1.cs
@@ -0,0 +1,42 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.
+ ///
+ [KubeObject("Ingress", "networking.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/networking.k8s.io/v1/ingresses")]
+ [KubeApi(KubeAction.WatchList, "apis/networking.k8s.io/v1/watch/ingresses")]
+ [KubeApi(KubeAction.List, "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses")]
+ [KubeApi(KubeAction.Create, "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses")]
+ [KubeApi(KubeAction.Get, "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}")]
+ [KubeApi(KubeAction.Update, "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses")]
+ [KubeApi(KubeAction.Get, "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status")]
+ public partial class IngressV1 : KubeResourceV1
+ {
+ ///
+ /// spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public IngressSpecV1 Spec { get; set; }
+
+ ///
+ /// status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public IngressStatusV1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/JSONSchemaPropsOrArrayV1.cs b/src/KubeClient/Models/generated/JSONSchemaPropsOrArrayV1.cs
new file mode 100644
index 00000000..d3bc73f3
--- /dev/null
+++ b/src/KubeClient/Models/generated/JSONSchemaPropsOrArrayV1.cs
@@ -0,0 +1,14 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.
+ ///
+ public partial class JSONSchemaPropsOrArrayV1
+ {
+ }
+}
diff --git a/src/KubeClient/Models/generated/JSONSchemaPropsOrBoolV1.cs b/src/KubeClient/Models/generated/JSONSchemaPropsOrBoolV1.cs
new file mode 100644
index 00000000..8d5839e5
--- /dev/null
+++ b/src/KubeClient/Models/generated/JSONSchemaPropsOrBoolV1.cs
@@ -0,0 +1,14 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.
+ ///
+ public partial class JSONSchemaPropsOrBoolV1
+ {
+ }
+}
diff --git a/src/KubeClient/Models/generated/JSONSchemaPropsOrStringArrayV1.cs b/src/KubeClient/Models/generated/JSONSchemaPropsOrStringArrayV1.cs
new file mode 100644
index 00000000..b1d37b7e
--- /dev/null
+++ b/src/KubeClient/Models/generated/JSONSchemaPropsOrStringArrayV1.cs
@@ -0,0 +1,14 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.
+ ///
+ public partial class JSONSchemaPropsOrStringArrayV1
+ {
+ }
+}
diff --git a/src/KubeClient/Models/generated/JSONSchemaPropsV1.cs b/src/KubeClient/Models/generated/JSONSchemaPropsV1.cs
new file mode 100644
index 00000000..726843c7
--- /dev/null
+++ b/src/KubeClient/Models/generated/JSONSchemaPropsV1.cs
@@ -0,0 +1,412 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).
+ ///
+ public partial class JSONSchemaPropsV1
+ {
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "$schema")]
+ [JsonProperty("$schema", NullValueHandling = NullValueHandling.Ignore)]
+ public string Schema { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "id")]
+ [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)]
+ public string Id { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "required")]
+ [JsonProperty("required", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Required { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRequired() => Required.Count > 0;
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "example")]
+ [JsonProperty("example", NullValueHandling = NullValueHandling.Ignore)]
+ public JSONV1 Example { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "nullable")]
+ [JsonProperty("nullable", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Nullable { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "title")]
+ [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
+ public string Title { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)]
+ public string Type { get; set; }
+
+ ///
+ /// x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).
+ ///
+ [YamlMember(Alias = "x-kubernetes-embedded-resource")]
+ [JsonProperty("x-kubernetes-embedded-resource", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? KubernetesEmbeddedResource { get; set; }
+
+ ///
+ /// x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values:
+ ///
+ /// 1) `atomic`: the list is treated as a single entity, like a scalar.
+ /// Atomic lists will be entirely replaced when updated. This extension
+ /// may be used on any type of list (struct, scalar, ...).
+ /// 2) `set`:
+ /// Sets are lists that must not have multiple items with the same value. Each
+ /// value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
+ /// array with x-kubernetes-list-type `atomic`.
+ /// 3) `map`:
+ /// These lists are like maps in that their elements have a non-index key
+ /// used to identify them. Order is preserved upon merge. The map tag
+ /// must only be used on a list with elements of type object.
+ /// Defaults to atomic for arrays.
+ ///
+ [YamlMember(Alias = "x-kubernetes-list-type")]
+ [JsonProperty("x-kubernetes-list-type", NullValueHandling = NullValueHandling.Ignore)]
+ public string KubernetesListType { get; set; }
+
+ ///
+ /// x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:
+ ///
+ /// 1) `granular`:
+ /// These maps are actual maps (key-value pairs) and each fields are independent
+ /// from each other (they can each be manipulated by separate actors). This is
+ /// the default behaviour for all maps.
+ /// 2) `atomic`: the list is treated as a single entity, like a scalar.
+ /// Atomic maps will be entirely replaced when updated.
+ ///
+ [YamlMember(Alias = "x-kubernetes-map-type")]
+ [JsonProperty("x-kubernetes-map-type", NullValueHandling = NullValueHandling.Ignore)]
+ public string KubernetesMapType { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "$ref")]
+ [JsonProperty("$ref", NullValueHandling = NullValueHandling.Ignore)]
+ public string Ref { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "allOf")]
+ [JsonProperty("allOf", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List AllOf { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAllOf() => AllOf.Count > 0;
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "anyOf")]
+ [JsonProperty("anyOf", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List AnyOf { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAnyOf() => AnyOf.Count > 0;
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "multipleOf")]
+ [JsonProperty("multipleOf", NullValueHandling = NullValueHandling.Ignore)]
+ public double? MultipleOf { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "oneOf")]
+ [JsonProperty("oneOf", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List OneOf { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeOneOf() => OneOf.Count > 0;
+
+ ///
+ /// x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:
+ ///
+ /// 1) anyOf:
+ /// - type: integer
+ /// - type: string
+ /// 2) allOf:
+ /// - anyOf:
+ /// - type: integer
+ /// - type: string
+ /// - ... zero or more
+ ///
+ [YamlMember(Alias = "x-kubernetes-int-or-string")]
+ [JsonProperty("x-kubernetes-int-or-string", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? KubernetesIntOrString { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "maxLength")]
+ [JsonProperty("maxLength", NullValueHandling = NullValueHandling.Ignore)]
+ public long? MaxLength { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "minLength")]
+ [JsonProperty("minLength", NullValueHandling = NullValueHandling.Ignore)]
+ public long? MinLength { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "enum")]
+ [JsonProperty("enum", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Enum { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeEnum() => Enum.Count > 0;
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "exclusiveMaximum")]
+ [JsonProperty("exclusiveMaximum", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? ExclusiveMaximum { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "exclusiveMinimum")]
+ [JsonProperty("exclusiveMinimum", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? ExclusiveMinimum { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "maximum")]
+ [JsonProperty("maximum", NullValueHandling = NullValueHandling.Ignore)]
+ public double? Maximum { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "minimum")]
+ [JsonProperty("minimum", NullValueHandling = NullValueHandling.Ignore)]
+ public double? Minimum { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "description")]
+ [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
+ public string Description { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "pattern")]
+ [JsonProperty("pattern", NullValueHandling = NullValueHandling.Ignore)]
+ public string Pattern { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "additionalItems")]
+ [JsonProperty("additionalItems", NullValueHandling = NullValueHandling.Ignore)]
+ public JSONSchemaPropsOrBoolV1 AdditionalItems { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "additionalProperties")]
+ [JsonProperty("additionalProperties", NullValueHandling = NullValueHandling.Ignore)]
+ public JSONSchemaPropsOrBoolV1 AdditionalProperties { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "definitions")]
+ [JsonProperty("definitions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary Definitions { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeDefinitions() => Definitions.Count > 0;
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "dependencies")]
+ [JsonProperty("dependencies", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary Dependencies { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeDependencies() => Dependencies.Count > 0;
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "externalDocs")]
+ [JsonProperty("externalDocs", NullValueHandling = NullValueHandling.Ignore)]
+ public ExternalDocumentationV1 ExternalDocs { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "items")]
+ [JsonProperty("items", NullValueHandling = NullValueHandling.Ignore)]
+ public JSONSchemaPropsV1 Items { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "maxItems")]
+ [JsonProperty("maxItems", NullValueHandling = NullValueHandling.Ignore)]
+ public long? MaxItems { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "maxProperties")]
+ [JsonProperty("maxProperties", NullValueHandling = NullValueHandling.Ignore)]
+ public long? MaxProperties { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "minItems")]
+ [JsonProperty("minItems", NullValueHandling = NullValueHandling.Ignore)]
+ public long? MinItems { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "minProperties")]
+ [JsonProperty("minProperties", NullValueHandling = NullValueHandling.Ignore)]
+ public long? MinProperties { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "patternProperties")]
+ [JsonProperty("patternProperties", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary PatternProperties { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializePatternProperties() => PatternProperties.Count > 0;
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "properties")]
+ [JsonProperty("properties", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary Properties { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeProperties() => Properties.Count > 0;
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "uniqueItems")]
+ [JsonProperty("uniqueItems", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? UniqueItems { get; set; }
+
+ ///
+ /// x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.
+ ///
+ /// This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).
+ ///
+ /// The properties specified must either be required or have a default value, to ensure those properties are present for all list items.
+ ///
+ [YamlMember(Alias = "x-kubernetes-list-map-keys")]
+ [JsonProperty("x-kubernetes-list-map-keys", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List KubernetesListMapKeys { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeKubernetesListMapKeys() => KubernetesListMapKeys.Count > 0;
+
+ ///
+ /// x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.
+ ///
+ [YamlMember(Alias = "x-kubernetes-preserve-unknown-fields")]
+ [JsonProperty("x-kubernetes-preserve-unknown-fields", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? KubernetesPreserveUnknownFields { get; set; }
+
+ ///
+ /// x-kubernetes-validations describes a list of validation rules written in the CEL expression language.
+ ///
+ [MergeStrategy(Key = "rule")]
+ [YamlMember(Alias = "x-kubernetes-validations")]
+ [JsonProperty("x-kubernetes-validations", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List KubernetesValidations { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeKubernetesValidations() => KubernetesValidations.Count > 0;
+
+ ///
+ /// default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false.
+ ///
+ [YamlMember(Alias = "default")]
+ [JsonProperty("default", NullValueHandling = NullValueHandling.Ignore)]
+ public JSONV1 Default { get; set; }
+
+ ///
+ /// format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
+ ///
+ /// - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
+ ///
+ [YamlMember(Alias = "format")]
+ [JsonProperty("format", NullValueHandling = NullValueHandling.Ignore)]
+ public string Format { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "not")]
+ [JsonProperty("not", NullValueHandling = NullValueHandling.Ignore)]
+ public JSONSchemaPropsV1 Not { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/JSONV1.cs b/src/KubeClient/Models/generated/JSONV1.cs
new file mode 100644
index 00000000..07fcd130
--- /dev/null
+++ b/src/KubeClient/Models/generated/JSONV1.cs
@@ -0,0 +1,14 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.
+ ///
+ public partial class JSONV1
+ {
+ }
+}
diff --git a/src/KubeClient/Models/generated/JobSpecV1.cs b/src/KubeClient/Models/generated/JobSpecV1.cs
index 883a5a8c..d14a0016 100644
--- a/src/KubeClient/Models/generated/JobSpecV1.cs
+++ b/src/KubeClient/Models/generated/JobSpecV1.cs
@@ -11,7 +11,34 @@ namespace KubeClient.Models
public partial class JobSpecV1
{
///
- /// Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+ /// suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.
+ ///
+ [YamlMember(Alias = "suspend")]
+ [JsonProperty("suspend", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Suspend { get; set; }
+
+ ///
+ /// ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.
+ ///
+ [YamlMember(Alias = "ttlSecondsAfterFinished")]
+ [JsonProperty("ttlSecondsAfterFinished", NullValueHandling = NullValueHandling.Ignore)]
+ public int? TtlSecondsAfterFinished { get; set; }
+
+ ///
+ /// completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.
+ ///
+ /// `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.
+ ///
+ /// `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.
+ ///
+ /// More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.
+ ///
+ [YamlMember(Alias = "completionMode")]
+ [JsonProperty("completionMode", NullValueHandling = NullValueHandling.Ignore)]
+ public string CompletionMode { get; set; }
+
+ ///
+ /// Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
///
[YamlMember(Alias = "template")]
[JsonProperty("template", NullValueHandling = NullValueHandling.Include)]
@@ -39,19 +66,26 @@ public partial class JobSpecV1
public LabelSelectorV1 Selector { get; set; }
///
- /// Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
+ /// Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.
///
[YamlMember(Alias = "activeDeadlineSeconds")]
[JsonProperty("activeDeadlineSeconds", NullValueHandling = NullValueHandling.Ignore)]
public long? ActiveDeadlineSeconds { get; set; }
///
- /// Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+ /// Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
///
[YamlMember(Alias = "completions")]
[JsonProperty("completions", NullValueHandling = NullValueHandling.Ignore)]
public int? Completions { get; set; }
+ ///
+ /// Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
+ ///
+ [YamlMember(Alias = "maxFailedIndexes")]
+ [JsonProperty("maxFailedIndexes", NullValueHandling = NullValueHandling.Ignore)]
+ public int? MaxFailedIndexes { get; set; }
+
///
/// Specifies the number of retries before marking this job failed. Defaults to 6
///
@@ -60,10 +94,47 @@ public partial class JobSpecV1
public int? BackoffLimit { get; set; }
///
- /// Limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.
+ /// Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
///
- [YamlMember(Alias = "ttlSecondsAfterFinished")]
- [JsonProperty("ttlSecondsAfterFinished", NullValueHandling = NullValueHandling.Ignore)]
- public int? TtlSecondsAfterFinished { get; set; }
+ [YamlMember(Alias = "backoffLimitPerIndex")]
+ [JsonProperty("backoffLimitPerIndex", NullValueHandling = NullValueHandling.Ignore)]
+ public int? BackoffLimitPerIndex { get; set; }
+
+ ///
+ /// ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
+ ///
+ /// This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).
+ ///
+ [YamlMember(Alias = "managedBy")]
+ [JsonProperty("managedBy", NullValueHandling = NullValueHandling.Ignore)]
+ public string ManagedBy { get; set; }
+
+ ///
+ /// Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
+ ///
+ [YamlMember(Alias = "podFailurePolicy")]
+ [JsonProperty("podFailurePolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public PodFailurePolicyV1 PodFailurePolicy { get; set; }
+
+ ///
+ /// podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods
+ /// when they are terminating (has a metadata.deletionTimestamp) or failed.
+ /// - Failed means to wait until a previously created Pod is fully terminated (has phase
+ /// Failed or Succeeded) before creating a replacement Pod.
+ ///
+ /// When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.
+ ///
+ [YamlMember(Alias = "podReplacementPolicy")]
+ [JsonProperty("podReplacementPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string PodReplacementPolicy { get; set; }
+
+ ///
+ /// successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
+ ///
+ /// This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
+ ///
+ [YamlMember(Alias = "successPolicy")]
+ [JsonProperty("successPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public SuccessPolicyV1 SuccessPolicy { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/JobStatusV1.cs b/src/KubeClient/Models/generated/JobStatusV1.cs
index d8c9d7f5..14554224 100644
--- a/src/KubeClient/Models/generated/JobStatusV1.cs
+++ b/src/KubeClient/Models/generated/JobStatusV1.cs
@@ -11,42 +11,64 @@ namespace KubeClient.Models
public partial class JobStatusV1
{
///
- /// The number of pods which reached phase Failed.
+ /// The number of pods which reached phase Failed. The value increases monotonically.
///
[YamlMember(Alias = "failed")]
[JsonProperty("failed", NullValueHandling = NullValueHandling.Ignore)]
public int? Failed { get; set; }
///
- /// The number of pods which reached phase Succeeded.
+ /// The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.
///
[YamlMember(Alias = "succeeded")]
[JsonProperty("succeeded", NullValueHandling = NullValueHandling.Ignore)]
public int? Succeeded { get; set; }
///
- /// The number of actively running pods.
+ /// The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.
///
[YamlMember(Alias = "active")]
[JsonProperty("active", NullValueHandling = NullValueHandling.Ignore)]
public int? Active { get; set; }
///
- /// Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.
+ /// Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field.
///
[YamlMember(Alias = "completionTime")]
[JsonProperty("completionTime", NullValueHandling = NullValueHandling.Ignore)]
public DateTime? CompletionTime { get; set; }
///
- /// Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.
+ /// Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.
+ ///
+ /// Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.
///
[YamlMember(Alias = "startTime")]
[JsonProperty("startTime", NullValueHandling = NullValueHandling.Ignore)]
public DateTime? StartTime { get; set; }
///
- /// The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+ /// The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).
+ ///
+ /// This field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).
+ ///
+ [YamlMember(Alias = "terminating")]
+ [JsonProperty("terminating", NullValueHandling = NullValueHandling.Ignore)]
+ public int? Terminating { get; set; }
+
+ ///
+ /// completedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7".
+ ///
+ [YamlMember(Alias = "completedIndexes")]
+ [JsonProperty("completedIndexes", NullValueHandling = NullValueHandling.Ignore)]
+ public string CompletedIndexes { get; set; }
+
+ ///
+ /// The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true.
+ ///
+ /// A job is considered finished when it is in a terminal condition, either "Complete" or "Failed". A Job cannot have both the "Complete" and "Failed" conditions. Additionally, it cannot be in the "Complete" and "FailureTarget" conditions. The "Complete", "Failed" and "FailureTarget" conditions cannot be disabled.
+ ///
+ /// More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
///
[MergeStrategy(Key = "type")]
[YamlMember(Alias = "conditions")]
@@ -57,5 +79,35 @@ public partial class JobStatusV1
/// Determine whether the property should be serialised.
///
public bool ShouldSerializeConditions() => Conditions.Count > 0;
+
+ ///
+ /// FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". The set of failed indexes cannot overlap with the set of completed indexes.
+ ///
+ /// This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
+ ///
+ [YamlMember(Alias = "failedIndexes")]
+ [JsonProperty("failedIndexes", NullValueHandling = NullValueHandling.Ignore)]
+ public string FailedIndexes { get; set; }
+
+ ///
+ /// uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.
+ ///
+ /// The job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:
+ ///
+ /// 1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding
+ /// counter.
+ ///
+ /// Old jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs.
+ ///
+ [YamlMember(Alias = "uncountedTerminatedPods")]
+ [JsonProperty("uncountedTerminatedPods", NullValueHandling = NullValueHandling.Ignore)]
+ public UncountedTerminatedPodsV1 UncountedTerminatedPods { get; set; }
+
+ ///
+ /// The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
+ ///
+ [YamlMember(Alias = "ready")]
+ [JsonProperty("ready", NullValueHandling = NullValueHandling.Ignore)]
+ public int? Ready { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/JobTemplateSpecV1.cs b/src/KubeClient/Models/generated/JobTemplateSpecV1.cs
new file mode 100644
index 00000000..6638176d
--- /dev/null
+++ b/src/KubeClient/Models/generated/JobTemplateSpecV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// JobTemplateSpec describes the data a Job should have when created from a template
+ ///
+ public partial class JobTemplateSpecV1
+ {
+ ///
+ /// Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ ///
+ [YamlMember(Alias = "metadata")]
+ [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
+ public ObjectMetaV1 Metadata { get; set; }
+
+ ///
+ /// Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public JobSpecV1 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/JobV1.cs b/src/KubeClient/Models/generated/JobV1.cs
index 8089776d..34f97f9a 100644
--- a/src/KubeClient/Models/generated/JobV1.cs
+++ b/src/KubeClient/Models/generated/JobV1.cs
@@ -26,14 +26,14 @@ namespace KubeClient.Models
public partial class JobV1 : KubeResourceV1
{
///
- /// Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
public JobSpecV1 Spec { get; set; }
///
- /// Current status of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/KeyToPathV1.cs b/src/KubeClient/Models/generated/KeyToPathV1.cs
index cc251220..947da8dd 100644
--- a/src/KubeClient/Models/generated/KeyToPathV1.cs
+++ b/src/KubeClient/Models/generated/KeyToPathV1.cs
@@ -11,21 +11,21 @@ namespace KubeClient.Models
public partial class KeyToPathV1
{
///
- /// Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
+ /// mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
///
[YamlMember(Alias = "mode")]
[JsonProperty("mode", NullValueHandling = NullValueHandling.Ignore)]
public int? Mode { get; set; }
///
- /// The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.
+ /// path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.
///
[YamlMember(Alias = "path")]
[JsonProperty("path", NullValueHandling = NullValueHandling.Include)]
public string Path { get; set; }
///
- /// The key to project.
+ /// key is the key to project.
///
[YamlMember(Alias = "key")]
[JsonProperty("key", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/LabelSelectorAttributesV1.cs b/src/KubeClient/Models/generated/LabelSelectorAttributesV1.cs
new file mode 100644
index 00000000..a931da65
--- /dev/null
+++ b/src/KubeClient/Models/generated/LabelSelectorAttributesV1.cs
@@ -0,0 +1,32 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.
+ ///
+ public partial class LabelSelectorAttributesV1
+ {
+ ///
+ /// rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.
+ ///
+ [YamlMember(Alias = "rawSelector")]
+ [JsonProperty("rawSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public string RawSelector { get; set; }
+
+ ///
+ /// requirements is the parsed interpretation of a label selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.
+ ///
+ [YamlMember(Alias = "requirements")]
+ [JsonProperty("requirements", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Requirements { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRequirements() => Requirements.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/LabelSelectorRequirementV1.cs b/src/KubeClient/Models/generated/LabelSelectorRequirementV1.cs
index 19b7362a..b21f9c00 100644
--- a/src/KubeClient/Models/generated/LabelSelectorRequirementV1.cs
+++ b/src/KubeClient/Models/generated/LabelSelectorRequirementV1.cs
@@ -34,7 +34,6 @@ public partial class LabelSelectorRequirementV1
///
[YamlMember(Alias = "key")]
[JsonProperty("key", NullValueHandling = NullValueHandling.Include)]
- [MergeStrategy(Key = "key")]
public string Key { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/LeaseCandidateListV1Alpha1.cs b/src/KubeClient/Models/generated/LeaseCandidateListV1Alpha1.cs
new file mode 100644
index 00000000..ac0fe6f8
--- /dev/null
+++ b/src/KubeClient/Models/generated/LeaseCandidateListV1Alpha1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// LeaseCandidateList is a list of Lease objects.
+ ///
+ [KubeListItem("LeaseCandidate", "coordination.k8s.io/v1alpha1")]
+ [KubeObject("LeaseCandidateList", "coordination.k8s.io/v1alpha1")]
+ public partial class LeaseCandidateListV1Alpha1 : KubeResourceListV1
+ {
+ ///
+ /// items is a list of schema objects.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/LeaseCandidateSpecV1Alpha1.cs b/src/KubeClient/Models/generated/LeaseCandidateSpecV1Alpha1.cs
new file mode 100644
index 00000000..dc1510ea
--- /dev/null
+++ b/src/KubeClient/Models/generated/LeaseCandidateSpecV1Alpha1.cs
@@ -0,0 +1,59 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// LeaseCandidateSpec is a specification of a Lease.
+ ///
+ public partial class LeaseCandidateSpecV1Alpha1
+ {
+ ///
+ /// LeaseName is the name of the lease for which this candidate is contending. This field is immutable.
+ ///
+ [YamlMember(Alias = "leaseName")]
+ [JsonProperty("leaseName", NullValueHandling = NullValueHandling.Include)]
+ public string LeaseName { get; set; }
+
+ ///
+ /// PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
+ ///
+ [YamlMember(Alias = "pingTime")]
+ [JsonProperty("pingTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? PingTime { get; set; }
+
+ ///
+ /// RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
+ ///
+ [YamlMember(Alias = "renewTime")]
+ [JsonProperty("renewTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? RenewTime { get; set; }
+
+ ///
+ /// BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required when strategy is "OldestEmulationVersion"
+ ///
+ [YamlMember(Alias = "binaryVersion")]
+ [JsonProperty("binaryVersion", NullValueHandling = NullValueHandling.Ignore)]
+ public string BinaryVersion { get; set; }
+
+ ///
+ /// EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
+ ///
+ [YamlMember(Alias = "emulationVersion")]
+ [JsonProperty("emulationVersion", NullValueHandling = NullValueHandling.Ignore)]
+ public string EmulationVersion { get; set; }
+
+ ///
+ /// PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election. The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated leader election to make a decision about the final election strategy. This follows as - If all clients have strategy X as the first element in this list, strategy X will be used. - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y
+ /// will be used.
+ /// - If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader
+ /// election will not operate the Lease until resolved.
+ /// (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+ ///
+ [YamlMember(Alias = "preferredStrategies")]
+ [JsonProperty("preferredStrategies", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List PreferredStrategies { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/LeaseCandidateV1Alpha1.cs b/src/KubeClient/Models/generated/LeaseCandidateV1Alpha1.cs
new file mode 100644
index 00000000..9131f9eb
--- /dev/null
+++ b/src/KubeClient/Models/generated/LeaseCandidateV1Alpha1.cs
@@ -0,0 +1,32 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
+ ///
+ [KubeObject("LeaseCandidate", "coordination.k8s.io/v1alpha1")]
+ [KubeApi(KubeAction.List, "apis/coordination.k8s.io/v1alpha1/leasecandidates")]
+ [KubeApi(KubeAction.WatchList, "apis/coordination.k8s.io/v1alpha1/watch/leasecandidates")]
+ [KubeApi(KubeAction.List, "apis/coordination.k8s.io/v1alpha1/namespaces/{namespace}/leasecandidates")]
+ [KubeApi(KubeAction.Create, "apis/coordination.k8s.io/v1alpha1/namespaces/{namespace}/leasecandidates")]
+ [KubeApi(KubeAction.Get, "apis/coordination.k8s.io/v1alpha1/namespaces/{namespace}/leasecandidates/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/coordination.k8s.io/v1alpha1/namespaces/{namespace}/leasecandidates/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/coordination.k8s.io/v1alpha1/namespaces/{namespace}/leasecandidates/{name}")]
+ [KubeApi(KubeAction.Update, "apis/coordination.k8s.io/v1alpha1/namespaces/{namespace}/leasecandidates/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/coordination.k8s.io/v1alpha1/watch/namespaces/{namespace}/leasecandidates")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/coordination.k8s.io/v1alpha1/namespaces/{namespace}/leasecandidates")]
+ [KubeApi(KubeAction.Watch, "apis/coordination.k8s.io/v1alpha1/watch/namespaces/{namespace}/leasecandidates/{name}")]
+ public partial class LeaseCandidateV1Alpha1 : KubeResourceV1
+ {
+ ///
+ /// spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public LeaseCandidateSpecV1Alpha1 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/LeaseListV1.cs b/src/KubeClient/Models/generated/LeaseListV1.cs
new file mode 100644
index 00000000..d018dab1
--- /dev/null
+++ b/src/KubeClient/Models/generated/LeaseListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// LeaseList is a list of Lease objects.
+ ///
+ [KubeListItem("Lease", "coordination.k8s.io/v1")]
+ [KubeObject("LeaseList", "coordination.k8s.io/v1")]
+ public partial class LeaseListV1 : KubeResourceListV1
+ {
+ ///
+ /// items is a list of schema objects.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/LeaseSpecV1.cs b/src/KubeClient/Models/generated/LeaseSpecV1.cs
new file mode 100644
index 00000000..fbf4fa2f
--- /dev/null
+++ b/src/KubeClient/Models/generated/LeaseSpecV1.cs
@@ -0,0 +1,62 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// LeaseSpec is a specification of a Lease.
+ ///
+ public partial class LeaseSpecV1
+ {
+ ///
+ /// acquireTime is a time when the current lease was acquired.
+ ///
+ [YamlMember(Alias = "acquireTime")]
+ [JsonProperty("acquireTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? AcquireTime { get; set; }
+
+ ///
+ /// renewTime is a time when the current holder of a lease has last updated the lease.
+ ///
+ [YamlMember(Alias = "renewTime")]
+ [JsonProperty("renewTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? RenewTime { get; set; }
+
+ ///
+ /// PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.
+ ///
+ [YamlMember(Alias = "preferredHolder")]
+ [JsonProperty("preferredHolder", NullValueHandling = NullValueHandling.Ignore)]
+ public string PreferredHolder { get; set; }
+
+ ///
+ /// leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.
+ ///
+ [YamlMember(Alias = "leaseDurationSeconds")]
+ [JsonProperty("leaseDurationSeconds", NullValueHandling = NullValueHandling.Ignore)]
+ public int? LeaseDurationSeconds { get; set; }
+
+ ///
+ /// leaseTransitions is the number of transitions of a lease between holders.
+ ///
+ [YamlMember(Alias = "leaseTransitions")]
+ [JsonProperty("leaseTransitions", NullValueHandling = NullValueHandling.Ignore)]
+ public int? LeaseTransitions { get; set; }
+
+ ///
+ /// holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.
+ ///
+ [YamlMember(Alias = "holderIdentity")]
+ [JsonProperty("holderIdentity", NullValueHandling = NullValueHandling.Ignore)]
+ public string HolderIdentity { get; set; }
+
+ ///
+ /// Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+ ///
+ [YamlMember(Alias = "strategy")]
+ [JsonProperty("strategy", NullValueHandling = NullValueHandling.Ignore)]
+ public string Strategy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/LeaseV1.cs b/src/KubeClient/Models/generated/LeaseV1.cs
new file mode 100644
index 00000000..9cd4ed61
--- /dev/null
+++ b/src/KubeClient/Models/generated/LeaseV1.cs
@@ -0,0 +1,32 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Lease defines a lease concept.
+ ///
+ [KubeObject("Lease", "coordination.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/coordination.k8s.io/v1/leases")]
+ [KubeApi(KubeAction.WatchList, "apis/coordination.k8s.io/v1/watch/leases")]
+ [KubeApi(KubeAction.List, "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases")]
+ [KubeApi(KubeAction.Create, "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases")]
+ [KubeApi(KubeAction.Get, "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}")]
+ [KubeApi(KubeAction.Update, "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/coordination.k8s.io/v1/namespaces/{namespace}/leases")]
+ [KubeApi(KubeAction.Watch, "apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}")]
+ public partial class LeaseV1 : KubeResourceV1
+ {
+ ///
+ /// spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public LeaseSpecV1 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/LifecycleHandlerV1.cs b/src/KubeClient/Models/generated/LifecycleHandlerV1.cs
new file mode 100644
index 00000000..a52b22dc
--- /dev/null
+++ b/src/KubeClient/Models/generated/LifecycleHandlerV1.cs
@@ -0,0 +1,41 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
+ ///
+ public partial class LifecycleHandlerV1
+ {
+ ///
+ /// Exec specifies the action to take.
+ ///
+ [YamlMember(Alias = "exec")]
+ [JsonProperty("exec", NullValueHandling = NullValueHandling.Ignore)]
+ public ExecActionV1 Exec { get; set; }
+
+ ///
+ /// Sleep represents the duration that the container should sleep before being terminated.
+ ///
+ [YamlMember(Alias = "sleep")]
+ [JsonProperty("sleep", NullValueHandling = NullValueHandling.Ignore)]
+ public SleepActionV1 Sleep { get; set; }
+
+ ///
+ /// HTTPGet specifies the http request to perform.
+ ///
+ [YamlMember(Alias = "httpGet")]
+ [JsonProperty("httpGet", NullValueHandling = NullValueHandling.Ignore)]
+ public HTTPGetActionV1 HttpGet { get; set; }
+
+ ///
+ /// Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.
+ ///
+ [YamlMember(Alias = "tcpSocket")]
+ [JsonProperty("tcpSocket", NullValueHandling = NullValueHandling.Ignore)]
+ public TCPSocketActionV1 TcpSocket { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/LifecycleV1.cs b/src/KubeClient/Models/generated/LifecycleV1.cs
index 7e97a885..06d8ddfe 100644
--- a/src/KubeClient/Models/generated/LifecycleV1.cs
+++ b/src/KubeClient/Models/generated/LifecycleV1.cs
@@ -11,17 +11,17 @@ namespace KubeClient.Models
public partial class LifecycleV1
{
///
- /// PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
+ /// PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
///
[YamlMember(Alias = "preStop")]
[JsonProperty("preStop", NullValueHandling = NullValueHandling.Ignore)]
- public HandlerV1 PreStop { get; set; }
+ public LifecycleHandlerV1 PreStop { get; set; }
///
/// PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
///
[YamlMember(Alias = "postStart")]
[JsonProperty("postStart", NullValueHandling = NullValueHandling.Ignore)]
- public HandlerV1 PostStart { get; set; }
+ public LifecycleHandlerV1 PostStart { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/LimitRangeItemV1.cs b/src/KubeClient/Models/generated/LimitRangeItemV1.cs
index c529310c..e7820381 100644
--- a/src/KubeClient/Models/generated/LimitRangeItemV1.cs
+++ b/src/KubeClient/Models/generated/LimitRangeItemV1.cs
@@ -14,7 +14,7 @@ public partial class LimitRangeItemV1
/// Type of resource that this limit applies to.
///
[YamlMember(Alias = "type")]
- [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
public string Type { get; set; }
///
diff --git a/src/KubeClient/Models/generated/LimitRangeListV1.cs b/src/KubeClient/Models/generated/LimitRangeListV1.cs
index fe6cb36d..d8a17cbb 100644
--- a/src/KubeClient/Models/generated/LimitRangeListV1.cs
+++ b/src/KubeClient/Models/generated/LimitRangeListV1.cs
@@ -13,7 +13,7 @@ namespace KubeClient.Models
public partial class LimitRangeListV1 : KubeResourceListV1
{
///
- /// Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
+ /// Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
///
[JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public override List Items { get; } = new List();
diff --git a/src/KubeClient/Models/generated/LimitRangeV1.cs b/src/KubeClient/Models/generated/LimitRangeV1.cs
index 5c276c50..3d0e44b8 100644
--- a/src/KubeClient/Models/generated/LimitRangeV1.cs
+++ b/src/KubeClient/Models/generated/LimitRangeV1.cs
@@ -23,7 +23,7 @@ namespace KubeClient.Models
public partial class LimitRangeV1 : KubeResourceV1
{
///
- /// Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/LimitResponseV1.cs b/src/KubeClient/Models/generated/LimitResponseV1.cs
new file mode 100644
index 00000000..e17501e2
--- /dev/null
+++ b/src/KubeClient/Models/generated/LimitResponseV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// LimitResponse defines how to handle requests that can not be executed right now.
+ ///
+ public partial class LimitResponseV1
+ {
+ ///
+ /// `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`.
+ ///
+ [YamlMember(Alias = "queuing")]
+ [JsonProperty("queuing", NullValueHandling = NullValueHandling.Ignore)]
+ public QueuingConfigurationV1 Queuing { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/LimitResponseV1Beta3.cs b/src/KubeClient/Models/generated/LimitResponseV1Beta3.cs
new file mode 100644
index 00000000..0bc8af39
--- /dev/null
+++ b/src/KubeClient/Models/generated/LimitResponseV1Beta3.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// LimitResponse defines how to handle requests that can not be executed right now.
+ ///
+ public partial class LimitResponseV1Beta3
+ {
+ ///
+ /// `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`.
+ ///
+ [YamlMember(Alias = "queuing")]
+ [JsonProperty("queuing", NullValueHandling = NullValueHandling.Ignore)]
+ public QueuingConfigurationV1Beta3 Queuing { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/LimitedPriorityLevelConfigurationV1.cs b/src/KubeClient/Models/generated/LimitedPriorityLevelConfigurationV1.cs
new file mode 100644
index 00000000..1d9da8d5
--- /dev/null
+++ b/src/KubeClient/Models/generated/LimitedPriorityLevelConfigurationV1.cs
@@ -0,0 +1,57 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:
+ /// - How are requests for this priority level limited?
+ /// - What should be done with requests that exceed the limit?
+ ///
+ public partial class LimitedPriorityLevelConfigurationV1
+ {
+ ///
+ /// `limitResponse` indicates what to do with requests that can not be executed right now
+ ///
+ [YamlMember(Alias = "limitResponse")]
+ [JsonProperty("limitResponse", NullValueHandling = NullValueHandling.Ignore)]
+ public LimitResponseV1 LimitResponse { get; set; }
+
+ ///
+ /// `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:
+ ///
+ /// NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)
+ ///
+ /// Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level.
+ ///
+ /// If not specified, this field defaults to a value of 30.
+ ///
+ /// Setting this field to zero supports the construction of a "jail" for this priority level that is used to hold some request(s)
+ ///
+ [YamlMember(Alias = "nominalConcurrencyShares")]
+ [JsonProperty("nominalConcurrencyShares", NullValueHandling = NullValueHandling.Ignore)]
+ public int? NominalConcurrencyShares { get; set; }
+
+ ///
+ /// `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.
+ ///
+ /// BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
+ ///
+ /// The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.
+ ///
+ [YamlMember(Alias = "borrowingLimitPercent")]
+ [JsonProperty("borrowingLimitPercent", NullValueHandling = NullValueHandling.Ignore)]
+ public int? BorrowingLimitPercent { get; set; }
+
+ ///
+ /// `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+ ///
+ /// LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+ ///
+ [YamlMember(Alias = "lendablePercent")]
+ [JsonProperty("lendablePercent", NullValueHandling = NullValueHandling.Ignore)]
+ public int? LendablePercent { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/LimitedPriorityLevelConfigurationV1Beta3.cs b/src/KubeClient/Models/generated/LimitedPriorityLevelConfigurationV1Beta3.cs
new file mode 100644
index 00000000..43457a90
--- /dev/null
+++ b/src/KubeClient/Models/generated/LimitedPriorityLevelConfigurationV1Beta3.cs
@@ -0,0 +1,53 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:
+ /// - How are requests for this priority level limited?
+ /// - What should be done with requests that exceed the limit?
+ ///
+ public partial class LimitedPriorityLevelConfigurationV1Beta3
+ {
+ ///
+ /// `limitResponse` indicates what to do with requests that can not be executed right now
+ ///
+ [YamlMember(Alias = "limitResponse")]
+ [JsonProperty("limitResponse", NullValueHandling = NullValueHandling.Ignore)]
+ public LimitResponseV1Beta3 LimitResponse { get; set; }
+
+ ///
+ /// `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:
+ ///
+ /// NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)
+ ///
+ /// Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.
+ ///
+ [YamlMember(Alias = "nominalConcurrencyShares")]
+ [JsonProperty("nominalConcurrencyShares", NullValueHandling = NullValueHandling.Ignore)]
+ public int? NominalConcurrencyShares { get; set; }
+
+ ///
+ /// `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.
+ ///
+ /// BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
+ ///
+ /// The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.
+ ///
+ [YamlMember(Alias = "borrowingLimitPercent")]
+ [JsonProperty("borrowingLimitPercent", NullValueHandling = NullValueHandling.Ignore)]
+ public int? BorrowingLimitPercent { get; set; }
+
+ ///
+ /// `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+ ///
+ /// LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+ ///
+ [YamlMember(Alias = "lendablePercent")]
+ [JsonProperty("lendablePercent", NullValueHandling = NullValueHandling.Ignore)]
+ public int? LendablePercent { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/LinuxContainerUserV1.cs b/src/KubeClient/Models/generated/LinuxContainerUserV1.cs
new file mode 100644
index 00000000..397a3460
--- /dev/null
+++ b/src/KubeClient/Models/generated/LinuxContainerUserV1.cs
@@ -0,0 +1,39 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// LinuxContainerUser represents user identity information in Linux containers
+ ///
+ public partial class LinuxContainerUserV1
+ {
+ ///
+ /// GID is the primary gid initially attached to the first process in the container
+ ///
+ [YamlMember(Alias = "gid")]
+ [JsonProperty("gid", NullValueHandling = NullValueHandling.Include)]
+ public long Gid { get; set; }
+
+ ///
+ /// UID is the primary uid initially attached to the first process in the container
+ ///
+ [YamlMember(Alias = "uid")]
+ [JsonProperty("uid", NullValueHandling = NullValueHandling.Include)]
+ public long Uid { get; set; }
+
+ ///
+ /// SupplementalGroups are the supplemental groups initially attached to the first process in the container
+ ///
+ [YamlMember(Alias = "supplementalGroups")]
+ [JsonProperty("supplementalGroups", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List SupplementalGroups { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeSupplementalGroups() => SupplementalGroups.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ListMetaV1.cs b/src/KubeClient/Models/generated/ListMetaV1.cs
index e714615b..e2523dfe 100644
--- a/src/KubeClient/Models/generated/ListMetaV1.cs
+++ b/src/KubeClient/Models/generated/ListMetaV1.cs
@@ -11,24 +11,31 @@ namespace KubeClient.Models
public partial class ListMetaV1
{
///
- /// continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response.
+ /// continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.
///
[YamlMember(Alias = "continue")]
[JsonProperty("continue", NullValueHandling = NullValueHandling.Ignore)]
public string Continue { get; set; }
///
- /// selfLink is a URL representing this object. Populated by the system. Read-only.
+ /// Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.
///
[YamlMember(Alias = "selfLink")]
[JsonProperty("selfLink", NullValueHandling = NullValueHandling.Ignore)]
public string SelfLink { get; set; }
///
- /// String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
+ /// String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
///
[YamlMember(Alias = "resourceVersion")]
[JsonProperty("resourceVersion", NullValueHandling = NullValueHandling.Ignore)]
public string ResourceVersion { get; set; }
+
+ ///
+ /// remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.
+ ///
+ [YamlMember(Alias = "remainingItemCount")]
+ [JsonProperty("remainingItemCount", NullValueHandling = NullValueHandling.Ignore)]
+ public long? RemainingItemCount { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/LoadBalancerIngressV1.cs b/src/KubeClient/Models/generated/LoadBalancerIngressV1.cs
index 1f5dea6f..6bc0ebdf 100644
--- a/src/KubeClient/Models/generated/LoadBalancerIngressV1.cs
+++ b/src/KubeClient/Models/generated/LoadBalancerIngressV1.cs
@@ -17,11 +17,30 @@ public partial class LoadBalancerIngressV1
[JsonProperty("hostname", NullValueHandling = NullValueHandling.Ignore)]
public string Hostname { get; set; }
+ ///
+ /// IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to "VIP" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to "Proxy" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.
+ ///
+ [YamlMember(Alias = "ipMode")]
+ [JsonProperty("ipMode", NullValueHandling = NullValueHandling.Ignore)]
+ public string IpMode { get; set; }
+
///
/// IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)
///
[YamlMember(Alias = "ip")]
[JsonProperty("ip", NullValueHandling = NullValueHandling.Ignore)]
public string Ip { get; set; }
+
+ ///
+ /// Ports is a list of records of service ports If used, every port defined in the service should have an entry in it
+ ///
+ [YamlMember(Alias = "ports")]
+ [JsonProperty("ports", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Ports { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializePorts() => Ports.Count > 0;
}
}
diff --git a/src/KubeClient/Models/generated/LocalObjectReferenceV1.cs b/src/KubeClient/Models/generated/LocalObjectReferenceV1.cs
index d2ca2414..ee69f92b 100644
--- a/src/KubeClient/Models/generated/LocalObjectReferenceV1.cs
+++ b/src/KubeClient/Models/generated/LocalObjectReferenceV1.cs
@@ -11,7 +11,7 @@ namespace KubeClient.Models
public partial class LocalObjectReferenceV1
{
///
- /// Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ /// Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/LocalVolumeSourceV1.cs b/src/KubeClient/Models/generated/LocalVolumeSourceV1.cs
index 6ed3b33e..801eece8 100644
--- a/src/KubeClient/Models/generated/LocalVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/LocalVolumeSourceV1.cs
@@ -11,7 +11,14 @@ namespace KubeClient.Models
public partial class LocalVolumeSourceV1
{
///
- /// The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). Directories can be represented only by PersistentVolume with VolumeMode=Filesystem. Block devices can be represented only by VolumeMode=Block, which also requires the BlockVolume alpha feature gate to be enabled.
+ /// fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
+ ///
+ [YamlMember(Alias = "fsType")]
+ [JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
+ public string FsType { get; set; }
+
+ ///
+ /// path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).
///
[YamlMember(Alias = "path")]
[JsonProperty("path", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/ManagedFieldsEntryV1.cs b/src/KubeClient/Models/generated/ManagedFieldsEntryV1.cs
new file mode 100644
index 00000000..fbaf0f47
--- /dev/null
+++ b/src/KubeClient/Models/generated/ManagedFieldsEntryV1.cs
@@ -0,0 +1,62 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.
+ ///
+ public partial class ManagedFieldsEntryV1
+ {
+ ///
+ /// FieldsV1 holds the first JSON version format as described in the "FieldsV1" type.
+ ///
+ [YamlMember(Alias = "fieldsV1")]
+ [JsonProperty("fieldsV1", NullValueHandling = NullValueHandling.Ignore)]
+ public FieldsV1 FieldsV1 { get; set; }
+
+ ///
+ /// FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1"
+ ///
+ [YamlMember(Alias = "fieldsType")]
+ [JsonProperty("fieldsType", NullValueHandling = NullValueHandling.Ignore)]
+ public string FieldsType { get; set; }
+
+ ///
+ /// Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.
+ ///
+ [YamlMember(Alias = "subresource")]
+ [JsonProperty("subresource", NullValueHandling = NullValueHandling.Ignore)]
+ public string Subresource { get; set; }
+
+ ///
+ /// Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.
+ ///
+ [YamlMember(Alias = "time")]
+ [JsonProperty("time", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? Time { get; set; }
+
+ ///
+ /// APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.
+ ///
+ [YamlMember(Alias = "apiVersion")]
+ [JsonProperty("apiVersion", NullValueHandling = NullValueHandling.Ignore)]
+ public string ApiVersion { get; set; }
+
+ ///
+ /// Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.
+ ///
+ [YamlMember(Alias = "operation")]
+ [JsonProperty("operation", NullValueHandling = NullValueHandling.Ignore)]
+ public string Operation { get; set; }
+
+ ///
+ /// Manager is an identifier of the workflow managing these fields.
+ ///
+ [YamlMember(Alias = "manager")]
+ [JsonProperty("manager", NullValueHandling = NullValueHandling.Ignore)]
+ public string Manager { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/MatchConditionV1.cs b/src/KubeClient/Models/generated/MatchConditionV1.cs
new file mode 100644
index 00000000..237bc609
--- /dev/null
+++ b/src/KubeClient/Models/generated/MatchConditionV1.cs
@@ -0,0 +1,37 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.
+ ///
+ public partial class MatchConditionV1
+ {
+ ///
+ /// Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+ ///
+ /// 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+ /// See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+ /// 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+ /// request resource.
+ /// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "expression")]
+ [JsonProperty("expression", NullValueHandling = NullValueHandling.Include)]
+ public string Expression { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/MatchConditionV1Alpha1.cs b/src/KubeClient/Models/generated/MatchConditionV1Alpha1.cs
new file mode 100644
index 00000000..ecfc3938
--- /dev/null
+++ b/src/KubeClient/Models/generated/MatchConditionV1Alpha1.cs
@@ -0,0 +1,37 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// No description provided.
+ ///
+ public partial class MatchConditionV1Alpha1
+ {
+ ///
+ /// Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+ ///
+ /// 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+ /// See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+ /// 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+ /// request resource.
+ /// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "expression")]
+ [JsonProperty("expression", NullValueHandling = NullValueHandling.Include)]
+ public string Expression { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/MatchConditionV1Beta1.cs b/src/KubeClient/Models/generated/MatchConditionV1Beta1.cs
new file mode 100644
index 00000000..526e1190
--- /dev/null
+++ b/src/KubeClient/Models/generated/MatchConditionV1Beta1.cs
@@ -0,0 +1,37 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.
+ ///
+ public partial class MatchConditionV1Beta1
+ {
+ ///
+ /// Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+ ///
+ /// 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+ /// See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+ /// 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+ /// request resource.
+ /// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "expression")]
+ [JsonProperty("expression", NullValueHandling = NullValueHandling.Include)]
+ public string Expression { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/MatchResourcesV1.cs b/src/KubeClient/Models/generated/MatchResourcesV1.cs
new file mode 100644
index 00000000..5477e340
--- /dev/null
+++ b/src/KubeClient/Models/generated/MatchResourcesV1.cs
@@ -0,0 +1,94 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+ ///
+ public partial class MatchResourcesV1
+ {
+ ///
+ /// NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.
+ ///
+ /// For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": {
+ /// "matchExpressions": [
+ /// {
+ /// "key": "runlevel",
+ /// "operator": "NotIn",
+ /// "values": [
+ /// "0",
+ /// "1"
+ /// ]
+ /// }
+ /// ]
+ /// }
+ ///
+ /// If instead you want to only run the policy on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": {
+ /// "matchExpressions": [
+ /// {
+ /// "key": "environment",
+ /// "operator": "In",
+ /// "values": [
+ /// "prod",
+ /// "staging"
+ /// ]
+ /// }
+ /// ]
+ /// }
+ ///
+ /// See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
+ ///
+ /// Default to the empty LabelSelector, which matches everything.
+ ///
+ [YamlMember(Alias = "namespaceSelector")]
+ [JsonProperty("namespaceSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 NamespaceSelector { get; set; }
+
+ ///
+ /// ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.
+ ///
+ [YamlMember(Alias = "objectSelector")]
+ [JsonProperty("objectSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 ObjectSelector { get; set; }
+
+ ///
+ /// ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+ ///
+ [YamlMember(Alias = "excludeResourceRules")]
+ [JsonProperty("excludeResourceRules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ExcludeResourceRules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeExcludeResourceRules() => ExcludeResourceRules.Count > 0;
+
+ ///
+ /// ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.
+ ///
+ [YamlMember(Alias = "resourceRules")]
+ [JsonProperty("resourceRules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ResourceRules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResourceRules() => ResourceRules.Count > 0;
+
+ ///
+ /// matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
+ ///
+ /// - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+ ///
+ /// - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+ ///
+ /// Defaults to "Equivalent"
+ ///
+ [YamlMember(Alias = "matchPolicy")]
+ [JsonProperty("matchPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string MatchPolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/MatchResourcesV1Alpha1.cs b/src/KubeClient/Models/generated/MatchResourcesV1Alpha1.cs
new file mode 100644
index 00000000..c064751a
--- /dev/null
+++ b/src/KubeClient/Models/generated/MatchResourcesV1Alpha1.cs
@@ -0,0 +1,94 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+ ///
+ public partial class MatchResourcesV1Alpha1
+ {
+ ///
+ /// NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.
+ ///
+ /// For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": {
+ /// "matchExpressions": [
+ /// {
+ /// "key": "runlevel",
+ /// "operator": "NotIn",
+ /// "values": [
+ /// "0",
+ /// "1"
+ /// ]
+ /// }
+ /// ]
+ /// }
+ ///
+ /// If instead you want to only run the policy on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": {
+ /// "matchExpressions": [
+ /// {
+ /// "key": "environment",
+ /// "operator": "In",
+ /// "values": [
+ /// "prod",
+ /// "staging"
+ /// ]
+ /// }
+ /// ]
+ /// }
+ ///
+ /// See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
+ ///
+ /// Default to the empty LabelSelector, which matches everything.
+ ///
+ [YamlMember(Alias = "namespaceSelector")]
+ [JsonProperty("namespaceSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 NamespaceSelector { get; set; }
+
+ ///
+ /// ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.
+ ///
+ [YamlMember(Alias = "objectSelector")]
+ [JsonProperty("objectSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 ObjectSelector { get; set; }
+
+ ///
+ /// ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+ ///
+ [YamlMember(Alias = "excludeResourceRules")]
+ [JsonProperty("excludeResourceRules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ExcludeResourceRules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeExcludeResourceRules() => ExcludeResourceRules.Count > 0;
+
+ ///
+ /// ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.
+ ///
+ [YamlMember(Alias = "resourceRules")]
+ [JsonProperty("resourceRules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ResourceRules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResourceRules() => ResourceRules.Count > 0;
+
+ ///
+ /// matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
+ ///
+ /// - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+ ///
+ /// - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+ ///
+ /// Defaults to "Equivalent"
+ ///
+ [YamlMember(Alias = "matchPolicy")]
+ [JsonProperty("matchPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string MatchPolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/MatchResourcesV1Beta1.cs b/src/KubeClient/Models/generated/MatchResourcesV1Beta1.cs
new file mode 100644
index 00000000..4e055444
--- /dev/null
+++ b/src/KubeClient/Models/generated/MatchResourcesV1Beta1.cs
@@ -0,0 +1,94 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+ ///
+ public partial class MatchResourcesV1Beta1
+ {
+ ///
+ /// NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.
+ ///
+ /// For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": {
+ /// "matchExpressions": [
+ /// {
+ /// "key": "runlevel",
+ /// "operator": "NotIn",
+ /// "values": [
+ /// "0",
+ /// "1"
+ /// ]
+ /// }
+ /// ]
+ /// }
+ ///
+ /// If instead you want to only run the policy on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": {
+ /// "matchExpressions": [
+ /// {
+ /// "key": "environment",
+ /// "operator": "In",
+ /// "values": [
+ /// "prod",
+ /// "staging"
+ /// ]
+ /// }
+ /// ]
+ /// }
+ ///
+ /// See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
+ ///
+ /// Default to the empty LabelSelector, which matches everything.
+ ///
+ [YamlMember(Alias = "namespaceSelector")]
+ [JsonProperty("namespaceSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 NamespaceSelector { get; set; }
+
+ ///
+ /// ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.
+ ///
+ [YamlMember(Alias = "objectSelector")]
+ [JsonProperty("objectSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 ObjectSelector { get; set; }
+
+ ///
+ /// ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+ ///
+ [YamlMember(Alias = "excludeResourceRules")]
+ [JsonProperty("excludeResourceRules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ExcludeResourceRules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeExcludeResourceRules() => ExcludeResourceRules.Count > 0;
+
+ ///
+ /// ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.
+ ///
+ [YamlMember(Alias = "resourceRules")]
+ [JsonProperty("resourceRules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ResourceRules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResourceRules() => ResourceRules.Count > 0;
+
+ ///
+ /// matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
+ ///
+ /// - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+ ///
+ /// - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+ ///
+ /// Defaults to "Equivalent"
+ ///
+ [YamlMember(Alias = "matchPolicy")]
+ [JsonProperty("matchPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string MatchPolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/MetricIdentifierV2.cs b/src/KubeClient/Models/generated/MetricIdentifierV2.cs
new file mode 100644
index 00000000..4439210d
--- /dev/null
+++ b/src/KubeClient/Models/generated/MetricIdentifierV2.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// MetricIdentifier defines the name and optionally selector for a metric
+ ///
+ public partial class MetricIdentifierV2
+ {
+ ///
+ /// name is the name of the given metric
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.
+ ///
+ [YamlMember(Alias = "selector")]
+ [JsonProperty("selector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 Selector { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/MetricSpecV2.cs b/src/KubeClient/Models/generated/MetricSpecV2.cs
new file mode 100644
index 00000000..f1e1723d
--- /dev/null
+++ b/src/KubeClient/Models/generated/MetricSpecV2.cs
@@ -0,0 +1,55 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
+ ///
+ public partial class MetricSpecV2
+ {
+ ///
+ /// containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.
+ ///
+ [YamlMember(Alias = "containerResource")]
+ [JsonProperty("containerResource", NullValueHandling = NullValueHandling.Ignore)]
+ public ContainerResourceMetricSourceV2 ContainerResource { get; set; }
+
+ ///
+ /// resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
+ ///
+ [YamlMember(Alias = "resource")]
+ [JsonProperty("resource", NullValueHandling = NullValueHandling.Ignore)]
+ public ResourceMetricSourceV2 Resource { get; set; }
+
+ ///
+ /// type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
+ ///
+ [YamlMember(Alias = "external")]
+ [JsonProperty("external", NullValueHandling = NullValueHandling.Ignore)]
+ public ExternalMetricSourceV2 External { get; set; }
+
+ ///
+ /// pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
+ ///
+ [YamlMember(Alias = "pods")]
+ [JsonProperty("pods", NullValueHandling = NullValueHandling.Ignore)]
+ public PodsMetricSourceV2 Pods { get; set; }
+
+ ///
+ /// object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).
+ ///
+ [YamlMember(Alias = "object")]
+ [JsonProperty("object", NullValueHandling = NullValueHandling.Ignore)]
+ public ObjectMetricSourceV2 Object { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/MetricStatusV2.cs b/src/KubeClient/Models/generated/MetricStatusV2.cs
new file mode 100644
index 00000000..8cf16f84
--- /dev/null
+++ b/src/KubeClient/Models/generated/MetricStatusV2.cs
@@ -0,0 +1,55 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// MetricStatus describes the last-read state of a single metric.
+ ///
+ public partial class MetricStatusV2
+ {
+ ///
+ /// container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
+ ///
+ [YamlMember(Alias = "containerResource")]
+ [JsonProperty("containerResource", NullValueHandling = NullValueHandling.Ignore)]
+ public ContainerResourceMetricStatusV2 ContainerResource { get; set; }
+
+ ///
+ /// resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
+ ///
+ [YamlMember(Alias = "resource")]
+ [JsonProperty("resource", NullValueHandling = NullValueHandling.Ignore)]
+ public ResourceMetricStatusV2 Resource { get; set; }
+
+ ///
+ /// type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
+ ///
+ [YamlMember(Alias = "external")]
+ [JsonProperty("external", NullValueHandling = NullValueHandling.Ignore)]
+ public ExternalMetricStatusV2 External { get; set; }
+
+ ///
+ /// pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
+ ///
+ [YamlMember(Alias = "pods")]
+ [JsonProperty("pods", NullValueHandling = NullValueHandling.Ignore)]
+ public PodsMetricStatusV2 Pods { get; set; }
+
+ ///
+ /// object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).
+ ///
+ [YamlMember(Alias = "object")]
+ [JsonProperty("object", NullValueHandling = NullValueHandling.Ignore)]
+ public ObjectMetricStatusV2 Object { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/MetricTargetV2.cs b/src/KubeClient/Models/generated/MetricTargetV2.cs
new file mode 100644
index 00000000..b73c9c7b
--- /dev/null
+++ b/src/KubeClient/Models/generated/MetricTargetV2.cs
@@ -0,0 +1,41 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// MetricTarget defines the target value, average value, or average utilization of a specific metric
+ ///
+ public partial class MetricTargetV2
+ {
+ ///
+ /// averageValue is the target value of the average of the metric across all relevant pods (as a quantity)
+ ///
+ [YamlMember(Alias = "averageValue")]
+ [JsonProperty("averageValue", NullValueHandling = NullValueHandling.Ignore)]
+ public string AverageValue { get; set; }
+
+ ///
+ /// type represents whether the metric type is Utilization, Value, or AverageValue
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// value is the target value of the metric (as a quantity).
+ ///
+ [YamlMember(Alias = "value")]
+ [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
+ public string Value { get; set; }
+
+ ///
+ /// averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type
+ ///
+ [YamlMember(Alias = "averageUtilization")]
+ [JsonProperty("averageUtilization", NullValueHandling = NullValueHandling.Ignore)]
+ public int? AverageUtilization { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/MetricValueStatusV2.cs b/src/KubeClient/Models/generated/MetricValueStatusV2.cs
new file mode 100644
index 00000000..3237a71e
--- /dev/null
+++ b/src/KubeClient/Models/generated/MetricValueStatusV2.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// MetricValueStatus holds the current value for a metric
+ ///
+ public partial class MetricValueStatusV2
+ {
+ ///
+ /// averageValue is the current value of the average of the metric across all relevant pods (as a quantity)
+ ///
+ [YamlMember(Alias = "averageValue")]
+ [JsonProperty("averageValue", NullValueHandling = NullValueHandling.Ignore)]
+ public string AverageValue { get; set; }
+
+ ///
+ /// value is the current value of the metric (as a quantity).
+ ///
+ [YamlMember(Alias = "value")]
+ [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
+ public string Value { get; set; }
+
+ ///
+ /// currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.
+ ///
+ [YamlMember(Alias = "averageUtilization")]
+ [JsonProperty("averageUtilization", NullValueHandling = NullValueHandling.Ignore)]
+ public int? AverageUtilization { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/MigrationConditionV1Alpha1.cs b/src/KubeClient/Models/generated/MigrationConditionV1Alpha1.cs
new file mode 100644
index 00000000..b67af531
--- /dev/null
+++ b/src/KubeClient/Models/generated/MigrationConditionV1Alpha1.cs
@@ -0,0 +1,48 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Describes the state of a migration at a certain point.
+ ///
+ public partial class MigrationConditionV1Alpha1
+ {
+ ///
+ /// The last time this condition was updated.
+ ///
+ [YamlMember(Alias = "lastUpdateTime")]
+ [JsonProperty("lastUpdateTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastUpdateTime { get; set; }
+
+ ///
+ /// A human readable message indicating details about the transition.
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
+ public string Message { get; set; }
+
+ ///
+ /// Type of the condition.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// The reason for the condition's last transition.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reason { get; set; }
+
+ ///
+ /// Status of the condition, one of True, False, Unknown.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Include)]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ModifyVolumeStatusV1.cs b/src/KubeClient/Models/generated/ModifyVolumeStatusV1.cs
new file mode 100644
index 00000000..3baa3b36
--- /dev/null
+++ b/src/KubeClient/Models/generated/ModifyVolumeStatusV1.cs
@@ -0,0 +1,36 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ModifyVolumeStatus represents the status object of ControllerModifyVolume operation
+ ///
+ public partial class ModifyVolumeStatusV1
+ {
+ ///
+ /// targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled
+ ///
+ [YamlMember(Alias = "targetVolumeAttributesClassName")]
+ [JsonProperty("targetVolumeAttributesClassName", NullValueHandling = NullValueHandling.Ignore)]
+ public string TargetVolumeAttributesClassName { get; set; }
+
+ ///
+ /// status is the status of the ControllerModifyVolume operation. It can be in any of following states:
+ /// - Pending
+ /// Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as
+ /// the specified VolumeAttributesClass not existing.
+ /// - InProgress
+ /// InProgress indicates that the volume is being modified.
+ /// - Infeasible
+ /// Infeasible indicates that the request has been rejected as invalid by the CSI driver. To
+ /// resolve the error, a valid VolumeAttributesClass needs to be specified.
+ /// Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Include)]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/MutatingWebhookConfigurationListV1.cs b/src/KubeClient/Models/generated/MutatingWebhookConfigurationListV1.cs
new file mode 100644
index 00000000..9db01d00
--- /dev/null
+++ b/src/KubeClient/Models/generated/MutatingWebhookConfigurationListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.
+ ///
+ [KubeListItem("MutatingWebhookConfiguration", "admissionregistration.k8s.io/v1")]
+ [KubeObject("MutatingWebhookConfigurationList", "admissionregistration.k8s.io/v1")]
+ public partial class MutatingWebhookConfigurationListV1 : KubeResourceListV1
+ {
+ ///
+ /// List of MutatingWebhookConfiguration.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/MutatingWebhookConfigurationV1.cs b/src/KubeClient/Models/generated/MutatingWebhookConfigurationV1.cs
new file mode 100644
index 00000000..407bbc7f
--- /dev/null
+++ b/src/KubeClient/Models/generated/MutatingWebhookConfigurationV1.cs
@@ -0,0 +1,36 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
+ ///
+ [KubeObject("MutatingWebhookConfiguration", "admissionregistration.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations")]
+ [KubeApi(KubeAction.Create, "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations")]
+ [KubeApi(KubeAction.Get, "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}")]
+ [KubeApi(KubeAction.Update, "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations")]
+ [KubeApi(KubeAction.Watch, "apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations/{name}")]
+ public partial class MutatingWebhookConfigurationV1 : KubeResourceV1
+ {
+ ///
+ /// Webhooks is a list of webhooks and the affected resources and operations.
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "webhooks")]
+ [JsonProperty("webhooks", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Webhooks { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeWebhooks() => Webhooks.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/MutatingWebhookV1.cs b/src/KubeClient/Models/generated/MutatingWebhookV1.cs
new file mode 100644
index 00000000..d9d6e2b9
--- /dev/null
+++ b/src/KubeClient/Models/generated/MutatingWebhookV1.cs
@@ -0,0 +1,157 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// MutatingWebhook describes an admission webhook and the resources and operations it applies to.
+ ///
+ public partial class MutatingWebhookV1
+ {
+ ///
+ /// The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// ClientConfig defines how to communicate with the hook. Required
+ ///
+ [YamlMember(Alias = "clientConfig")]
+ [JsonProperty("clientConfig", NullValueHandling = NullValueHandling.Include)]
+ public WebhookClientConfigV1 ClientConfig { get; set; }
+
+ ///
+ /// NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.
+ ///
+ /// For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": {
+ /// "matchExpressions": [
+ /// {
+ /// "key": "runlevel",
+ /// "operator": "NotIn",
+ /// "values": [
+ /// "0",
+ /// "1"
+ /// ]
+ /// }
+ /// ]
+ /// }
+ ///
+ /// If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": {
+ /// "matchExpressions": [
+ /// {
+ /// "key": "environment",
+ /// "operator": "In",
+ /// "values": [
+ /// "prod",
+ /// "staging"
+ /// ]
+ /// }
+ /// ]
+ /// }
+ ///
+ /// See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
+ ///
+ /// Default to the empty LabelSelector, which matches everything.
+ ///
+ [YamlMember(Alias = "namespaceSelector")]
+ [JsonProperty("namespaceSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 NamespaceSelector { get; set; }
+
+ ///
+ /// ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.
+ ///
+ [YamlMember(Alias = "objectSelector")]
+ [JsonProperty("objectSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 ObjectSelector { get; set; }
+
+ ///
+ /// AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.
+ ///
+ [YamlMember(Alias = "admissionReviewVersions")]
+ [JsonProperty("admissionReviewVersions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List AdmissionReviewVersions { get; } = new List();
+
+ ///
+ /// MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
+ ///
+ /// The exact matching logic is (in order):
+ /// 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+ /// 2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+ /// 3. If any matchCondition evaluates to an error (but none are FALSE):
+ /// - If failurePolicy=Fail, reject the request
+ /// - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "matchConditions")]
+ [JsonProperty("matchConditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List MatchConditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeMatchConditions() => MatchConditions.Count > 0;
+
+ ///
+ /// Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+ ///
+ [YamlMember(Alias = "rules")]
+ [JsonProperty("rules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Rules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRules() => Rules.Count > 0;
+
+ ///
+ /// SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.
+ ///
+ [YamlMember(Alias = "sideEffects")]
+ [JsonProperty("sideEffects", NullValueHandling = NullValueHandling.Include)]
+ public string SideEffects { get; set; }
+
+ ///
+ /// TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.
+ ///
+ [YamlMember(Alias = "timeoutSeconds")]
+ [JsonProperty("timeoutSeconds", NullValueHandling = NullValueHandling.Ignore)]
+ public int? TimeoutSeconds { get; set; }
+
+ ///
+ /// FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.
+ ///
+ [YamlMember(Alias = "failurePolicy")]
+ [JsonProperty("failurePolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string FailurePolicy { get; set; }
+
+ ///
+ /// matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
+ ///
+ /// - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
+ ///
+ /// - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
+ ///
+ /// Defaults to "Equivalent"
+ ///
+ [YamlMember(Alias = "matchPolicy")]
+ [JsonProperty("matchPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string MatchPolicy { get; set; }
+
+ ///
+ /// reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded".
+ ///
+ /// Never: the webhook will not be called more than once in a single admission evaluation.
+ ///
+ /// IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
+ ///
+ /// Defaults to "Never".
+ ///
+ [YamlMember(Alias = "reinvocationPolicy")]
+ [JsonProperty("reinvocationPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string ReinvocationPolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/NFSVolumeSourceV1.cs b/src/KubeClient/Models/generated/NFSVolumeSourceV1.cs
index 3ee4d91a..06b18ec9 100644
--- a/src/KubeClient/Models/generated/NFSVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/NFSVolumeSourceV1.cs
@@ -11,21 +11,21 @@ namespace KubeClient.Models
public partial class NFSVolumeSourceV1
{
///
- /// Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
+ /// path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
///
[YamlMember(Alias = "path")]
[JsonProperty("path", NullValueHandling = NullValueHandling.Include)]
public string Path { get; set; }
///
- /// Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
+ /// server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
///
[YamlMember(Alias = "server")]
[JsonProperty("server", NullValueHandling = NullValueHandling.Include)]
public string Server { get; set; }
///
- /// ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
+ /// readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/NamedRuleWithOperationsV1.cs b/src/KubeClient/Models/generated/NamedRuleWithOperationsV1.cs
new file mode 100644
index 00000000..be768ef7
--- /dev/null
+++ b/src/KubeClient/Models/generated/NamedRuleWithOperationsV1.cs
@@ -0,0 +1,86 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
+ ///
+ public partial class NamedRuleWithOperationsV1
+ {
+ ///
+ /// scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*".
+ ///
+ [YamlMember(Alias = "scope")]
+ [JsonProperty("scope", NullValueHandling = NullValueHandling.Ignore)]
+ public string Scope { get; set; }
+
+ ///
+ /// APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
+ ///
+ [YamlMember(Alias = "apiGroups")]
+ [JsonProperty("apiGroups", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ApiGroups { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeApiGroups() => ApiGroups.Count > 0;
+
+ ///
+ /// APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
+ ///
+ [YamlMember(Alias = "apiVersions")]
+ [JsonProperty("apiVersions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ApiVersions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeApiVersions() => ApiVersions.Count > 0;
+
+ ///
+ /// Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.
+ ///
+ [YamlMember(Alias = "operations")]
+ [JsonProperty("operations", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Operations { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeOperations() => Operations.Count > 0;
+
+ ///
+ /// ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
+ ///
+ [YamlMember(Alias = "resourceNames")]
+ [JsonProperty("resourceNames", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ResourceNames { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResourceNames() => ResourceNames.Count > 0;
+
+ ///
+ /// Resources is a list of resources this rule applies to.
+ ///
+ /// For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.
+ ///
+ /// If wildcard is present, the validation rule will ensure resources do not overlap with each other.
+ ///
+ /// Depending on the enclosing object, subresources might not be allowed. Required.
+ ///
+ [YamlMember(Alias = "resources")]
+ [JsonProperty("resources", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Resources { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResources() => Resources.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/NamedRuleWithOperationsV1Alpha1.cs b/src/KubeClient/Models/generated/NamedRuleWithOperationsV1Alpha1.cs
new file mode 100644
index 00000000..5714cfba
--- /dev/null
+++ b/src/KubeClient/Models/generated/NamedRuleWithOperationsV1Alpha1.cs
@@ -0,0 +1,86 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
+ ///
+ public partial class NamedRuleWithOperationsV1Alpha1
+ {
+ ///
+ /// scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*".
+ ///
+ [YamlMember(Alias = "scope")]
+ [JsonProperty("scope", NullValueHandling = NullValueHandling.Ignore)]
+ public string Scope { get; set; }
+
+ ///
+ /// APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
+ ///
+ [YamlMember(Alias = "apiGroups")]
+ [JsonProperty("apiGroups", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ApiGroups { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeApiGroups() => ApiGroups.Count > 0;
+
+ ///
+ /// APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
+ ///
+ [YamlMember(Alias = "apiVersions")]
+ [JsonProperty("apiVersions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ApiVersions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeApiVersions() => ApiVersions.Count > 0;
+
+ ///
+ /// Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.
+ ///
+ [YamlMember(Alias = "operations")]
+ [JsonProperty("operations", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Operations { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeOperations() => Operations.Count > 0;
+
+ ///
+ /// ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
+ ///
+ [YamlMember(Alias = "resourceNames")]
+ [JsonProperty("resourceNames", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ResourceNames { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResourceNames() => ResourceNames.Count > 0;
+
+ ///
+ /// Resources is a list of resources this rule applies to.
+ ///
+ /// For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.
+ ///
+ /// If wildcard is present, the validation rule will ensure resources do not overlap with each other.
+ ///
+ /// Depending on the enclosing object, subresources might not be allowed. Required.
+ ///
+ [YamlMember(Alias = "resources")]
+ [JsonProperty("resources", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Resources { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResources() => Resources.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/NamedRuleWithOperationsV1Beta1.cs b/src/KubeClient/Models/generated/NamedRuleWithOperationsV1Beta1.cs
new file mode 100644
index 00000000..757111c0
--- /dev/null
+++ b/src/KubeClient/Models/generated/NamedRuleWithOperationsV1Beta1.cs
@@ -0,0 +1,86 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
+ ///
+ public partial class NamedRuleWithOperationsV1Beta1
+ {
+ ///
+ /// scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*".
+ ///
+ [YamlMember(Alias = "scope")]
+ [JsonProperty("scope", NullValueHandling = NullValueHandling.Ignore)]
+ public string Scope { get; set; }
+
+ ///
+ /// APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
+ ///
+ [YamlMember(Alias = "apiGroups")]
+ [JsonProperty("apiGroups", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ApiGroups { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeApiGroups() => ApiGroups.Count > 0;
+
+ ///
+ /// APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
+ ///
+ [YamlMember(Alias = "apiVersions")]
+ [JsonProperty("apiVersions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ApiVersions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeApiVersions() => ApiVersions.Count > 0;
+
+ ///
+ /// Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.
+ ///
+ [YamlMember(Alias = "operations")]
+ [JsonProperty("operations", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Operations { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeOperations() => Operations.Count > 0;
+
+ ///
+ /// ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
+ ///
+ [YamlMember(Alias = "resourceNames")]
+ [JsonProperty("resourceNames", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ResourceNames { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResourceNames() => ResourceNames.Count > 0;
+
+ ///
+ /// Resources is a list of resources this rule applies to.
+ ///
+ /// For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.
+ ///
+ /// If wildcard is present, the validation rule will ensure resources do not overlap with each other.
+ ///
+ /// Depending on the enclosing object, subresources might not be allowed. Required.
+ ///
+ [YamlMember(Alias = "resources")]
+ [JsonProperty("resources", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Resources { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResources() => Resources.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/NamespaceConditionV1.cs b/src/KubeClient/Models/generated/NamespaceConditionV1.cs
new file mode 100644
index 00000000..74670e1e
--- /dev/null
+++ b/src/KubeClient/Models/generated/NamespaceConditionV1.cs
@@ -0,0 +1,48 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// NamespaceCondition contains details about state of namespace.
+ ///
+ public partial class NamespaceConditionV1
+ {
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "lastTransitionTime")]
+ [JsonProperty("lastTransitionTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastTransitionTime { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
+ public string Message { get; set; }
+
+ ///
+ /// Type of namespace controller condition.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// Description not provided.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reason { get; set; }
+
+ ///
+ /// Status of the condition, one of True, False, Unknown.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Include)]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/NamespaceStatusV1.cs b/src/KubeClient/Models/generated/NamespaceStatusV1.cs
index 8b86baf3..28886ee3 100644
--- a/src/KubeClient/Models/generated/NamespaceStatusV1.cs
+++ b/src/KubeClient/Models/generated/NamespaceStatusV1.cs
@@ -16,5 +16,18 @@ public partial class NamespaceStatusV1
[YamlMember(Alias = "phase")]
[JsonProperty("phase", NullValueHandling = NullValueHandling.Ignore)]
public string Phase { get; set; }
+
+ ///
+ /// Represents the latest available observations of a namespace's current state.
+ ///
+ [MergeStrategy(Key = "type")]
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
}
}
diff --git a/src/KubeClient/Models/generated/NamespaceV1.cs b/src/KubeClient/Models/generated/NamespaceV1.cs
index 71bf4360..07a783dc 100644
--- a/src/KubeClient/Models/generated/NamespaceV1.cs
+++ b/src/KubeClient/Models/generated/NamespaceV1.cs
@@ -24,14 +24,14 @@ namespace KubeClient.Models
public partial class NamespaceV1 : KubeResourceV1
{
///
- /// Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
public NamespaceSpecV1 Spec { get; set; }
///
- /// Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/NetworkPolicyEgressRuleV1.cs b/src/KubeClient/Models/generated/NetworkPolicyEgressRuleV1.cs
index e7c1fce8..010f0cd6 100644
--- a/src/KubeClient/Models/generated/NetworkPolicyEgressRuleV1.cs
+++ b/src/KubeClient/Models/generated/NetworkPolicyEgressRuleV1.cs
@@ -11,7 +11,7 @@ namespace KubeClient.Models
public partial class NetworkPolicyEgressRuleV1
{
///
- /// List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.
+ /// to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.
///
[YamlMember(Alias = "to")]
[JsonProperty("to", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -23,7 +23,7 @@ public partial class NetworkPolicyEgressRuleV1
public bool ShouldSerializeTo() => To.Count > 0;
///
- /// List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.
+ /// ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.
///
[YamlMember(Alias = "ports")]
[JsonProperty("ports", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
diff --git a/src/KubeClient/Models/generated/NetworkPolicyIngressRuleV1.cs b/src/KubeClient/Models/generated/NetworkPolicyIngressRuleV1.cs
index 2ee17b58..459a0c9a 100644
--- a/src/KubeClient/Models/generated/NetworkPolicyIngressRuleV1.cs
+++ b/src/KubeClient/Models/generated/NetworkPolicyIngressRuleV1.cs
@@ -11,7 +11,7 @@ namespace KubeClient.Models
public partial class NetworkPolicyIngressRuleV1
{
///
- /// List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list.
+ /// from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.
///
[YamlMember(Alias = "from")]
[JsonProperty("from", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -23,7 +23,7 @@ public partial class NetworkPolicyIngressRuleV1
public bool ShouldSerializeFrom() => From.Count > 0;
///
- /// List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.
+ /// ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.
///
[YamlMember(Alias = "ports")]
[JsonProperty("ports", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
diff --git a/src/KubeClient/Models/generated/NetworkPolicyListV1.cs b/src/KubeClient/Models/generated/NetworkPolicyListV1.cs
index 8ffc7971..d3f7b71d 100644
--- a/src/KubeClient/Models/generated/NetworkPolicyListV1.cs
+++ b/src/KubeClient/Models/generated/NetworkPolicyListV1.cs
@@ -13,7 +13,7 @@ namespace KubeClient.Models
public partial class NetworkPolicyListV1 : KubeResourceListV1
{
///
- /// Items is a list of schema objects.
+ /// items is a list of schema objects.
///
[JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public override List Items { get; } = new List();
diff --git a/src/KubeClient/Models/generated/NetworkPolicyPeerV1.cs b/src/KubeClient/Models/generated/NetworkPolicyPeerV1.cs
index 3c18f82b..8cd8c107 100644
--- a/src/KubeClient/Models/generated/NetworkPolicyPeerV1.cs
+++ b/src/KubeClient/Models/generated/NetworkPolicyPeerV1.cs
@@ -6,30 +6,30 @@
namespace KubeClient.Models
{
///
- /// NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of fields are allowed
+ /// NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed
///
public partial class NetworkPolicyPeerV1
{
///
- /// IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.
+ /// ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.
///
[YamlMember(Alias = "ipBlock")]
[JsonProperty("ipBlock", NullValueHandling = NullValueHandling.Ignore)]
public IPBlockV1 IpBlock { get; set; }
///
- /// Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.
+ /// namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.
///
- /// If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
+ /// If podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector.
///
[YamlMember(Alias = "namespaceSelector")]
[JsonProperty("namespaceSelector", NullValueHandling = NullValueHandling.Ignore)]
public LabelSelectorV1 NamespaceSelector { get; set; }
///
- /// This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods.
+ /// podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.
///
- /// If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
+ /// If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace.
///
[YamlMember(Alias = "podSelector")]
[JsonProperty("podSelector", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/NetworkPolicyPortV1.cs b/src/KubeClient/Models/generated/NetworkPolicyPortV1.cs
index 40729b8a..c6ec2652 100644
--- a/src/KubeClient/Models/generated/NetworkPolicyPortV1.cs
+++ b/src/KubeClient/Models/generated/NetworkPolicyPortV1.cs
@@ -11,14 +11,21 @@ namespace KubeClient.Models
public partial class NetworkPolicyPortV1
{
///
- /// The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.
+ /// protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.
///
[YamlMember(Alias = "protocol")]
[JsonProperty("protocol", NullValueHandling = NullValueHandling.Ignore)]
public string Protocol { get; set; }
///
- /// The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers.
+ /// endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.
+ ///
+ [YamlMember(Alias = "endPort")]
+ [JsonProperty("endPort", NullValueHandling = NullValueHandling.Ignore)]
+ public int? EndPort { get; set; }
+
+ ///
+ /// port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.
///
[YamlMember(Alias = "port")]
[JsonProperty("port", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/NetworkPolicySpecV1.cs b/src/KubeClient/Models/generated/NetworkPolicySpecV1.cs
index 24e27455..88b8d891 100644
--- a/src/KubeClient/Models/generated/NetworkPolicySpecV1.cs
+++ b/src/KubeClient/Models/generated/NetworkPolicySpecV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class NetworkPolicySpecV1
{
///
- /// Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
+ /// podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
///
[YamlMember(Alias = "podSelector")]
[JsonProperty("podSelector", NullValueHandling = NullValueHandling.Include)]
public LabelSelectorV1 PodSelector { get; set; }
///
- /// List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8
+ /// egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8
///
[YamlMember(Alias = "egress")]
[JsonProperty("egress", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -30,7 +30,7 @@ public partial class NetworkPolicySpecV1
public bool ShouldSerializeEgress() => Egress.Count > 0;
///
- /// List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)
+ /// ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)
///
[YamlMember(Alias = "ingress")]
[JsonProperty("ingress", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -42,7 +42,7 @@ public partial class NetworkPolicySpecV1
public bool ShouldSerializeIngress() => Ingress.Count > 0;
///
- /// List of rule types that the NetworkPolicy relates to. Valid options are Ingress, Egress, or Ingress,Egress. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8
+ /// policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8
///
[YamlMember(Alias = "policyTypes")]
[JsonProperty("policyTypes", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
diff --git a/src/KubeClient/Models/generated/NetworkPolicyV1.cs b/src/KubeClient/Models/generated/NetworkPolicyV1.cs
index bb409e68..0c592f82 100644
--- a/src/KubeClient/Models/generated/NetworkPolicyV1.cs
+++ b/src/KubeClient/Models/generated/NetworkPolicyV1.cs
@@ -23,7 +23,7 @@ namespace KubeClient.Models
public partial class NetworkPolicyV1 : KubeResourceV1
{
///
- /// Specification of the desired behavior for this NetworkPolicy.
+ /// spec represents the specification of the desired behavior for this NetworkPolicy.
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/NodeConfigSourceV1.cs b/src/KubeClient/Models/generated/NodeConfigSourceV1.cs
index b4d7c75a..1d5f99ac 100644
--- a/src/KubeClient/Models/generated/NodeConfigSourceV1.cs
+++ b/src/KubeClient/Models/generated/NodeConfigSourceV1.cs
@@ -6,7 +6,7 @@
namespace KubeClient.Models
{
///
- /// NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.
+ /// NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22
///
public partial class NodeConfigSourceV1
{
diff --git a/src/KubeClient/Models/generated/NodeFeaturesV1.cs b/src/KubeClient/Models/generated/NodeFeaturesV1.cs
new file mode 100644
index 00000000..82890768
--- /dev/null
+++ b/src/KubeClient/Models/generated/NodeFeaturesV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers.
+ ///
+ public partial class NodeFeaturesV1
+ {
+ ///
+ /// SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.
+ ///
+ [YamlMember(Alias = "supplementalGroupsPolicy")]
+ [JsonProperty("supplementalGroupsPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? SupplementalGroupsPolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/NodeRuntimeHandlerFeaturesV1.cs b/src/KubeClient/Models/generated/NodeRuntimeHandlerFeaturesV1.cs
new file mode 100644
index 00000000..9ef62ed2
--- /dev/null
+++ b/src/KubeClient/Models/generated/NodeRuntimeHandlerFeaturesV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.
+ ///
+ public partial class NodeRuntimeHandlerFeaturesV1
+ {
+ ///
+ /// RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.
+ ///
+ [YamlMember(Alias = "recursiveReadOnlyMounts")]
+ [JsonProperty("recursiveReadOnlyMounts", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? RecursiveReadOnlyMounts { get; set; }
+
+ ///
+ /// UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
+ ///
+ [YamlMember(Alias = "userNamespaces")]
+ [JsonProperty("userNamespaces", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? UserNamespaces { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/NodeRuntimeHandlerV1.cs b/src/KubeClient/Models/generated/NodeRuntimeHandlerV1.cs
new file mode 100644
index 00000000..2e105cc1
--- /dev/null
+++ b/src/KubeClient/Models/generated/NodeRuntimeHandlerV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// NodeRuntimeHandler is a set of runtime handler information.
+ ///
+ public partial class NodeRuntimeHandlerV1
+ {
+ ///
+ /// Runtime handler name. Empty for the default runtime handler.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
+ public string Name { get; set; }
+
+ ///
+ /// Supported features.
+ ///
+ [YamlMember(Alias = "features")]
+ [JsonProperty("features", NullValueHandling = NullValueHandling.Ignore)]
+ public NodeRuntimeHandlerFeaturesV1 Features { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/NodeSpecV1.cs b/src/KubeClient/Models/generated/NodeSpecV1.cs
index 6b514d57..d57fbdf0 100644
--- a/src/KubeClient/Models/generated/NodeSpecV1.cs
+++ b/src/KubeClient/Models/generated/NodeSpecV1.cs
@@ -32,7 +32,7 @@ public partial class NodeSpecV1
public string PodCIDR { get; set; }
///
- /// If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field
+ /// Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.
///
[YamlMember(Alias = "configSource")]
[JsonProperty("configSource", NullValueHandling = NullValueHandling.Ignore)]
@@ -45,6 +45,19 @@ public partial class NodeSpecV1
[JsonProperty("unschedulable", NullValueHandling = NullValueHandling.Ignore)]
public bool? Unschedulable { get; set; }
+ ///
+ /// podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.
+ ///
+ [MergeStrategy]
+ [YamlMember(Alias = "podCIDRs")]
+ [JsonProperty("podCIDRs", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List PodCIDRs { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializePodCIDRs() => PodCIDRs.Count > 0;
+
///
/// If specified, the node's taints.
///
diff --git a/src/KubeClient/Models/generated/NodeStatusV1.cs b/src/KubeClient/Models/generated/NodeStatusV1.cs
index 3f04dcda..01f940d3 100644
--- a/src/KubeClient/Models/generated/NodeStatusV1.cs
+++ b/src/KubeClient/Models/generated/NodeStatusV1.cs
@@ -68,7 +68,7 @@ public partial class NodeStatusV1
public NodeSystemInfoV1 NodeInfo { get; set; }
///
- /// List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
+ /// List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).
///
[MergeStrategy(Key = "type")]
[YamlMember(Alias = "addresses")]
@@ -100,6 +100,13 @@ public partial class NodeStatusV1
[JsonProperty("daemonEndpoints", NullValueHandling = NullValueHandling.Ignore)]
public NodeDaemonEndpointsV1 DaemonEndpoints { get; set; }
+ ///
+ /// Features describes the set of features implemented by the CRI implementation.
+ ///
+ [YamlMember(Alias = "features")]
+ [JsonProperty("features", NullValueHandling = NullValueHandling.Ignore)]
+ public NodeFeaturesV1 Features { get; set; }
+
///
/// List of container images on this node
///
@@ -113,7 +120,19 @@ public partial class NodeStatusV1
public bool ShouldSerializeImages() => Images.Count > 0;
///
- /// Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
+ /// The available runtime handlers.
+ ///
+ [YamlMember(Alias = "runtimeHandlers")]
+ [JsonProperty("runtimeHandlers", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List RuntimeHandlers { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRuntimeHandlers() => RuntimeHandlers.Count > 0;
+
+ ///
+ /// Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity
///
[YamlMember(Alias = "capacity")]
[JsonProperty("capacity", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
diff --git a/src/KubeClient/Models/generated/NodeSystemInfoV1.cs b/src/KubeClient/Models/generated/NodeSystemInfoV1.cs
index a64360fd..f3c2a3ad 100644
--- a/src/KubeClient/Models/generated/NodeSystemInfoV1.cs
+++ b/src/KubeClient/Models/generated/NodeSystemInfoV1.cs
@@ -25,7 +25,7 @@ public partial class NodeSystemInfoV1
public string MachineID { get; set; }
///
- /// SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html
+ /// SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
///
[YamlMember(Alias = "systemUUID")]
[JsonProperty("systemUUID", NullValueHandling = NullValueHandling.Include)]
@@ -53,7 +53,7 @@ public partial class NodeSystemInfoV1
public string OperatingSystem { get; set; }
///
- /// ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
+ /// ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).
///
[YamlMember(Alias = "containerRuntimeVersion")]
[JsonProperty("containerRuntimeVersion", NullValueHandling = NullValueHandling.Include)]
@@ -67,7 +67,7 @@ public partial class NodeSystemInfoV1
public string KernelVersion { get; set; }
///
- /// KubeProxy Version reported by the node.
+ /// Deprecated: KubeProxy Version reported by the node.
///
[YamlMember(Alias = "kubeProxyVersion")]
[JsonProperty("kubeProxyVersion", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/NodeV1.cs b/src/KubeClient/Models/generated/NodeV1.cs
index e3ef0f62..79d19486 100644
--- a/src/KubeClient/Models/generated/NodeV1.cs
+++ b/src/KubeClient/Models/generated/NodeV1.cs
@@ -20,20 +20,18 @@ namespace KubeClient.Models
[KubeApi(KubeAction.Get, "api/v1/nodes/{name}/status")]
[KubeApi(KubeAction.Watch, "api/v1/watch/nodes/{name}")]
[KubeApi(KubeAction.Patch, "api/v1/nodes/{name}/status")]
- [KubeApi(KubeAction.Connect, "api/v1/nodes/{name}/proxy")]
[KubeApi(KubeAction.Update, "api/v1/nodes/{name}/status")]
- [KubeApi(KubeAction.Connect, "api/v1/nodes/{name}/proxy/{path}")]
public partial class NodeV1 : KubeResourceV1
{
///
- /// Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
public NodeSpecV1 Spec { get; set; }
///
- /// Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/NonResourcePolicyRuleV1.cs b/src/KubeClient/Models/generated/NonResourcePolicyRuleV1.cs
new file mode 100644
index 00000000..40bf5fdc
--- /dev/null
+++ b/src/KubeClient/Models/generated/NonResourcePolicyRuleV1.cs
@@ -0,0 +1,33 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.
+ ///
+ public partial class NonResourcePolicyRuleV1
+ {
+ ///
+ /// `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:
+ /// - "/healthz" is legal
+ /// - "/hea*" is illegal
+ /// - "/hea" is legal but matches nothing
+ /// - "/hea/*" also matches nothing
+ /// - "/healthz/*" matches all per-component health checks.
+ /// "*" matches all non-resource urls. if it is present, it must be the only entry. Required.
+ ///
+ [YamlMember(Alias = "nonResourceURLs")]
+ [JsonProperty("nonResourceURLs", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List NonResourceURLs { get; } = new List();
+
+ ///
+ /// `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
+ ///
+ [YamlMember(Alias = "verbs")]
+ [JsonProperty("verbs", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Verbs { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/NonResourcePolicyRuleV1Beta3.cs b/src/KubeClient/Models/generated/NonResourcePolicyRuleV1Beta3.cs
new file mode 100644
index 00000000..704f6590
--- /dev/null
+++ b/src/KubeClient/Models/generated/NonResourcePolicyRuleV1Beta3.cs
@@ -0,0 +1,33 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.
+ ///
+ public partial class NonResourcePolicyRuleV1Beta3
+ {
+ ///
+ /// `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:
+ /// - "/healthz" is legal
+ /// - "/hea*" is illegal
+ /// - "/hea" is legal but matches nothing
+ /// - "/hea/*" also matches nothing
+ /// - "/healthz/*" matches all per-component health checks.
+ /// "*" matches all non-resource urls. if it is present, it must be the only entry. Required.
+ ///
+ [YamlMember(Alias = "nonResourceURLs")]
+ [JsonProperty("nonResourceURLs", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List NonResourceURLs { get; } = new List();
+
+ ///
+ /// `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
+ ///
+ [YamlMember(Alias = "verbs")]
+ [JsonProperty("verbs", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Verbs { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ObjectMetaV1.cs b/src/KubeClient/Models/generated/ObjectMetaV1.cs
index 7f2a4647..5471b9ca 100644
--- a/src/KubeClient/Models/generated/ObjectMetaV1.cs
+++ b/src/KubeClient/Models/generated/ObjectMetaV1.cs
@@ -13,48 +13,41 @@ public partial class ObjectMetaV1
///
/// UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
///
- /// Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
+ /// Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
///
[YamlMember(Alias = "uid")]
[JsonProperty("uid", NullValueHandling = NullValueHandling.Ignore)]
public string Uid { get; set; }
- ///
- /// The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.
- ///
- [YamlMember(Alias = "clusterName")]
- [JsonProperty("clusterName", NullValueHandling = NullValueHandling.Ignore)]
- public string ClusterName { get; set; }
-
///
/// GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.
///
- /// If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).
+ /// 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/api-conventions.md#idempotency
+ /// Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
///
[YamlMember(Alias = "generateName")]
[JsonProperty("generateName", NullValueHandling = NullValueHandling.Ignore)]
public string GenerateName { get; set; }
///
- /// 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: http://kubernetes.io/docs/user-guide/identifiers#names
+ /// 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
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
public string Name { get; set; }
///
- /// Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.
+ /// Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.
///
- /// Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces
+ /// Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces
///
[YamlMember(Alias = "namespace")]
[JsonProperty("namespace", NullValueHandling = NullValueHandling.Ignore)]
public string Namespace { get; set; }
///
- /// SelfLink is a URL representing this object. Populated by the system. Read-only.
+ /// Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.
///
[YamlMember(Alias = "selfLink")]
[JsonProperty("selfLink", NullValueHandling = NullValueHandling.Ignore)]
@@ -70,7 +63,7 @@ public partial class ObjectMetaV1
///
/// An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.
///
- /// Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
+ /// 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
///
[YamlMember(Alias = "resourceVersion")]
[JsonProperty("resourceVersion", NullValueHandling = NullValueHandling.Ignore)]
@@ -79,7 +72,7 @@ public partial class ObjectMetaV1
///
/// CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
///
- /// Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
+ /// Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
///
[YamlMember(Alias = "creationTimestamp")]
[JsonProperty("creationTimestamp", NullValueHandling = NullValueHandling.Ignore)]
@@ -88,14 +81,14 @@ public partial class ObjectMetaV1
///
/// DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.
///
- /// Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
+ /// 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
///
[YamlMember(Alias = "deletionTimestamp")]
[JsonProperty("deletionTimestamp", NullValueHandling = NullValueHandling.Ignore)]
public DateTime? DeletionTimestamp { get; set; }
///
- /// Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations
+ /// Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
///
[YamlMember(Alias = "annotations")]
[JsonProperty("annotations", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -114,7 +107,7 @@ public partial class ObjectMetaV1
public long? DeletionGracePeriodSeconds { get; set; }
///
- /// 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.
+ /// 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.
///
[MergeStrategy]
[YamlMember(Alias = "finalizers")]
@@ -127,16 +120,7 @@ public partial class ObjectMetaV1
public bool ShouldSerializeFinalizers() => Finalizers.Count > 0;
///
- /// An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects.
- ///
- /// When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user.
- ///
- [YamlMember(Alias = "initializers")]
- [JsonProperty("initializers", NullValueHandling = NullValueHandling.Ignore)]
- public InitializersV1 Initializers { get; set; }
-
- ///
- /// Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels
+ /// Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
///
[YamlMember(Alias = "labels")]
[JsonProperty("labels", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -147,6 +131,18 @@ public partial class ObjectMetaV1
///
public bool ShouldSerializeLabels() => Labels.Count > 0;
+ ///
+ /// ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object.
+ ///
+ [YamlMember(Alias = "managedFields")]
+ [JsonProperty("managedFields", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ManagedFields { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeManagedFields() => ManagedFields.Count > 0;
+
///
/// 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.
///
diff --git a/src/KubeClient/Models/generated/ObjectMetricSourceV2.cs b/src/KubeClient/Models/generated/ObjectMetricSourceV2.cs
new file mode 100644
index 00000000..1e336015
--- /dev/null
+++ b/src/KubeClient/Models/generated/ObjectMetricSourceV2.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
+ ///
+ public partial class ObjectMetricSourceV2
+ {
+ ///
+ /// metric identifies the target metric by name and selector
+ ///
+ [YamlMember(Alias = "metric")]
+ [JsonProperty("metric", NullValueHandling = NullValueHandling.Include)]
+ public MetricIdentifierV2 Metric { get; set; }
+
+ ///
+ /// describedObject specifies the descriptions of a object,such as kind,name apiVersion
+ ///
+ [YamlMember(Alias = "describedObject")]
+ [JsonProperty("describedObject", NullValueHandling = NullValueHandling.Include)]
+ public CrossVersionObjectReferenceV2 DescribedObject { get; set; }
+
+ ///
+ /// target specifies the target value for the given metric
+ ///
+ [YamlMember(Alias = "target")]
+ [JsonProperty("target", NullValueHandling = NullValueHandling.Include)]
+ public MetricTargetV2 Target { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ObjectMetricStatusV2.cs b/src/KubeClient/Models/generated/ObjectMetricStatusV2.cs
new file mode 100644
index 00000000..92284d23
--- /dev/null
+++ b/src/KubeClient/Models/generated/ObjectMetricStatusV2.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
+ ///
+ public partial class ObjectMetricStatusV2
+ {
+ ///
+ /// metric identifies the target metric by name and selector
+ ///
+ [YamlMember(Alias = "metric")]
+ [JsonProperty("metric", NullValueHandling = NullValueHandling.Include)]
+ public MetricIdentifierV2 Metric { get; set; }
+
+ ///
+ /// current contains the current value for the given metric
+ ///
+ [YamlMember(Alias = "current")]
+ [JsonProperty("current", NullValueHandling = NullValueHandling.Include)]
+ public MetricValueStatusV2 Current { get; set; }
+
+ ///
+ /// DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+ ///
+ [YamlMember(Alias = "describedObject")]
+ [JsonProperty("describedObject", NullValueHandling = NullValueHandling.Include)]
+ public CrossVersionObjectReferenceV2 DescribedObject { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ObjectReferenceV1.cs b/src/KubeClient/Models/generated/ObjectReferenceV1.cs
index 010314d8..e5f9a510 100644
--- a/src/KubeClient/Models/generated/ObjectReferenceV1.cs
+++ b/src/KubeClient/Models/generated/ObjectReferenceV1.cs
@@ -39,7 +39,7 @@ public partial class ObjectReferenceV1 : KubeObjectV1
public string FieldPath { get; set; }
///
- /// Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
+ /// Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
///
[YamlMember(Alias = "resourceVersion")]
[JsonProperty("resourceVersion", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/OpaqueDeviceConfigurationV1Alpha3.cs b/src/KubeClient/Models/generated/OpaqueDeviceConfigurationV1Alpha3.cs
new file mode 100644
index 00000000..84519c32
--- /dev/null
+++ b/src/KubeClient/Models/generated/OpaqueDeviceConfigurationV1Alpha3.cs
@@ -0,0 +1,31 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
+ ///
+ public partial class OpaqueDeviceConfigurationV1Alpha3
+ {
+ ///
+ /// Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
+ ///
+ /// An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
+ ///
+ /// Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
+ ///
+ [YamlMember(Alias = "driver")]
+ [JsonProperty("driver", NullValueHandling = NullValueHandling.Include)]
+ public string Driver { get; set; }
+
+ ///
+ /// Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
+ ///
+ [YamlMember(Alias = "parameters")]
+ [JsonProperty("parameters", NullValueHandling = NullValueHandling.Include)]
+ public RawExtensionRuntime Parameters { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/OverheadV1.cs b/src/KubeClient/Models/generated/OverheadV1.cs
new file mode 100644
index 00000000..0a9f1cc5
--- /dev/null
+++ b/src/KubeClient/Models/generated/OverheadV1.cs
@@ -0,0 +1,25 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Overhead structure represents the resource overhead associated with running a pod.
+ ///
+ public partial class OverheadV1
+ {
+ ///
+ /// podFixed represents the fixed resource overhead associated with running a pod.
+ ///
+ [YamlMember(Alias = "podFixed")]
+ [JsonProperty("podFixed", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary PodFixed { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializePodFixed() => PodFixed.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/OwnerReferenceV1.cs b/src/KubeClient/Models/generated/OwnerReferenceV1.cs
index 72a308af..4c8d4f1f 100644
--- a/src/KubeClient/Models/generated/OwnerReferenceV1.cs
+++ b/src/KubeClient/Models/generated/OwnerReferenceV1.cs
@@ -6,26 +6,26 @@
namespace KubeClient.Models
{
///
- /// OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.
+ /// OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.
///
public partial class OwnerReferenceV1 : KubeObjectV1
{
///
- /// UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
+ /// UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
///
[YamlMember(Alias = "uid")]
[JsonProperty("uid", NullValueHandling = NullValueHandling.Include)]
public string Uid { get; set; }
///
- /// Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
+ /// Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
public string Name { get; set; }
///
- /// If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
+ /// If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
///
[YamlMember(Alias = "blockOwnerDeletion")]
[JsonProperty("blockOwnerDeletion", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ParamKindV1.cs b/src/KubeClient/Models/generated/ParamKindV1.cs
new file mode 100644
index 00000000..0b6f5d75
--- /dev/null
+++ b/src/KubeClient/Models/generated/ParamKindV1.cs
@@ -0,0 +1,14 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ParamKind is a tuple of Group Kind and Version.
+ ///
+ public partial class ParamKindV1 : KubeObjectV1
+ {
+ }
+}
diff --git a/src/KubeClient/Models/generated/ParamKindV1Alpha1.cs b/src/KubeClient/Models/generated/ParamKindV1Alpha1.cs
new file mode 100644
index 00000000..ea2c97a3
--- /dev/null
+++ b/src/KubeClient/Models/generated/ParamKindV1Alpha1.cs
@@ -0,0 +1,14 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ParamKind is a tuple of Group Kind and Version.
+ ///
+ public partial class ParamKindV1Alpha1 : KubeObjectV1
+ {
+ }
+}
diff --git a/src/KubeClient/Models/generated/ParamKindV1Beta1.cs b/src/KubeClient/Models/generated/ParamKindV1Beta1.cs
new file mode 100644
index 00000000..b7355fdf
--- /dev/null
+++ b/src/KubeClient/Models/generated/ParamKindV1Beta1.cs
@@ -0,0 +1,14 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ParamKind is a tuple of Group Kind and Version.
+ ///
+ public partial class ParamKindV1Beta1 : KubeObjectV1
+ {
+ }
+}
diff --git a/src/KubeClient/Models/generated/ParamRefV1.cs b/src/KubeClient/Models/generated/ParamRefV1.cs
new file mode 100644
index 00000000..6c63b481
--- /dev/null
+++ b/src/KubeClient/Models/generated/ParamRefV1.cs
@@ -0,0 +1,59 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
+ ///
+ public partial class ParamRefV1
+ {
+ ///
+ /// name is the name of the resource being referenced.
+ ///
+ /// One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
+ ///
+ /// A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
+ public string Name { get; set; }
+
+ ///
+ /// namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.
+ ///
+ /// A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.
+ ///
+ /// - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.
+ ///
+ /// - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.
+ ///
+ [YamlMember(Alias = "namespace")]
+ [JsonProperty("namespace", NullValueHandling = NullValueHandling.Ignore)]
+ public string Namespace { get; set; }
+
+ ///
+ /// `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.
+ ///
+ /// Allowed values are `Allow` or `Deny`
+ ///
+ /// Required
+ ///
+ [YamlMember(Alias = "parameterNotFoundAction")]
+ [JsonProperty("parameterNotFoundAction", NullValueHandling = NullValueHandling.Ignore)]
+ public string ParameterNotFoundAction { get; set; }
+
+ ///
+ /// selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.
+ ///
+ /// If multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.
+ ///
+ /// One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
+ ///
+ [YamlMember(Alias = "selector")]
+ [JsonProperty("selector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 Selector { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ParamRefV1Alpha1.cs b/src/KubeClient/Models/generated/ParamRefV1Alpha1.cs
new file mode 100644
index 00000000..e9ae3ce2
--- /dev/null
+++ b/src/KubeClient/Models/generated/ParamRefV1Alpha1.cs
@@ -0,0 +1,55 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
+ ///
+ public partial class ParamRefV1Alpha1
+ {
+ ///
+ /// `name` is the name of the resource being referenced.
+ ///
+ /// `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
+ public string Name { get; set; }
+
+ ///
+ /// namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.
+ ///
+ /// A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.
+ ///
+ /// - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.
+ ///
+ /// - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.
+ ///
+ [YamlMember(Alias = "namespace")]
+ [JsonProperty("namespace", NullValueHandling = NullValueHandling.Ignore)]
+ public string Namespace { get; set; }
+
+ ///
+ /// `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.
+ ///
+ /// Allowed values are `Allow` or `Deny` Default to `Deny`
+ ///
+ [YamlMember(Alias = "parameterNotFoundAction")]
+ [JsonProperty("parameterNotFoundAction", NullValueHandling = NullValueHandling.Ignore)]
+ public string ParameterNotFoundAction { get; set; }
+
+ ///
+ /// selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.
+ ///
+ /// If multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.
+ ///
+ /// One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
+ ///
+ [YamlMember(Alias = "selector")]
+ [JsonProperty("selector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 Selector { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ParamRefV1Beta1.cs b/src/KubeClient/Models/generated/ParamRefV1Beta1.cs
new file mode 100644
index 00000000..7beb4051
--- /dev/null
+++ b/src/KubeClient/Models/generated/ParamRefV1Beta1.cs
@@ -0,0 +1,59 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
+ ///
+ public partial class ParamRefV1Beta1
+ {
+ ///
+ /// name is the name of the resource being referenced.
+ ///
+ /// One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
+ ///
+ /// A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
+ public string Name { get; set; }
+
+ ///
+ /// namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.
+ ///
+ /// A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.
+ ///
+ /// - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.
+ ///
+ /// - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.
+ ///
+ [YamlMember(Alias = "namespace")]
+ [JsonProperty("namespace", NullValueHandling = NullValueHandling.Ignore)]
+ public string Namespace { get; set; }
+
+ ///
+ /// `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.
+ ///
+ /// Allowed values are `Allow` or `Deny`
+ ///
+ /// Required
+ ///
+ [YamlMember(Alias = "parameterNotFoundAction")]
+ [JsonProperty("parameterNotFoundAction", NullValueHandling = NullValueHandling.Ignore)]
+ public string ParameterNotFoundAction { get; set; }
+
+ ///
+ /// selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.
+ ///
+ /// If multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.
+ ///
+ /// One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
+ ///
+ [YamlMember(Alias = "selector")]
+ [JsonProperty("selector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 Selector { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ParentReferenceV1Beta1.cs b/src/KubeClient/Models/generated/ParentReferenceV1Beta1.cs
new file mode 100644
index 00000000..6a5ba836
--- /dev/null
+++ b/src/KubeClient/Models/generated/ParentReferenceV1Beta1.cs
@@ -0,0 +1,41 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ParentReference describes a reference to a parent object.
+ ///
+ public partial class ParentReferenceV1Beta1
+ {
+ ///
+ /// Name is the name of the object being referenced.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// Namespace is the namespace of the object being referenced.
+ ///
+ [YamlMember(Alias = "namespace")]
+ [JsonProperty("namespace", NullValueHandling = NullValueHandling.Ignore)]
+ public string Namespace { get; set; }
+
+ ///
+ /// Resource is the resource of the object being referenced.
+ ///
+ [YamlMember(Alias = "resource")]
+ [JsonProperty("resource", NullValueHandling = NullValueHandling.Include)]
+ public string Resource { get; set; }
+
+ ///
+ /// Group is the group of the object being referenced.
+ ///
+ [YamlMember(Alias = "group")]
+ [JsonProperty("group", NullValueHandling = NullValueHandling.Ignore)]
+ public string Group { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PersistentVolumeClaimConditionV1.cs b/src/KubeClient/Models/generated/PersistentVolumeClaimConditionV1.cs
index 5f474a08..b1cc9bb5 100644
--- a/src/KubeClient/Models/generated/PersistentVolumeClaimConditionV1.cs
+++ b/src/KubeClient/Models/generated/PersistentVolumeClaimConditionV1.cs
@@ -6,26 +6,26 @@
namespace KubeClient.Models
{
///
- /// PersistentVolumeClaimCondition contails details about state of pvc
+ /// PersistentVolumeClaimCondition contains details about state of pvc
///
public partial class PersistentVolumeClaimConditionV1
{
///
- /// Last time we probed the condition.
+ /// lastProbeTime is the time we probed the condition.
///
[YamlMember(Alias = "lastProbeTime")]
[JsonProperty("lastProbeTime", NullValueHandling = NullValueHandling.Ignore)]
public DateTime? LastProbeTime { get; set; }
///
- /// Last time the condition transitioned from one status to another.
+ /// lastTransitionTime is the time the condition transitioned from one status to another.
///
[YamlMember(Alias = "lastTransitionTime")]
[JsonProperty("lastTransitionTime", NullValueHandling = NullValueHandling.Ignore)]
public DateTime? LastTransitionTime { get; set; }
///
- /// Human-readable message indicating details about last transition.
+ /// message is the human-readable message indicating details about last transition.
///
[YamlMember(Alias = "message")]
[JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
@@ -39,7 +39,7 @@ public partial class PersistentVolumeClaimConditionV1
public string Type { get; set; }
///
- /// Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized.
+ /// reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "Resizing" that means the underlying persistent volume is being resized.
///
[YamlMember(Alias = "reason")]
[JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/PersistentVolumeClaimListV1.cs b/src/KubeClient/Models/generated/PersistentVolumeClaimListV1.cs
index 14f6069f..c8da597f 100644
--- a/src/KubeClient/Models/generated/PersistentVolumeClaimListV1.cs
+++ b/src/KubeClient/Models/generated/PersistentVolumeClaimListV1.cs
@@ -13,7 +13,7 @@ namespace KubeClient.Models
public partial class PersistentVolumeClaimListV1 : KubeResourceListV1
{
///
- /// A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
+ /// items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
///
[JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public override List Items { get; } = new List();
diff --git a/src/KubeClient/Models/generated/PersistentVolumeClaimSpecV1.cs b/src/KubeClient/Models/generated/PersistentVolumeClaimSpecV1.cs
index e6dbc066..f19bda9c 100644
--- a/src/KubeClient/Models/generated/PersistentVolumeClaimSpecV1.cs
+++ b/src/KubeClient/Models/generated/PersistentVolumeClaimSpecV1.cs
@@ -11,35 +11,63 @@ namespace KubeClient.Models
public partial class PersistentVolumeClaimSpecV1
{
///
- /// Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
+ /// dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
+ ///
+ [YamlMember(Alias = "dataSource")]
+ [JsonProperty("dataSource", NullValueHandling = NullValueHandling.Ignore)]
+ public TypedLocalObjectReferenceV1 DataSource { get; set; }
+
+ ///
+ /// storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
///
[YamlMember(Alias = "storageClassName")]
[JsonProperty("storageClassName", NullValueHandling = NullValueHandling.Ignore)]
public string StorageClassName { get; set; }
///
- /// volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is an alpha feature and may change in the future.
+ /// volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).
+ ///
+ [YamlMember(Alias = "volumeAttributesClassName")]
+ [JsonProperty("volumeAttributesClassName", NullValueHandling = NullValueHandling.Ignore)]
+ public string VolumeAttributesClassName { get; set; }
+
+ ///
+ /// volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
///
[YamlMember(Alias = "volumeMode")]
[JsonProperty("volumeMode", NullValueHandling = NullValueHandling.Ignore)]
public string VolumeMode { get; set; }
///
- /// VolumeName is the binding reference to the PersistentVolume backing this claim.
+ /// volumeName is the binding reference to the PersistentVolume backing this claim.
///
[YamlMember(Alias = "volumeName")]
[JsonProperty("volumeName", NullValueHandling = NullValueHandling.Ignore)]
public string VolumeName { get; set; }
///
- /// A label query over volumes to consider for binding.
+ /// dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef
+ /// allows any non-core object, as well as PersistentVolumeClaim objects.
+ /// * While dataSource ignores disallowed values (dropping them), dataSourceRef
+ /// preserves all values, and generates an error if a disallowed value is
+ /// specified.
+ /// * While dataSource only allows local objects, dataSourceRef allows objects
+ /// in any namespaces.
+ /// (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
+ ///
+ [YamlMember(Alias = "dataSourceRef")]
+ [JsonProperty("dataSourceRef", NullValueHandling = NullValueHandling.Ignore)]
+ public TypedObjectReferenceV1 DataSourceRef { get; set; }
+
+ ///
+ /// selector is a label query over volumes to consider for binding.
///
[YamlMember(Alias = "selector")]
[JsonProperty("selector", NullValueHandling = NullValueHandling.Ignore)]
public LabelSelectorV1 Selector { get; set; }
///
- /// AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
+ /// accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
///
[YamlMember(Alias = "accessModes")]
[JsonProperty("accessModes", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -51,10 +79,10 @@ public partial class PersistentVolumeClaimSpecV1
public bool ShouldSerializeAccessModes() => AccessModes.Count > 0;
///
- /// Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
+ /// resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
///
[YamlMember(Alias = "resources")]
[JsonProperty("resources", NullValueHandling = NullValueHandling.Ignore)]
- public ResourceRequirementsV1 Resources { get; set; }
+ public VolumeResourceRequirementsV1 Resources { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/PersistentVolumeClaimStatusV1.cs b/src/KubeClient/Models/generated/PersistentVolumeClaimStatusV1.cs
index 1223f3e7..f1944ffe 100644
--- a/src/KubeClient/Models/generated/PersistentVolumeClaimStatusV1.cs
+++ b/src/KubeClient/Models/generated/PersistentVolumeClaimStatusV1.cs
@@ -11,14 +11,21 @@ namespace KubeClient.Models
public partial class PersistentVolumeClaimStatusV1
{
///
- /// Phase represents the current phase of PersistentVolumeClaim.
+ /// currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
+ ///
+ [YamlMember(Alias = "currentVolumeAttributesClassName")]
+ [JsonProperty("currentVolumeAttributesClassName", NullValueHandling = NullValueHandling.Ignore)]
+ public string CurrentVolumeAttributesClassName { get; set; }
+
+ ///
+ /// phase represents the current phase of PersistentVolumeClaim.
///
[YamlMember(Alias = "phase")]
[JsonProperty("phase", NullValueHandling = NullValueHandling.Ignore)]
public string Phase { get; set; }
///
- /// AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
+ /// accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
///
[YamlMember(Alias = "accessModes")]
[JsonProperty("accessModes", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -30,7 +37,70 @@ public partial class PersistentVolumeClaimStatusV1
public bool ShouldSerializeAccessModes() => AccessModes.Count > 0;
///
- /// Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.
+ /// allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:
+ /// * Un-prefixed keys:
+ /// - storage - the capacity of the volume.
+ /// * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource"
+ /// Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.
+ ///
+ /// ClaimResourceStatus can be in any of following states:
+ /// - ControllerResizeInProgress:
+ /// State set when resize controller starts resizing the volume in control-plane.
+ /// - ControllerResizeFailed:
+ /// State set when resize has failed in resize controller with a terminal error.
+ /// - NodeResizePending:
+ /// State set when resize controller has finished resizing the volume but further resizing of
+ /// volume is needed on the node.
+ /// - NodeResizeInProgress:
+ /// State set when kubelet starts resizing the volume.
+ /// - NodeResizeFailed:
+ /// State set when resizing has failed in kubelet with a terminal error. Transient errors don't set
+ /// NodeResizeFailed.
+ /// For example: if expanding a PVC for more capacity - this field can be one of the following states:
+ /// - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeInProgress"
+ /// - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeFailed"
+ /// - pvc.status.allocatedResourceStatus['storage'] = "NodeResizePending"
+ /// - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeInProgress"
+ /// - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeFailed"
+ /// When this field is not set, it means that no resize operation is in progress for the given PVC.
+ ///
+ /// A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.
+ ///
+ /// This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.
+ ///
+ [YamlMember(Alias = "allocatedResourceStatuses")]
+ [JsonProperty("allocatedResourceStatuses", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary AllocatedResourceStatuses { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAllocatedResourceStatuses() => AllocatedResourceStatuses.Count > 0;
+
+ ///
+ /// allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either:
+ /// * Un-prefixed keys:
+ /// - storage - the capacity of the volume.
+ /// * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource"
+ /// Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.
+ ///
+ /// Capacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.
+ ///
+ /// A controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.
+ ///
+ /// This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.
+ ///
+ [YamlMember(Alias = "allocatedResources")]
+ [JsonProperty("allocatedResources", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary AllocatedResources { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAllocatedResources() => AllocatedResources.Count > 0;
+
+ ///
+ /// conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.
///
[MergeStrategy(Key = "type")]
[YamlMember(Alias = "conditions")]
@@ -43,7 +113,14 @@ public partial class PersistentVolumeClaimStatusV1
public bool ShouldSerializeConditions() => Conditions.Count > 0;
///
- /// Represents the actual resources of the underlying volume.
+ /// ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
+ ///
+ [YamlMember(Alias = "modifyVolumeStatus")]
+ [JsonProperty("modifyVolumeStatus", NullValueHandling = NullValueHandling.Ignore)]
+ public ModifyVolumeStatusV1 ModifyVolumeStatus { get; set; }
+
+ ///
+ /// capacity represents the actual resources of the underlying volume.
///
[YamlMember(Alias = "capacity")]
[JsonProperty("capacity", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
diff --git a/src/KubeClient/Models/generated/PersistentVolumeClaimTemplateV1.cs b/src/KubeClient/Models/generated/PersistentVolumeClaimTemplateV1.cs
new file mode 100644
index 00000000..cc4d2d3e
--- /dev/null
+++ b/src/KubeClient/Models/generated/PersistentVolumeClaimTemplateV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.
+ ///
+ public partial class PersistentVolumeClaimTemplateV1
+ {
+ ///
+ /// May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
+ ///
+ [YamlMember(Alias = "metadata")]
+ [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
+ public ObjectMetaV1 Metadata { get; set; }
+
+ ///
+ /// The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public PersistentVolumeClaimSpecV1 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PersistentVolumeClaimV1.cs b/src/KubeClient/Models/generated/PersistentVolumeClaimV1.cs
index cfd7075c..1ec330c4 100644
--- a/src/KubeClient/Models/generated/PersistentVolumeClaimV1.cs
+++ b/src/KubeClient/Models/generated/PersistentVolumeClaimV1.cs
@@ -26,14 +26,14 @@ namespace KubeClient.Models
public partial class PersistentVolumeClaimV1 : KubeResourceV1
{
///
- /// Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
+ /// spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
public PersistentVolumeClaimSpecV1 Spec { get; set; }
///
- /// Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
+ /// status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/PersistentVolumeClaimVolumeSourceV1.cs b/src/KubeClient/Models/generated/PersistentVolumeClaimVolumeSourceV1.cs
index 504df56f..d06a2df4 100644
--- a/src/KubeClient/Models/generated/PersistentVolumeClaimVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/PersistentVolumeClaimVolumeSourceV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class PersistentVolumeClaimVolumeSourceV1
{
///
- /// ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
+ /// claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
///
[YamlMember(Alias = "claimName")]
[JsonProperty("claimName", NullValueHandling = NullValueHandling.Include)]
public string ClaimName { get; set; }
///
- /// Will force the ReadOnly setting in VolumeMounts. Default false.
+ /// readOnly Will force the ReadOnly setting in VolumeMounts. Default false.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/PersistentVolumeListV1.cs b/src/KubeClient/Models/generated/PersistentVolumeListV1.cs
index 397c0bef..b9840f7b 100644
--- a/src/KubeClient/Models/generated/PersistentVolumeListV1.cs
+++ b/src/KubeClient/Models/generated/PersistentVolumeListV1.cs
@@ -13,7 +13,7 @@ namespace KubeClient.Models
public partial class PersistentVolumeListV1 : KubeResourceListV1
{
///
- /// List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
+ /// items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
///
[JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public override List Items { get; } = new List();
diff --git a/src/KubeClient/Models/generated/PersistentVolumeSpecV1.cs b/src/KubeClient/Models/generated/PersistentVolumeSpecV1.cs
index 7f5d7add..54f0882e 100644
--- a/src/KubeClient/Models/generated/PersistentVolumeSpecV1.cs
+++ b/src/KubeClient/Models/generated/PersistentVolumeSpecV1.cs
@@ -11,154 +11,161 @@ namespace KubeClient.Models
public partial class PersistentVolumeSpecV1
{
///
- /// ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
+ /// scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
///
[YamlMember(Alias = "scaleIO")]
[JsonProperty("scaleIO", NullValueHandling = NullValueHandling.Ignore)]
public ScaleIOPersistentVolumeSourceV1 ScaleIO { get; set; }
///
- /// FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
+ /// fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
///
[YamlMember(Alias = "fc")]
[JsonProperty("fc", NullValueHandling = NullValueHandling.Ignore)]
public FCVolumeSourceV1 Fc { get; set; }
///
- /// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md
+ /// rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md
///
[YamlMember(Alias = "rbd")]
[JsonProperty("rbd", NullValueHandling = NullValueHandling.Ignore)]
public RBDPersistentVolumeSourceV1 Rbd { get; set; }
///
- /// AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
+ /// awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
///
[YamlMember(Alias = "awsElasticBlockStore")]
[JsonProperty("awsElasticBlockStore", NullValueHandling = NullValueHandling.Ignore)]
public AWSElasticBlockStoreVolumeSourceV1 AwsElasticBlockStore { get; set; }
///
- /// AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
+ /// azureFile represents an Azure File Service mount on the host and bind mount to the pod.
///
[YamlMember(Alias = "azureFile")]
[JsonProperty("azureFile", NullValueHandling = NullValueHandling.Ignore)]
public AzureFilePersistentVolumeSourceV1 AzureFile { get; set; }
///
- /// FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
+ /// flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
///
[YamlMember(Alias = "flexVolume")]
[JsonProperty("flexVolume", NullValueHandling = NullValueHandling.Ignore)]
public FlexPersistentVolumeSourceV1 FlexVolume { get; set; }
///
- /// PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
+ /// portworxVolume represents a portworx volume attached and mounted on kubelets host machine
///
[YamlMember(Alias = "portworxVolume")]
[JsonProperty("portworxVolume", NullValueHandling = NullValueHandling.Ignore)]
public PortworxVolumeSourceV1 PortworxVolume { get; set; }
///
- /// Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
+ /// quobyte represents a Quobyte mount on the host that shares a pod's lifetime
///
[YamlMember(Alias = "quobyte")]
[JsonProperty("quobyte", NullValueHandling = NullValueHandling.Ignore)]
public QuobyteVolumeSourceV1 Quobyte { get; set; }
///
- /// Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.
+ /// storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.
///
[YamlMember(Alias = "storageClassName")]
[JsonProperty("storageClassName", NullValueHandling = NullValueHandling.Ignore)]
public string StorageClassName { get; set; }
///
- /// volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. This is an alpha feature and may change in the future.
+ /// Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
+ ///
+ [YamlMember(Alias = "volumeAttributesClassName")]
+ [JsonProperty("volumeAttributesClassName", NullValueHandling = NullValueHandling.Ignore)]
+ public string VolumeAttributesClassName { get; set; }
+
+ ///
+ /// volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.
///
[YamlMember(Alias = "volumeMode")]
[JsonProperty("volumeMode", NullValueHandling = NullValueHandling.Ignore)]
public string VolumeMode { get; set; }
///
- /// VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
+ /// vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
///
[YamlMember(Alias = "vsphereVolume")]
[JsonProperty("vsphereVolume", NullValueHandling = NullValueHandling.Ignore)]
public VsphereVirtualDiskVolumeSourceV1 VsphereVolume { get; set; }
///
- /// ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
+ /// claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
///
[YamlMember(Alias = "claimRef")]
[JsonProperty("claimRef", NullValueHandling = NullValueHandling.Ignore)]
public ObjectReferenceV1 ClaimRef { get; set; }
///
- /// HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
+ /// hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
///
[YamlMember(Alias = "hostPath")]
[JsonProperty("hostPath", NullValueHandling = NullValueHandling.Ignore)]
public HostPathVolumeSourceV1 HostPath { get; set; }
///
- /// CSI represents storage that handled by an external CSI driver (Beta feature).
+ /// csi represents storage that is handled by an external CSI driver (Beta feature).
///
[YamlMember(Alias = "csi")]
[JsonProperty("csi", NullValueHandling = NullValueHandling.Ignore)]
public CSIPersistentVolumeSourceV1 Csi { get; set; }
///
- /// ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.
+ /// iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.
///
[YamlMember(Alias = "iscsi")]
[JsonProperty("iscsi", NullValueHandling = NullValueHandling.Ignore)]
public ISCSIPersistentVolumeSourceV1 Iscsi { get; set; }
///
- /// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
+ /// azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
///
[YamlMember(Alias = "azureDisk")]
[JsonProperty("azureDisk", NullValueHandling = NullValueHandling.Ignore)]
public AzureDiskVolumeSourceV1 AzureDisk { get; set; }
///
- /// GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
+ /// gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
///
[YamlMember(Alias = "gcePersistentDisk")]
[JsonProperty("gcePersistentDisk", NullValueHandling = NullValueHandling.Ignore)]
public GCEPersistentDiskVolumeSourceV1 GcePersistentDisk { get; set; }
///
- /// PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
+ /// photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
///
[YamlMember(Alias = "photonPersistentDisk")]
[JsonProperty("photonPersistentDisk", NullValueHandling = NullValueHandling.Ignore)]
public PhotonPersistentDiskVolumeSourceV1 PhotonPersistentDisk { get; set; }
///
- /// Local represents directly-attached storage with node affinity
+ /// local represents directly-attached storage with node affinity
///
[YamlMember(Alias = "local")]
[JsonProperty("local", NullValueHandling = NullValueHandling.Ignore)]
public LocalVolumeSourceV1 Local { get; set; }
///
- /// Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
+ /// cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
///
[YamlMember(Alias = "cinder")]
[JsonProperty("cinder", NullValueHandling = NullValueHandling.Ignore)]
public CinderPersistentVolumeSourceV1 Cinder { get; set; }
///
- /// Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
+ /// flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
///
[YamlMember(Alias = "flocker")]
[JsonProperty("flocker", NullValueHandling = NullValueHandling.Ignore)]
public FlockerVolumeSourceV1 Flocker { get; set; }
///
- /// AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
+ /// accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
///
[YamlMember(Alias = "accessModes")]
[JsonProperty("accessModes", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -170,21 +177,21 @@ public partial class PersistentVolumeSpecV1
public bool ShouldSerializeAccessModes() => AccessModes.Count > 0;
///
- /// CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
+ /// cephFS represents a Ceph FS mount on the host that shares a pod's lifetime
///
[YamlMember(Alias = "cephfs")]
[JsonProperty("cephfs", NullValueHandling = NullValueHandling.Ignore)]
public CephFSPersistentVolumeSourceV1 Cephfs { get; set; }
///
- /// Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md
+ /// glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md
///
[YamlMember(Alias = "glusterfs")]
[JsonProperty("glusterfs", NullValueHandling = NullValueHandling.Ignore)]
- public GlusterfsVolumeSourceV1 Glusterfs { get; set; }
+ public GlusterfsPersistentVolumeSourceV1 Glusterfs { get; set; }
///
- /// A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
+ /// mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
///
[YamlMember(Alias = "mountOptions")]
[JsonProperty("mountOptions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -196,21 +203,21 @@ public partial class PersistentVolumeSpecV1
public bool ShouldSerializeMountOptions() => MountOptions.Count > 0;
///
- /// NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
+ /// nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
///
[YamlMember(Alias = "nfs")]
[JsonProperty("nfs", NullValueHandling = NullValueHandling.Ignore)]
public NFSVolumeSourceV1 Nfs { get; set; }
///
- /// StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md
+ /// storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md
///
[YamlMember(Alias = "storageos")]
[JsonProperty("storageos", NullValueHandling = NullValueHandling.Ignore)]
public StorageOSPersistentVolumeSourceV1 Storageos { get; set; }
///
- /// A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
+ /// capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
///
[YamlMember(Alias = "capacity")]
[JsonProperty("capacity", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -222,14 +229,14 @@ public partial class PersistentVolumeSpecV1
public bool ShouldSerializeCapacity() => Capacity.Count > 0;
///
- /// NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume.
+ /// nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume.
///
[YamlMember(Alias = "nodeAffinity")]
[JsonProperty("nodeAffinity", NullValueHandling = NullValueHandling.Ignore)]
public VolumeNodeAffinityV1 NodeAffinity { get; set; }
///
- /// What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
+ /// persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
///
[YamlMember(Alias = "persistentVolumeReclaimPolicy")]
[JsonProperty("persistentVolumeReclaimPolicy", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/PersistentVolumeStatusV1.cs b/src/KubeClient/Models/generated/PersistentVolumeStatusV1.cs
index 1452a8ec..0e61a256 100644
--- a/src/KubeClient/Models/generated/PersistentVolumeStatusV1.cs
+++ b/src/KubeClient/Models/generated/PersistentVolumeStatusV1.cs
@@ -11,21 +11,28 @@ namespace KubeClient.Models
public partial class PersistentVolumeStatusV1
{
///
- /// A human-readable message indicating details about why the volume is in this state.
+ /// lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions.
+ ///
+ [YamlMember(Alias = "lastPhaseTransitionTime")]
+ [JsonProperty("lastPhaseTransitionTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastPhaseTransitionTime { get; set; }
+
+ ///
+ /// message is a human-readable message indicating details about why the volume is in this state.
///
[YamlMember(Alias = "message")]
[JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
public string Message { get; set; }
///
- /// Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
+ /// phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
///
[YamlMember(Alias = "phase")]
[JsonProperty("phase", NullValueHandling = NullValueHandling.Ignore)]
public string Phase { get; set; }
///
- /// Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.
+ /// reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.
///
[YamlMember(Alias = "reason")]
[JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/PersistentVolumeV1.cs b/src/KubeClient/Models/generated/PersistentVolumeV1.cs
index 20395465..868ae677 100644
--- a/src/KubeClient/Models/generated/PersistentVolumeV1.cs
+++ b/src/KubeClient/Models/generated/PersistentVolumeV1.cs
@@ -24,14 +24,14 @@ namespace KubeClient.Models
public partial class PersistentVolumeV1 : KubeResourceV1
{
///
- /// Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
+ /// spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
public PersistentVolumeSpecV1 Spec { get; set; }
///
- /// Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
+ /// status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/PhotonPersistentDiskVolumeSourceV1.cs b/src/KubeClient/Models/generated/PhotonPersistentDiskVolumeSourceV1.cs
index 042a0489..05ac4eb7 100644
--- a/src/KubeClient/Models/generated/PhotonPersistentDiskVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/PhotonPersistentDiskVolumeSourceV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class PhotonPersistentDiskVolumeSourceV1
{
///
- /// ID that identifies Photon Controller persistent disk
+ /// pdID is the ID that identifies Photon Controller persistent disk
///
[YamlMember(Alias = "pdID")]
[JsonProperty("pdID", NullValueHandling = NullValueHandling.Include)]
public string PdID { get; set; }
///
- /// Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+ /// fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/PodAffinityTermV1.cs b/src/KubeClient/Models/generated/PodAffinityTermV1.cs
index e98e550e..7095c5fd 100644
--- a/src/KubeClient/Models/generated/PodAffinityTermV1.cs
+++ b/src/KubeClient/Models/generated/PodAffinityTermV1.cs
@@ -11,14 +11,45 @@ namespace KubeClient.Models
public partial class PodAffinityTermV1
{
///
- /// A label query over a set of resources, in this case pods.
+ /// A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.
///
[YamlMember(Alias = "labelSelector")]
[JsonProperty("labelSelector", NullValueHandling = NullValueHandling.Ignore)]
public LabelSelectorV1 LabelSelector { get; set; }
///
- /// namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
+ /// A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.
+ ///
+ [YamlMember(Alias = "namespaceSelector")]
+ [JsonProperty("namespaceSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 NamespaceSelector { get; set; }
+
+ ///
+ /// MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
+ ///
+ [YamlMember(Alias = "matchLabelKeys")]
+ [JsonProperty("matchLabelKeys", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List MatchLabelKeys { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeMatchLabelKeys() => MatchLabelKeys.Count > 0;
+
+ ///
+ /// MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
+ ///
+ [YamlMember(Alias = "mismatchLabelKeys")]
+ [JsonProperty("mismatchLabelKeys", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List MismatchLabelKeys { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeMismatchLabelKeys() => MismatchLabelKeys.Count > 0;
+
+ ///
+ /// namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
///
[YamlMember(Alias = "namespaces")]
[JsonProperty("namespaces", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
diff --git a/src/KubeClient/Models/generated/PodDisruptionBudgetListV1.cs b/src/KubeClient/Models/generated/PodDisruptionBudgetListV1.cs
new file mode 100644
index 00000000..d021ef74
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodDisruptionBudgetListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodDisruptionBudgetList is a collection of PodDisruptionBudgets.
+ ///
+ [KubeListItem("PodDisruptionBudget", "policy/v1")]
+ [KubeObject("PodDisruptionBudgetList", "policy/v1")]
+ public partial class PodDisruptionBudgetListV1 : KubeResourceListV1
+ {
+ ///
+ /// Items is a list of PodDisruptionBudgets
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodDisruptionBudgetSpecV1.cs b/src/KubeClient/Models/generated/PodDisruptionBudgetSpecV1.cs
new file mode 100644
index 00000000..e6af1dcd
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodDisruptionBudgetSpecV1.cs
@@ -0,0 +1,51 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
+ ///
+ public partial class PodDisruptionBudgetSpecV1
+ {
+ ///
+ /// An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable".
+ ///
+ [YamlMember(Alias = "maxUnavailable")]
+ [JsonProperty("maxUnavailable", NullValueHandling = NullValueHandling.Ignore)]
+ public Int32OrStringV1 MaxUnavailable { get; set; }
+
+ ///
+ /// An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%".
+ ///
+ [YamlMember(Alias = "minAvailable")]
+ [JsonProperty("minAvailable", NullValueHandling = NullValueHandling.Ignore)]
+ public Int32OrStringV1 MinAvailable { get; set; }
+
+ ///
+ /// Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.
+ ///
+ [YamlMember(Alias = "selector")]
+ [JsonProperty("selector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 Selector { get; set; }
+
+ ///
+ /// UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type="Ready",status="True".
+ ///
+ /// Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.
+ ///
+ /// IfHealthyBudget policy means that running pods (status.phase="Running"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.
+ ///
+ /// AlwaysAllow policy means that all running pods (status.phase="Running"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.
+ ///
+ /// Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.
+ ///
+ /// This field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).
+ ///
+ [YamlMember(Alias = "unhealthyPodEvictionPolicy")]
+ [JsonProperty("unhealthyPodEvictionPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string UnhealthyPodEvictionPolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodDisruptionBudgetStatusV1.cs b/src/KubeClient/Models/generated/PodDisruptionBudgetStatusV1.cs
new file mode 100644
index 00000000..a9eeda2c
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodDisruptionBudgetStatusV1.cs
@@ -0,0 +1,81 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.
+ ///
+ public partial class PodDisruptionBudgetStatusV1
+ {
+ ///
+ /// Number of pod disruptions that are currently allowed.
+ ///
+ [YamlMember(Alias = "disruptionsAllowed")]
+ [JsonProperty("disruptionsAllowed", NullValueHandling = NullValueHandling.Include)]
+ public int DisruptionsAllowed { get; set; }
+
+ ///
+ /// Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.
+ ///
+ [YamlMember(Alias = "observedGeneration")]
+ [JsonProperty("observedGeneration", NullValueHandling = NullValueHandling.Ignore)]
+ public long? ObservedGeneration { get; set; }
+
+ ///
+ /// Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute
+ /// the number of allowed disruptions. Therefore no disruptions are
+ /// allowed and the status of the condition will be False.
+ /// - InsufficientPods: The number of pods are either at or below the number
+ /// required by the PodDisruptionBudget. No disruptions are
+ /// allowed and the status of the condition will be False.
+ /// - SufficientPods: There are more pods than required by the PodDisruptionBudget.
+ /// The condition will be True, and the number of allowed
+ /// disruptions are provided by the disruptionsAllowed property.
+ ///
+ [MergeStrategy(Key = "type")]
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+
+ ///
+ /// DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.
+ ///
+ [YamlMember(Alias = "disruptedPods")]
+ [JsonProperty("disruptedPods", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary DisruptedPods { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeDisruptedPods() => DisruptedPods.Count > 0;
+
+ ///
+ /// total number of pods counted by this disruption budget
+ ///
+ [YamlMember(Alias = "expectedPods")]
+ [JsonProperty("expectedPods", NullValueHandling = NullValueHandling.Include)]
+ public int ExpectedPods { get; set; }
+
+ ///
+ /// current number of healthy pods
+ ///
+ [YamlMember(Alias = "currentHealthy")]
+ [JsonProperty("currentHealthy", NullValueHandling = NullValueHandling.Include)]
+ public int CurrentHealthy { get; set; }
+
+ ///
+ /// minimum desired number of healthy pods
+ ///
+ [YamlMember(Alias = "desiredHealthy")]
+ [JsonProperty("desiredHealthy", NullValueHandling = NullValueHandling.Include)]
+ public int DesiredHealthy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodDisruptionBudgetV1.cs b/src/KubeClient/Models/generated/PodDisruptionBudgetV1.cs
new file mode 100644
index 00000000..8873c67d
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodDisruptionBudgetV1.cs
@@ -0,0 +1,42 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
+ ///
+ [KubeObject("PodDisruptionBudget", "policy/v1")]
+ [KubeApi(KubeAction.List, "apis/policy/v1/poddisruptionbudgets")]
+ [KubeApi(KubeAction.WatchList, "apis/policy/v1/watch/poddisruptionbudgets")]
+ [KubeApi(KubeAction.List, "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets")]
+ [KubeApi(KubeAction.Create, "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets")]
+ [KubeApi(KubeAction.Get, "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}")]
+ [KubeApi(KubeAction.Update, "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets")]
+ [KubeApi(KubeAction.Get, "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status")]
+ public partial class PodDisruptionBudgetV1 : KubeResourceV1
+ {
+ ///
+ /// Specification of the desired behavior of the PodDisruptionBudget.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public PodDisruptionBudgetSpecV1 Spec { get; set; }
+
+ ///
+ /// Most recently observed status of the PodDisruptionBudget.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public PodDisruptionBudgetStatusV1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodFailurePolicyOnExitCodesRequirementV1.cs b/src/KubeClient/Models/generated/PodFailurePolicyOnExitCodesRequirementV1.cs
new file mode 100644
index 00000000..04d89d30
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodFailurePolicyOnExitCodesRequirementV1.cs
@@ -0,0 +1,42 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.
+ ///
+ public partial class PodFailurePolicyOnExitCodesRequirementV1
+ {
+ ///
+ /// Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.
+ ///
+ [YamlMember(Alias = "containerName")]
+ [JsonProperty("containerName", NullValueHandling = NullValueHandling.Ignore)]
+ public string ContainerName { get; set; }
+
+ ///
+ /// Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:
+ ///
+ /// - In: the requirement is satisfied if at least one container exit code
+ /// (might be multiple if there are multiple containers not restricted
+ /// by the 'containerName' field) is in the set of specified values.
+ /// - NotIn: the requirement is satisfied if at least one container exit code
+ /// (might be multiple if there are multiple containers not restricted
+ /// by the 'containerName' field) is not in the set of specified values.
+ /// Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.
+ ///
+ [YamlMember(Alias = "operator")]
+ [JsonProperty("operator", NullValueHandling = NullValueHandling.Include)]
+ public string Operator { get; set; }
+
+ ///
+ /// Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.
+ ///
+ [YamlMember(Alias = "values")]
+ [JsonProperty("values", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Values { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodFailurePolicyOnPodConditionsPatternV1.cs b/src/KubeClient/Models/generated/PodFailurePolicyOnPodConditionsPatternV1.cs
new file mode 100644
index 00000000..b0c70f53
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodFailurePolicyOnPodConditionsPatternV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.
+ ///
+ public partial class PodFailurePolicyOnPodConditionsPatternV1
+ {
+ ///
+ /// Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Include)]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodFailurePolicyRuleV1.cs b/src/KubeClient/Models/generated/PodFailurePolicyRuleV1.cs
new file mode 100644
index 00000000..ea2620a6
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodFailurePolicyRuleV1.cs
@@ -0,0 +1,51 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.
+ ///
+ public partial class PodFailurePolicyRuleV1
+ {
+ ///
+ /// Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:
+ ///
+ /// - FailJob: indicates that the pod's job is marked as Failed and all
+ /// running pods are terminated.
+ /// - FailIndex: indicates that the pod's index is marked as Failed and will
+ /// not be restarted.
+ /// This value is beta-level. It can be used when the
+ /// `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
+ /// - Ignore: indicates that the counter towards the .backoffLimit is not
+ /// incremented and a replacement pod is created.
+ /// - Count: indicates that the pod is handled in the default way - the
+ /// counter towards the .backoffLimit is incremented.
+ /// Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.
+ ///
+ [YamlMember(Alias = "action")]
+ [JsonProperty("action", NullValueHandling = NullValueHandling.Include)]
+ public string Action { get; set; }
+
+ ///
+ /// Represents the requirement on the container exit codes.
+ ///
+ [YamlMember(Alias = "onExitCodes")]
+ [JsonProperty("onExitCodes", NullValueHandling = NullValueHandling.Ignore)]
+ public PodFailurePolicyOnExitCodesRequirementV1 OnExitCodes { get; set; }
+
+ ///
+ /// Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.
+ ///
+ [YamlMember(Alias = "onPodConditions")]
+ [JsonProperty("onPodConditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List OnPodConditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeOnPodConditions() => OnPodConditions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodFailurePolicyV1.cs b/src/KubeClient/Models/generated/PodFailurePolicyV1.cs
new file mode 100644
index 00000000..b02c8ef3
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodFailurePolicyV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodFailurePolicy describes how failed pods influence the backoffLimit.
+ ///
+ public partial class PodFailurePolicyV1
+ {
+ ///
+ /// A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.
+ ///
+ [YamlMember(Alias = "rules")]
+ [JsonProperty("rules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Rules { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodIPV1.cs b/src/KubeClient/Models/generated/PodIPV1.cs
new file mode 100644
index 00000000..d8e1a148
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodIPV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodIP represents a single IP address allocated to the pod.
+ ///
+ public partial class PodIPV1
+ {
+ ///
+ /// IP is the IP address assigned to the pod
+ ///
+ [YamlMember(Alias = "ip")]
+ [JsonProperty("ip", NullValueHandling = NullValueHandling.Include)]
+ public string Ip { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodListV1.cs b/src/KubeClient/Models/generated/PodListV1.cs
index 7231d18b..2b4eb7c6 100644
--- a/src/KubeClient/Models/generated/PodListV1.cs
+++ b/src/KubeClient/Models/generated/PodListV1.cs
@@ -13,7 +13,7 @@ namespace KubeClient.Models
public partial class PodListV1 : KubeResourceListV1
{
///
- /// List of pods. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md
+ /// List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
///
[JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public override List Items { get; } = new List();
diff --git a/src/KubeClient/Models/generated/PodOSV1.cs b/src/KubeClient/Models/generated/PodOSV1.cs
new file mode 100644
index 00000000..4c0e54d1
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodOSV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodOS defines the OS parameters of a pod.
+ ///
+ public partial class PodOSV1
+ {
+ ///
+ /// Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodResourceClaimStatusV1.cs b/src/KubeClient/Models/generated/PodResourceClaimStatusV1.cs
new file mode 100644
index 00000000..19ae2525
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodResourceClaimStatusV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.
+ ///
+ public partial class PodResourceClaimStatusV1
+ {
+ ///
+ /// Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.
+ ///
+ [YamlMember(Alias = "resourceClaimName")]
+ [JsonProperty("resourceClaimName", NullValueHandling = NullValueHandling.Ignore)]
+ public string ResourceClaimName { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodResourceClaimV1.cs b/src/KubeClient/Models/generated/PodResourceClaimV1.cs
new file mode 100644
index 00000000..d232a8a1
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodResourceClaimV1.cs
@@ -0,0 +1,44 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod.
+ ///
+ /// It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.
+ ///
+ public partial class PodResourceClaimV1
+ {
+ ///
+ /// Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.
+ ///
+ /// Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.
+ ///
+ [YamlMember(Alias = "resourceClaimName")]
+ [JsonProperty("resourceClaimName", NullValueHandling = NullValueHandling.Ignore)]
+ public string ResourceClaimName { get; set; }
+
+ ///
+ /// ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.
+ ///
+ /// The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
+ ///
+ /// This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.
+ ///
+ /// Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.
+ ///
+ [YamlMember(Alias = "resourceClaimTemplateName")]
+ [JsonProperty("resourceClaimTemplateName", NullValueHandling = NullValueHandling.Ignore)]
+ public string ResourceClaimTemplateName { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodSchedulingContextListV1Alpha3.cs b/src/KubeClient/Models/generated/PodSchedulingContextListV1Alpha3.cs
new file mode 100644
index 00000000..c4bcacb5
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodSchedulingContextListV1Alpha3.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodSchedulingContextList is a collection of Pod scheduling objects.
+ ///
+ [KubeListItem("PodSchedulingContext", "resource.k8s.io/v1alpha3")]
+ [KubeObject("PodSchedulingContextList", "resource.k8s.io/v1alpha3")]
+ public partial class PodSchedulingContextListV1Alpha3 : KubeResourceListV1
+ {
+ ///
+ /// Items is the list of PodSchedulingContext objects.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodSchedulingContextSpecV1Alpha3.cs b/src/KubeClient/Models/generated/PodSchedulingContextSpecV1Alpha3.cs
new file mode 100644
index 00000000..bd0b4fb2
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodSchedulingContextSpecV1Alpha3.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodSchedulingContextSpec describes where resources for the Pod are needed.
+ ///
+ public partial class PodSchedulingContextSpecV1Alpha3
+ {
+ ///
+ /// SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
+ ///
+ [YamlMember(Alias = "selectedNode")]
+ [JsonProperty("selectedNode", NullValueHandling = NullValueHandling.Ignore)]
+ public string SelectedNode { get; set; }
+
+ ///
+ /// PotentialNodes lists nodes where the Pod might be able to run.
+ ///
+ /// The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
+ ///
+ [YamlMember(Alias = "potentialNodes")]
+ [JsonProperty("potentialNodes", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List PotentialNodes { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializePotentialNodes() => PotentialNodes.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodSchedulingContextStatusV1Alpha3.cs b/src/KubeClient/Models/generated/PodSchedulingContextStatusV1Alpha3.cs
new file mode 100644
index 00000000..2689fe58
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodSchedulingContextStatusV1Alpha3.cs
@@ -0,0 +1,25 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodSchedulingContextStatus describes where resources for the Pod can be allocated.
+ ///
+ public partial class PodSchedulingContextStatusV1Alpha3
+ {
+ ///
+ /// ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
+ ///
+ [YamlMember(Alias = "resourceClaims")]
+ [JsonProperty("resourceClaims", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ResourceClaims { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResourceClaims() => ResourceClaims.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodSchedulingContextV1Alpha3.cs b/src/KubeClient/Models/generated/PodSchedulingContextV1Alpha3.cs
new file mode 100644
index 00000000..3e0fb912
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodSchedulingContextV1Alpha3.cs
@@ -0,0 +1,44 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode.
+ ///
+ /// This is an alpha type and requires enabling the DRAControlPlaneController feature gate.
+ ///
+ [KubeObject("PodSchedulingContext", "resource.k8s.io/v1alpha3")]
+ [KubeApi(KubeAction.List, "apis/resource.k8s.io/v1alpha3/podschedulingcontexts")]
+ [KubeApi(KubeAction.WatchList, "apis/resource.k8s.io/v1alpha3/watch/podschedulingcontexts")]
+ [KubeApi(KubeAction.List, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts")]
+ [KubeApi(KubeAction.Create, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts")]
+ [KubeApi(KubeAction.Get, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}")]
+ [KubeApi(KubeAction.Update, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/podschedulingcontexts")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts")]
+ [KubeApi(KubeAction.Get, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/podschedulingcontexts/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/podschedulingcontexts/{name}/status")]
+ public partial class PodSchedulingContextV1Alpha3 : KubeResourceV1
+ {
+ ///
+ /// Spec describes where resources for the Pod are needed.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public PodSchedulingContextSpecV1Alpha3 Spec { get; set; }
+
+ ///
+ /// Status describes where resources for the Pod can be allocated.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public PodSchedulingContextStatusV1Alpha3 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodSchedulingGateV1.cs b/src/KubeClient/Models/generated/PodSchedulingGateV1.cs
new file mode 100644
index 00000000..97eaa06d
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodSchedulingGateV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodSchedulingGate is associated to a Pod to guard its scheduling.
+ ///
+ public partial class PodSchedulingGateV1
+ {
+ ///
+ /// Name of the scheduling gate. Each scheduling gate must have a unique name field.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodSecurityContextV1.cs b/src/KubeClient/Models/generated/PodSecurityContextV1.cs
index ccb84509..38f9b04e 100644
--- a/src/KubeClient/Models/generated/PodSecurityContextV1.cs
+++ b/src/KubeClient/Models/generated/PodSecurityContextV1.cs
@@ -10,40 +10,54 @@ namespace KubeClient.Models
///
public partial class PodSecurityContextV1
{
+ ///
+ /// appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows.
+ ///
+ [YamlMember(Alias = "appArmorProfile")]
+ [JsonProperty("appArmorProfile", NullValueHandling = NullValueHandling.Ignore)]
+ public AppArmorProfileV1 AppArmorProfile { get; set; }
+
+ ///
+ /// The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows.
+ ///
+ [YamlMember(Alias = "seccompProfile")]
+ [JsonProperty("seccompProfile", NullValueHandling = NullValueHandling.Ignore)]
+ public SeccompProfileV1 SeccompProfile { get; set; }
+
///
/// A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:
///
/// 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----
///
- /// If unset, the Kubelet will not modify the ownership and permissions of any volume.
+ /// If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.
///
[YamlMember(Alias = "fsGroup")]
[JsonProperty("fsGroup", NullValueHandling = NullValueHandling.Ignore)]
public long? FsGroup { get; set; }
///
- /// The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.
+ /// The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.
///
[YamlMember(Alias = "runAsGroup")]
[JsonProperty("runAsGroup", NullValueHandling = NullValueHandling.Ignore)]
public long? RunAsGroup { get; set; }
///
- /// The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.
+ /// The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.
///
[YamlMember(Alias = "runAsUser")]
[JsonProperty("runAsUser", NullValueHandling = NullValueHandling.Ignore)]
public long? RunAsUser { get; set; }
///
- /// The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.
+ /// The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.
///
[YamlMember(Alias = "seLinuxOptions")]
[JsonProperty("seLinuxOptions", NullValueHandling = NullValueHandling.Ignore)]
public SELinuxOptionsV1 SeLinuxOptions { get; set; }
///
- /// A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.
+ /// A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.
///
[YamlMember(Alias = "supplementalGroups")]
[JsonProperty("supplementalGroups", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -55,7 +69,7 @@ public partial class PodSecurityContextV1
public bool ShouldSerializeSupplementalGroups() => SupplementalGroups.Count > 0;
///
- /// Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch.
+ /// Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.
///
[YamlMember(Alias = "sysctls")]
[JsonProperty("sysctls", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -66,11 +80,32 @@ public partial class PodSecurityContextV1
///
public bool ShouldSerializeSysctls() => Sysctls.Count > 0;
+ ///
+ /// The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.
+ ///
+ [YamlMember(Alias = "windowsOptions")]
+ [JsonProperty("windowsOptions", NullValueHandling = NullValueHandling.Ignore)]
+ public WindowsSecurityContextOptionsV1 WindowsOptions { get; set; }
+
///
/// Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
///
[YamlMember(Alias = "runAsNonRoot")]
[JsonProperty("runAsNonRoot", NullValueHandling = NullValueHandling.Ignore)]
public bool? RunAsNonRoot { get; set; }
+
+ ///
+ /// fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows.
+ ///
+ [YamlMember(Alias = "fsGroupChangePolicy")]
+ [JsonProperty("fsGroupChangePolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string FsGroupChangePolicy { get; set; }
+
+ ///
+ /// Defines how supplemental groups of the first container processes are calculated. Valid values are "Merge" and "Strict". If not specified, "Merge" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows.
+ ///
+ [YamlMember(Alias = "supplementalGroupsPolicy")]
+ [JsonProperty("supplementalGroupsPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string SupplementalGroupsPolicy { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/PodSpecV1.cs b/src/KubeClient/Models/generated/PodSpecV1.cs
index 4f189df2..454625fa 100644
--- a/src/KubeClient/Models/generated/PodSpecV1.cs
+++ b/src/KubeClient/Models/generated/PodSpecV1.cs
@@ -24,6 +24,25 @@ public partial class PodSpecV1
[JsonProperty("hostPID", NullValueHandling = NullValueHandling.Ignore)]
public bool? HostPID { get; set; }
+ ///
+ /// If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.
+ ///
+ [YamlMember(Alias = "setHostnameAsFQDN")]
+ [JsonProperty("setHostnameAsFQDN", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? SetHostnameAsFQDN { get; set; }
+
+ ///
+ /// Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
+ ///
+ [YamlMember(Alias = "overhead")]
+ [JsonProperty("overhead", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary Overhead { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeOverhead() => Overhead.Count > 0;
+
///
/// Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.
///
@@ -32,7 +51,7 @@ public partial class PodSpecV1
public string Hostname { get; set; }
///
- /// NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.
+ /// NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename
///
[YamlMember(Alias = "nodeName")]
[JsonProperty("nodeName", NullValueHandling = NullValueHandling.Ignore)]
@@ -45,6 +64,13 @@ public partial class PodSpecV1
[JsonProperty("priorityClassName", NullValueHandling = NullValueHandling.Ignore)]
public string PriorityClassName { get; set; }
+ ///
+ /// RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
+ ///
+ [YamlMember(Alias = "runtimeClassName")]
+ [JsonProperty("runtimeClassName", NullValueHandling = NullValueHandling.Ignore)]
+ public string RuntimeClassName { get; set; }
+
///
/// If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.
///
@@ -60,7 +86,7 @@ public partial class PodSpecV1
public string ServiceAccountName { get; set; }
///
- /// Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. This field is alpha-level and is honored only by servers that enable the PodShareProcessNamespace feature.
+ /// Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.
///
[YamlMember(Alias = "shareProcessNamespace")]
[JsonProperty("shareProcessNamespace", NullValueHandling = NullValueHandling.Ignore)]
@@ -122,7 +148,27 @@ public partial class PodSpecV1
public List Containers { get; } = new List();
///
- /// HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.
+ /// EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.
+ ///
+ [YamlMember(Alias = "enableServiceLinks")]
+ [JsonProperty("enableServiceLinks", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? EnableServiceLinks { get; set; }
+
+ ///
+ /// List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "ephemeralContainers")]
+ [JsonProperty("ephemeralContainers", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List EphemeralContainers { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeEphemeralContainers() => EphemeralContainers.Count > 0;
+
+ ///
+ /// HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.
///
[MergeStrategy(Key = "ip")]
[YamlMember(Alias = "hostAliases")]
@@ -135,7 +181,14 @@ public partial class PodSpecV1
public bool ShouldSerializeHostAliases() => HostAliases.Count > 0;
///
- /// ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
+ /// Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
+ ///
+ [YamlMember(Alias = "hostUsers")]
+ [JsonProperty("hostUsers", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? HostUsers { get; set; }
+
+ ///
+ /// ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
///
[MergeStrategy(Key = "name")]
[YamlMember(Alias = "imagePullSecrets")]
@@ -148,7 +201,7 @@ public partial class PodSpecV1
public bool ShouldSerializeImagePullSecrets() => ImagePullSecrets.Count > 0;
///
- /// List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
+ /// List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
///
[MergeStrategy(Key = "name")]
[YamlMember(Alias = "initContainers")]
@@ -161,7 +214,18 @@ public partial class PodSpecV1
public bool ShouldSerializeInitContainers() => InitContainers.Count > 0;
///
- /// If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://github.com/kubernetes/community/blob/master/keps/sig-network/0007-pod-ready%2B%2B.md
+ /// Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.
+ ///
+ /// If the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions
+ ///
+ /// If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup
+ ///
+ [YamlMember(Alias = "os")]
+ [JsonProperty("os", NullValueHandling = NullValueHandling.Ignore)]
+ public PodOSV1 Os { get; set; }
+
+ ///
+ /// If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
///
[YamlMember(Alias = "readinessGates")]
[JsonProperty("readinessGates", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -173,7 +237,40 @@ public partial class PodSpecV1
public bool ShouldSerializeReadinessGates() => ReadinessGates.Count > 0;
///
- /// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.
+ /// ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.
+ ///
+ /// This is an alpha field and requires enabling the DynamicResourceAllocation feature gate.
+ ///
+ /// This field is immutable.
+ ///
+ [RetainKeysStrategy]
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "resourceClaims")]
+ [JsonProperty("resourceClaims", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ResourceClaims { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResourceClaims() => ResourceClaims.Count > 0;
+
+ ///
+ /// SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.
+ ///
+ /// SchedulingGates can only be set at pod creation time, and be removed only afterwards.
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "schedulingGates")]
+ [JsonProperty("schedulingGates", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List SchedulingGates { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeSchedulingGates() => SchedulingGates.Count > 0;
+
+ ///
+ /// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.
///
[YamlMember(Alias = "terminationGracePeriodSeconds")]
[JsonProperty("terminationGracePeriodSeconds", NullValueHandling = NullValueHandling.Ignore)]
@@ -191,6 +288,19 @@ public partial class PodSpecV1
///
public bool ShouldSerializeTolerations() => Tolerations.Count > 0;
+ ///
+ /// TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.
+ ///
+ [MergeStrategy(Key = "topologyKey")]
+ [YamlMember(Alias = "topologySpreadConstraints")]
+ [JsonProperty("topologySpreadConstraints", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List TopologySpreadConstraints { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeTopologySpreadConstraints() => TopologySpreadConstraints.Count > 0;
+
///
/// List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes
///
@@ -213,7 +323,7 @@ public partial class PodSpecV1
public PodSecurityContextV1 SecurityContext { get; set; }
///
- /// DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.
+ /// DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.
///
[YamlMember(Alias = "serviceAccount")]
[JsonProperty("serviceAccount", NullValueHandling = NullValueHandling.Ignore)]
@@ -233,6 +343,13 @@ public partial class PodSpecV1
[JsonProperty("dnsPolicy", NullValueHandling = NullValueHandling.Ignore)]
public string DnsPolicy { get; set; }
+ ///
+ /// PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.
+ ///
+ [YamlMember(Alias = "preemptionPolicy")]
+ [JsonProperty("preemptionPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string PreemptionPolicy { get; set; }
+
///
/// The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.
///
@@ -241,7 +358,7 @@ public partial class PodSpecV1
public int? Priority { get; set; }
///
- /// Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
+ /// Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
///
[YamlMember(Alias = "restartPolicy")]
[JsonProperty("restartPolicy", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/PodStatusV1.cs b/src/KubeClient/Models/generated/PodStatusV1.cs
index 996a9249..ae6b09ef 100644
--- a/src/KubeClient/Models/generated/PodStatusV1.cs
+++ b/src/KubeClient/Models/generated/PodStatusV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class PodStatusV1
{
///
- /// IP address of the host to which the pod is assigned. Empty if not yet scheduled.
+ /// hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod
///
[YamlMember(Alias = "hostIP")]
[JsonProperty("hostIP", NullValueHandling = NullValueHandling.Ignore)]
public string HostIP { get; set; }
///
- /// IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.
+ /// podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.
///
[YamlMember(Alias = "podIP")]
[JsonProperty("podIP", NullValueHandling = NullValueHandling.Ignore)]
@@ -49,6 +49,13 @@ public partial class PodStatusV1
[JsonProperty("phase", NullValueHandling = NullValueHandling.Ignore)]
public string Phase { get; set; }
+ ///
+ /// Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to "Proposed"
+ ///
+ [YamlMember(Alias = "resize")]
+ [JsonProperty("resize", NullValueHandling = NullValueHandling.Ignore)]
+ public string Resize { get; set; }
+
///
/// RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.
///
@@ -77,7 +84,7 @@ public partial class PodStatusV1
public bool ShouldSerializeConditions() => Conditions.Count > 0;
///
- /// The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
+ /// The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
///
[YamlMember(Alias = "containerStatuses")]
[JsonProperty("containerStatuses", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -88,6 +95,31 @@ public partial class PodStatusV1
///
public bool ShouldSerializeContainerStatuses() => ContainerStatuses.Count > 0;
+ ///
+ /// Status for any ephemeral containers that have run in this pod.
+ ///
+ [YamlMember(Alias = "ephemeralContainerStatuses")]
+ [JsonProperty("ephemeralContainerStatuses", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List EphemeralContainerStatuses { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeEphemeralContainerStatuses() => EphemeralContainerStatuses.Count > 0;
+
+ ///
+ /// hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.
+ ///
+ [MergeStrategy(Key = "ip")]
+ [YamlMember(Alias = "hostIPs")]
+ [JsonProperty("hostIPs", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List HostIPs { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeHostIPs() => HostIPs.Count > 0;
+
///
/// The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
///
@@ -101,10 +133,37 @@ public partial class PodStatusV1
public bool ShouldSerializeInitContainerStatuses() => InitContainerStatuses.Count > 0;
///
- /// The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
+ /// podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.
+ ///
+ [MergeStrategy(Key = "ip")]
+ [YamlMember(Alias = "podIPs")]
+ [JsonProperty("podIPs", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List PodIPs { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializePodIPs() => PodIPs.Count > 0;
+
+ ///
+ /// The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
///
[YamlMember(Alias = "qosClass")]
[JsonProperty("qosClass", NullValueHandling = NullValueHandling.Ignore)]
public string QosClass { get; set; }
+
+ ///
+ /// Status of resource claims.
+ ///
+ [RetainKeysStrategy]
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "resourceClaimStatuses")]
+ [JsonProperty("resourceClaimStatuses", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ResourceClaimStatuses { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResourceClaimStatuses() => ResourceClaimStatuses.Count > 0;
}
}
diff --git a/src/KubeClient/Models/generated/PodTemplateSpecV1.cs b/src/KubeClient/Models/generated/PodTemplateSpecV1.cs
index 2ea7813b..e6f577bf 100644
--- a/src/KubeClient/Models/generated/PodTemplateSpecV1.cs
+++ b/src/KubeClient/Models/generated/PodTemplateSpecV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class PodTemplateSpecV1
{
///
- /// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
+ /// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
///
[YamlMember(Alias = "metadata")]
[JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
public ObjectMetaV1 Metadata { get; set; }
///
- /// Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/PodTemplateV1.cs b/src/KubeClient/Models/generated/PodTemplateV1.cs
index 3daff4df..5579a12e 100644
--- a/src/KubeClient/Models/generated/PodTemplateV1.cs
+++ b/src/KubeClient/Models/generated/PodTemplateV1.cs
@@ -23,7 +23,7 @@ namespace KubeClient.Models
public partial class PodTemplateV1 : KubeResourceV1
{
///
- /// Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "template")]
[JsonProperty("template", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/PodV1.cs b/src/KubeClient/Models/generated/PodV1.cs
index 33158aca..3bbdbf82 100644
--- a/src/KubeClient/Models/generated/PodV1.cs
+++ b/src/KubeClient/Models/generated/PodV1.cs
@@ -22,24 +22,22 @@ namespace KubeClient.Models
[KubeApi(KubeAction.DeleteCollection, "api/v1/namespaces/{namespace}/pods")]
[KubeApi(KubeAction.Get, "api/v1/namespaces/{namespace}/pods/{name}/status")]
[KubeApi(KubeAction.Watch, "api/v1/watch/namespaces/{namespace}/pods/{name}")]
- [KubeApi(KubeAction.Connect, "api/v1/namespaces/{namespace}/pods/{name}/exec")]
[KubeApi(KubeAction.Patch, "api/v1/namespaces/{namespace}/pods/{name}/status")]
- [KubeApi(KubeAction.Connect, "api/v1/namespaces/{namespace}/pods/{name}/proxy")]
[KubeApi(KubeAction.Update, "api/v1/namespaces/{namespace}/pods/{name}/status")]
- [KubeApi(KubeAction.Connect, "api/v1/namespaces/{namespace}/pods/{name}/attach")]
- [KubeApi(KubeAction.Connect, "api/v1/namespaces/{namespace}/pods/{name}/portforward")]
- [KubeApi(KubeAction.Connect, "api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}")]
+ [KubeApi(KubeAction.Get, "api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers")]
+ [KubeApi(KubeAction.Patch, "api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers")]
+ [KubeApi(KubeAction.Update, "api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers")]
public partial class PodV1 : KubeResourceV1
{
///
- /// Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
public PodSpecV1 Spec { get; set; }
///
- /// Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/PodsMetricSourceV2.cs b/src/KubeClient/Models/generated/PodsMetricSourceV2.cs
new file mode 100644
index 00000000..d8361076
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodsMetricSourceV2.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
+ ///
+ public partial class PodsMetricSourceV2
+ {
+ ///
+ /// metric identifies the target metric by name and selector
+ ///
+ [YamlMember(Alias = "metric")]
+ [JsonProperty("metric", NullValueHandling = NullValueHandling.Include)]
+ public MetricIdentifierV2 Metric { get; set; }
+
+ ///
+ /// target specifies the target value for the given metric
+ ///
+ [YamlMember(Alias = "target")]
+ [JsonProperty("target", NullValueHandling = NullValueHandling.Include)]
+ public MetricTargetV2 Target { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PodsMetricStatusV2.cs b/src/KubeClient/Models/generated/PodsMetricStatusV2.cs
new file mode 100644
index 00000000..bbb26819
--- /dev/null
+++ b/src/KubeClient/Models/generated/PodsMetricStatusV2.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).
+ ///
+ public partial class PodsMetricStatusV2
+ {
+ ///
+ /// metric identifies the target metric by name and selector
+ ///
+ [YamlMember(Alias = "metric")]
+ [JsonProperty("metric", NullValueHandling = NullValueHandling.Include)]
+ public MetricIdentifierV2 Metric { get; set; }
+
+ ///
+ /// current contains the current value for the given metric
+ ///
+ [YamlMember(Alias = "current")]
+ [JsonProperty("current", NullValueHandling = NullValueHandling.Include)]
+ public MetricValueStatusV2 Current { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PolicyRuleV1.cs b/src/KubeClient/Models/generated/PolicyRuleV1.cs
index 280672a5..97d56f94 100644
--- a/src/KubeClient/Models/generated/PolicyRuleV1.cs
+++ b/src/KubeClient/Models/generated/PolicyRuleV1.cs
@@ -11,7 +11,7 @@ namespace KubeClient.Models
public partial class PolicyRuleV1
{
///
- /// APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.
+ /// APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups.
///
[YamlMember(Alias = "apiGroups")]
[JsonProperty("apiGroups", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -47,7 +47,7 @@ public partial class PolicyRuleV1
public bool ShouldSerializeResourceNames() => ResourceNames.Count > 0;
///
- /// Resources is a list of resources this rule applies to. ResourceAll represents all resources.
+ /// Resources is a list of resources this rule applies to. '*' represents all resources.
///
[YamlMember(Alias = "resources")]
[JsonProperty("resources", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -59,7 +59,7 @@ public partial class PolicyRuleV1
public bool ShouldSerializeResources() => Resources.Count > 0;
///
- /// Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.
+ /// Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
///
[YamlMember(Alias = "verbs")]
[JsonProperty("verbs", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
diff --git a/src/KubeClient/Models/generated/PolicyRulesWithSubjectsV1.cs b/src/KubeClient/Models/generated/PolicyRulesWithSubjectsV1.cs
new file mode 100644
index 00000000..f37447a6
--- /dev/null
+++ b/src/KubeClient/Models/generated/PolicyRulesWithSubjectsV1.cs
@@ -0,0 +1,44 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.
+ ///
+ public partial class PolicyRulesWithSubjectsV1
+ {
+ ///
+ /// `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.
+ ///
+ [YamlMember(Alias = "nonResourceRules")]
+ [JsonProperty("nonResourceRules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List NonResourceRules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeNonResourceRules() => NonResourceRules.Count > 0;
+
+ ///
+ /// `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.
+ ///
+ [YamlMember(Alias = "resourceRules")]
+ [JsonProperty("resourceRules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ResourceRules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResourceRules() => ResourceRules.Count > 0;
+
+ ///
+ /// subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.
+ ///
+ [YamlMember(Alias = "subjects")]
+ [JsonProperty("subjects", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Subjects { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/PolicyRulesWithSubjectsV1Beta3.cs b/src/KubeClient/Models/generated/PolicyRulesWithSubjectsV1Beta3.cs
new file mode 100644
index 00000000..f48df82f
--- /dev/null
+++ b/src/KubeClient/Models/generated/PolicyRulesWithSubjectsV1Beta3.cs
@@ -0,0 +1,44 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.
+ ///
+ public partial class PolicyRulesWithSubjectsV1Beta3
+ {
+ ///
+ /// `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.
+ ///
+ [YamlMember(Alias = "nonResourceRules")]
+ [JsonProperty("nonResourceRules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List NonResourceRules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeNonResourceRules() => NonResourceRules.Count > 0;
+
+ ///
+ /// `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.
+ ///
+ [YamlMember(Alias = "resourceRules")]
+ [JsonProperty("resourceRules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ResourceRules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResourceRules() => ResourceRules.Count > 0;
+
+ ///
+ /// subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.
+ ///
+ [YamlMember(Alias = "subjects")]
+ [JsonProperty("subjects", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Subjects { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/PortStatusV1.cs b/src/KubeClient/Models/generated/PortStatusV1.cs
new file mode 100644
index 00000000..0af5b56e
--- /dev/null
+++ b/src/KubeClient/Models/generated/PortStatusV1.cs
@@ -0,0 +1,37 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// No description provided.
+ ///
+ public partial class PortStatusV1
+ {
+ ///
+ /// Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP"
+ ///
+ [YamlMember(Alias = "protocol")]
+ [JsonProperty("protocol", NullValueHandling = NullValueHandling.Include)]
+ public string Protocol { get; set; }
+
+ ///
+ /// Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use
+ /// CamelCase names
+ /// - cloud provider specific error values must have names that comply with the
+ /// format foo.example.com/CamelCase.
+ ///
+ [YamlMember(Alias = "error")]
+ [JsonProperty("error", NullValueHandling = NullValueHandling.Ignore)]
+ public string Error { get; set; }
+
+ ///
+ /// Port is the port number of the service port of which status is recorded here
+ ///
+ [YamlMember(Alias = "port")]
+ [JsonProperty("port", NullValueHandling = NullValueHandling.Include)]
+ public int Port { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PortworxVolumeSourceV1.cs b/src/KubeClient/Models/generated/PortworxVolumeSourceV1.cs
index 97dc2a9c..77a01a7c 100644
--- a/src/KubeClient/Models/generated/PortworxVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/PortworxVolumeSourceV1.cs
@@ -11,21 +11,21 @@ namespace KubeClient.Models
public partial class PortworxVolumeSourceV1
{
///
- /// VolumeID uniquely identifies a Portworx volume
+ /// volumeID uniquely identifies a Portworx volume
///
[YamlMember(Alias = "volumeID")]
[JsonProperty("volumeID", NullValueHandling = NullValueHandling.Include)]
public string VolumeID { get; set; }
///
- /// FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
+ /// fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
+ /// readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/PreconditionsV1.cs b/src/KubeClient/Models/generated/PreconditionsV1.cs
index c1d312a4..74cbf79f 100644
--- a/src/KubeClient/Models/generated/PreconditionsV1.cs
+++ b/src/KubeClient/Models/generated/PreconditionsV1.cs
@@ -16,5 +16,12 @@ public partial class PreconditionsV1
[YamlMember(Alias = "uid")]
[JsonProperty("uid", NullValueHandling = NullValueHandling.Ignore)]
public string Uid { get; set; }
+
+ ///
+ /// Specifies the target ResourceVersion
+ ///
+ [YamlMember(Alias = "resourceVersion")]
+ [JsonProperty("resourceVersion", NullValueHandling = NullValueHandling.Ignore)]
+ public string ResourceVersion { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/PriorityClassListV1.cs b/src/KubeClient/Models/generated/PriorityClassListV1.cs
new file mode 100644
index 00000000..e5ce7624
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityClassListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityClassList is a collection of priority classes.
+ ///
+ [KubeListItem("PriorityClass", "scheduling.k8s.io/v1")]
+ [KubeObject("PriorityClassList", "scheduling.k8s.io/v1")]
+ public partial class PriorityClassListV1 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of PriorityClasses
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/PriorityClassV1.cs b/src/KubeClient/Models/generated/PriorityClassV1.cs
new file mode 100644
index 00000000..7b3c5cc4
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityClassV1.cs
@@ -0,0 +1,51 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.
+ ///
+ [KubeObject("PriorityClass", "scheduling.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/scheduling.k8s.io/v1/priorityclasses")]
+ [KubeApi(KubeAction.Create, "apis/scheduling.k8s.io/v1/priorityclasses")]
+ [KubeApi(KubeAction.Get, "apis/scheduling.k8s.io/v1/priorityclasses/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/scheduling.k8s.io/v1/priorityclasses/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/scheduling.k8s.io/v1/priorityclasses/{name}")]
+ [KubeApi(KubeAction.Update, "apis/scheduling.k8s.io/v1/priorityclasses/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/scheduling.k8s.io/v1/watch/priorityclasses")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/scheduling.k8s.io/v1/priorityclasses")]
+ [KubeApi(KubeAction.Watch, "apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}")]
+ public partial class PriorityClassV1 : KubeResourceV1
+ {
+ ///
+ /// value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.
+ ///
+ [YamlMember(Alias = "value")]
+ [JsonProperty("value", NullValueHandling = NullValueHandling.Include)]
+ public int Value { get; set; }
+
+ ///
+ /// description is an arbitrary string that usually provides guidelines on when this priority class should be used.
+ ///
+ [YamlMember(Alias = "description")]
+ [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
+ public string Description { get; set; }
+
+ ///
+ /// globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.
+ ///
+ [YamlMember(Alias = "globalDefault")]
+ [JsonProperty("globalDefault", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? GlobalDefault { get; set; }
+
+ ///
+ /// preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.
+ ///
+ [YamlMember(Alias = "preemptionPolicy")]
+ [JsonProperty("preemptionPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string PreemptionPolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PriorityLevelConfigurationConditionV1.cs b/src/KubeClient/Models/generated/PriorityLevelConfigurationConditionV1.cs
new file mode 100644
index 00000000..3b2c79c8
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityLevelConfigurationConditionV1.cs
@@ -0,0 +1,48 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityLevelConfigurationCondition defines the condition of priority level.
+ ///
+ public partial class PriorityLevelConfigurationConditionV1
+ {
+ ///
+ /// `lastTransitionTime` is the last time the condition transitioned from one status to another.
+ ///
+ [YamlMember(Alias = "lastTransitionTime")]
+ [JsonProperty("lastTransitionTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastTransitionTime { get; set; }
+
+ ///
+ /// `message` is a human-readable message indicating details about last transition.
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
+ public string Message { get; set; }
+
+ ///
+ /// `type` is the type of the condition. Required.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)]
+ public string Type { get; set; }
+
+ ///
+ /// `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reason { get; set; }
+
+ ///
+ /// `status` is the status of the condition. Can be True, False, Unknown. Required.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PriorityLevelConfigurationConditionV1Beta3.cs b/src/KubeClient/Models/generated/PriorityLevelConfigurationConditionV1Beta3.cs
new file mode 100644
index 00000000..17390372
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityLevelConfigurationConditionV1Beta3.cs
@@ -0,0 +1,48 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityLevelConfigurationCondition defines the condition of priority level.
+ ///
+ public partial class PriorityLevelConfigurationConditionV1Beta3
+ {
+ ///
+ /// `lastTransitionTime` is the last time the condition transitioned from one status to another.
+ ///
+ [YamlMember(Alias = "lastTransitionTime")]
+ [JsonProperty("lastTransitionTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastTransitionTime { get; set; }
+
+ ///
+ /// `message` is a human-readable message indicating details about last transition.
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
+ public string Message { get; set; }
+
+ ///
+ /// `type` is the type of the condition. Required.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)]
+ public string Type { get; set; }
+
+ ///
+ /// `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reason { get; set; }
+
+ ///
+ /// `status` is the status of the condition. Can be True, False, Unknown. Required.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PriorityLevelConfigurationListV1.cs b/src/KubeClient/Models/generated/PriorityLevelConfigurationListV1.cs
new file mode 100644
index 00000000..2dcd4a7a
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityLevelConfigurationListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.
+ ///
+ [KubeListItem("PriorityLevelConfiguration", "flowcontrol.apiserver.k8s.io/v1")]
+ [KubeObject("PriorityLevelConfigurationList", "flowcontrol.apiserver.k8s.io/v1")]
+ public partial class PriorityLevelConfigurationListV1 : KubeResourceListV1
+ {
+ ///
+ /// `items` is a list of request-priorities.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/PriorityLevelConfigurationListV1Beta3.cs b/src/KubeClient/Models/generated/PriorityLevelConfigurationListV1Beta3.cs
new file mode 100644
index 00000000..47352e3d
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityLevelConfigurationListV1Beta3.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.
+ ///
+ [KubeListItem("PriorityLevelConfiguration", "flowcontrol.apiserver.k8s.io/v1beta3")]
+ [KubeObject("PriorityLevelConfigurationList", "flowcontrol.apiserver.k8s.io/v1beta3")]
+ public partial class PriorityLevelConfigurationListV1Beta3 : KubeResourceListV1
+ {
+ ///
+ /// `items` is a list of request-priorities.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/PriorityLevelConfigurationReferenceV1.cs b/src/KubeClient/Models/generated/PriorityLevelConfigurationReferenceV1.cs
new file mode 100644
index 00000000..ed8663a8
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityLevelConfigurationReferenceV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityLevelConfigurationReference contains information that points to the "request-priority" being used.
+ ///
+ public partial class PriorityLevelConfigurationReferenceV1
+ {
+ ///
+ /// `name` is the name of the priority level configuration being referenced Required.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PriorityLevelConfigurationReferenceV1Beta3.cs b/src/KubeClient/Models/generated/PriorityLevelConfigurationReferenceV1Beta3.cs
new file mode 100644
index 00000000..d398c6b7
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityLevelConfigurationReferenceV1Beta3.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityLevelConfigurationReference contains information that points to the "request-priority" being used.
+ ///
+ public partial class PriorityLevelConfigurationReferenceV1Beta3
+ {
+ ///
+ /// `name` is the name of the priority level configuration being referenced Required.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PriorityLevelConfigurationSpecV1.cs b/src/KubeClient/Models/generated/PriorityLevelConfigurationSpecV1.cs
new file mode 100644
index 00000000..18956f1e
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityLevelConfigurationSpecV1.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityLevelConfigurationSpec specifies the configuration of a priority level.
+ ///
+ public partial class PriorityLevelConfigurationSpecV1
+ {
+ ///
+ /// `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`.
+ ///
+ [YamlMember(Alias = "limited")]
+ [JsonProperty("limited", NullValueHandling = NullValueHandling.Ignore)]
+ public LimitedPriorityLevelConfigurationV1 Limited { get; set; }
+
+ ///
+ /// `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// `exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `"Limited"`. This field MAY be non-empty if `type` is `"Exempt"`. If empty and `type` is `"Exempt"` then the default values for `ExemptPriorityLevelConfiguration` apply.
+ ///
+ [YamlMember(Alias = "exempt")]
+ [JsonProperty("exempt", NullValueHandling = NullValueHandling.Ignore)]
+ public ExemptPriorityLevelConfigurationV1 Exempt { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PriorityLevelConfigurationSpecV1Beta3.cs b/src/KubeClient/Models/generated/PriorityLevelConfigurationSpecV1Beta3.cs
new file mode 100644
index 00000000..6c7958ae
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityLevelConfigurationSpecV1Beta3.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityLevelConfigurationSpec specifies the configuration of a priority level.
+ ///
+ public partial class PriorityLevelConfigurationSpecV1Beta3
+ {
+ ///
+ /// `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`.
+ ///
+ [YamlMember(Alias = "limited")]
+ [JsonProperty("limited", NullValueHandling = NullValueHandling.Ignore)]
+ public LimitedPriorityLevelConfigurationV1Beta3 Limited { get; set; }
+
+ ///
+ /// `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// `exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `"Limited"`. This field MAY be non-empty if `type` is `"Exempt"`. If empty and `type` is `"Exempt"` then the default values for `ExemptPriorityLevelConfiguration` apply.
+ ///
+ [YamlMember(Alias = "exempt")]
+ [JsonProperty("exempt", NullValueHandling = NullValueHandling.Ignore)]
+ public ExemptPriorityLevelConfigurationV1Beta3 Exempt { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PriorityLevelConfigurationStatusV1.cs b/src/KubeClient/Models/generated/PriorityLevelConfigurationStatusV1.cs
new file mode 100644
index 00000000..f0345b3d
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityLevelConfigurationStatusV1.cs
@@ -0,0 +1,26 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityLevelConfigurationStatus represents the current state of a "request-priority".
+ ///
+ public partial class PriorityLevelConfigurationStatusV1
+ {
+ ///
+ /// `conditions` is the current state of "request-priority".
+ ///
+ [MergeStrategy(Key = "type")]
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/PriorityLevelConfigurationStatusV1Beta3.cs b/src/KubeClient/Models/generated/PriorityLevelConfigurationStatusV1Beta3.cs
new file mode 100644
index 00000000..232df542
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityLevelConfigurationStatusV1Beta3.cs
@@ -0,0 +1,26 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityLevelConfigurationStatus represents the current state of a "request-priority".
+ ///
+ public partial class PriorityLevelConfigurationStatusV1Beta3
+ {
+ ///
+ /// `conditions` is the current state of "request-priority".
+ ///
+ [MergeStrategy(Key = "type")]
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/PriorityLevelConfigurationV1.cs b/src/KubeClient/Models/generated/PriorityLevelConfigurationV1.cs
new file mode 100644
index 00000000..6a2399f5
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityLevelConfigurationV1.cs
@@ -0,0 +1,40 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityLevelConfiguration represents the configuration of a priority level.
+ ///
+ [KubeObject("PriorityLevelConfiguration", "flowcontrol.apiserver.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations")]
+ [KubeApi(KubeAction.Create, "apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations")]
+ [KubeApi(KubeAction.Get, "apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}")]
+ [KubeApi(KubeAction.Update, "apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations")]
+ [KubeApi(KubeAction.Get, "apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status")]
+ public partial class PriorityLevelConfigurationV1 : KubeResourceV1
+ {
+ ///
+ /// `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public PriorityLevelConfigurationSpecV1 Spec { get; set; }
+
+ ///
+ /// `status` is the current status of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public PriorityLevelConfigurationStatusV1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/PriorityLevelConfigurationV1Beta3.cs b/src/KubeClient/Models/generated/PriorityLevelConfigurationV1Beta3.cs
new file mode 100644
index 00000000..753b9fc0
--- /dev/null
+++ b/src/KubeClient/Models/generated/PriorityLevelConfigurationV1Beta3.cs
@@ -0,0 +1,40 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// PriorityLevelConfiguration represents the configuration of a priority level.
+ ///
+ [KubeObject("PriorityLevelConfiguration", "flowcontrol.apiserver.k8s.io/v1beta3")]
+ [KubeApi(KubeAction.List, "apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations")]
+ [KubeApi(KubeAction.Create, "apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations")]
+ [KubeApi(KubeAction.Get, "apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}")]
+ [KubeApi(KubeAction.Update, "apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations")]
+ [KubeApi(KubeAction.Get, "apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status")]
+ public partial class PriorityLevelConfigurationV1Beta3 : KubeResourceV1
+ {
+ ///
+ /// `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public PriorityLevelConfigurationSpecV1Beta3 Spec { get; set; }
+
+ ///
+ /// `status` is the current status of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public PriorityLevelConfigurationStatusV1Beta3 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ProbeV1.cs b/src/KubeClient/Models/generated/ProbeV1.cs
index 7131017c..78e44267 100644
--- a/src/KubeClient/Models/generated/ProbeV1.cs
+++ b/src/KubeClient/Models/generated/ProbeV1.cs
@@ -11,12 +11,19 @@ namespace KubeClient.Models
public partial class ProbeV1
{
///
- /// One and only one of the following should be specified. Exec specifies the action to take.
+ /// Exec specifies the action to take.
///
[YamlMember(Alias = "exec")]
[JsonProperty("exec", NullValueHandling = NullValueHandling.Ignore)]
public ExecActionV1 Exec { get; set; }
+ ///
+ /// GRPC specifies an action involving a GRPC port.
+ ///
+ [YamlMember(Alias = "grpc")]
+ [JsonProperty("grpc", NullValueHandling = NullValueHandling.Ignore)]
+ public GRPCActionV1 Grpc { get; set; }
+
///
/// Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
///
@@ -25,7 +32,7 @@ public partial class ProbeV1
public int? FailureThreshold { get; set; }
///
- /// Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.
+ /// Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
///
[YamlMember(Alias = "successThreshold")]
[JsonProperty("successThreshold", NullValueHandling = NullValueHandling.Ignore)]
@@ -45,6 +52,13 @@ public partial class ProbeV1
[JsonProperty("periodSeconds", NullValueHandling = NullValueHandling.Ignore)]
public int? PeriodSeconds { get; set; }
+ ///
+ /// Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
+ ///
+ [YamlMember(Alias = "terminationGracePeriodSeconds")]
+ [JsonProperty("terminationGracePeriodSeconds", NullValueHandling = NullValueHandling.Ignore)]
+ public long? TerminationGracePeriodSeconds { get; set; }
+
///
/// Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
///
@@ -60,7 +74,7 @@ public partial class ProbeV1
public HTTPGetActionV1 HttpGet { get; set; }
///
- /// TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported
+ /// TCPSocket specifies an action involving a TCP port.
///
[YamlMember(Alias = "tcpSocket")]
[JsonProperty("tcpSocket", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ProjectedVolumeSourceV1.cs b/src/KubeClient/Models/generated/ProjectedVolumeSourceV1.cs
index 8287b63d..0d3ab9f4 100644
--- a/src/KubeClient/Models/generated/ProjectedVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/ProjectedVolumeSourceV1.cs
@@ -11,17 +11,22 @@ namespace KubeClient.Models
public partial class ProjectedVolumeSourceV1
{
///
- /// Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
+ /// defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
///
[YamlMember(Alias = "defaultMode")]
[JsonProperty("defaultMode", NullValueHandling = NullValueHandling.Ignore)]
public int? DefaultMode { get; set; }
///
- /// list of volume projections
+ /// sources is the list of volume projections. Each entry in this list handles one source.
///
[YamlMember(Alias = "sources")]
[JsonProperty("sources", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public List Sources { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeSources() => Sources.Count > 0;
}
}
diff --git a/src/KubeClient/Models/generated/QueuingConfigurationV1.cs b/src/KubeClient/Models/generated/QueuingConfigurationV1.cs
new file mode 100644
index 00000000..39c154cb
--- /dev/null
+++ b/src/KubeClient/Models/generated/QueuingConfigurationV1.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// QueuingConfiguration holds the configuration parameters for queuing
+ ///
+ public partial class QueuingConfigurationV1
+ {
+ ///
+ /// `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.
+ ///
+ [YamlMember(Alias = "handSize")]
+ [JsonProperty("handSize", NullValueHandling = NullValueHandling.Ignore)]
+ public int? HandSize { get; set; }
+
+ ///
+ /// `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.
+ ///
+ [YamlMember(Alias = "queues")]
+ [JsonProperty("queues", NullValueHandling = NullValueHandling.Ignore)]
+ public int? Queues { get; set; }
+
+ ///
+ /// `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.
+ ///
+ [YamlMember(Alias = "queueLengthLimit")]
+ [JsonProperty("queueLengthLimit", NullValueHandling = NullValueHandling.Ignore)]
+ public int? QueueLengthLimit { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/QueuingConfigurationV1Beta3.cs b/src/KubeClient/Models/generated/QueuingConfigurationV1Beta3.cs
new file mode 100644
index 00000000..8e519264
--- /dev/null
+++ b/src/KubeClient/Models/generated/QueuingConfigurationV1Beta3.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// QueuingConfiguration holds the configuration parameters for queuing
+ ///
+ public partial class QueuingConfigurationV1Beta3
+ {
+ ///
+ /// `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.
+ ///
+ [YamlMember(Alias = "handSize")]
+ [JsonProperty("handSize", NullValueHandling = NullValueHandling.Ignore)]
+ public int? HandSize { get; set; }
+
+ ///
+ /// `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.
+ ///
+ [YamlMember(Alias = "queues")]
+ [JsonProperty("queues", NullValueHandling = NullValueHandling.Ignore)]
+ public int? Queues { get; set; }
+
+ ///
+ /// `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.
+ ///
+ [YamlMember(Alias = "queueLengthLimit")]
+ [JsonProperty("queueLengthLimit", NullValueHandling = NullValueHandling.Ignore)]
+ public int? QueueLengthLimit { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/QuobyteVolumeSourceV1.cs b/src/KubeClient/Models/generated/QuobyteVolumeSourceV1.cs
index 6cdb20ee..3b1cb6d9 100644
--- a/src/KubeClient/Models/generated/QuobyteVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/QuobyteVolumeSourceV1.cs
@@ -11,35 +11,42 @@ namespace KubeClient.Models
public partial class QuobyteVolumeSourceV1
{
///
- /// Volume is a string that references an already created Quobyte volume by name.
+ /// volume is a string that references an already created Quobyte volume by name.
///
[YamlMember(Alias = "volume")]
[JsonProperty("volume", NullValueHandling = NullValueHandling.Include)]
public string Volume { get; set; }
///
- /// Group to map volume access to Default is no group
+ /// group to map volume access to Default is no group
///
[YamlMember(Alias = "group")]
[JsonProperty("group", NullValueHandling = NullValueHandling.Ignore)]
public string Group { get; set; }
///
- /// User to map volume access to Defaults to serivceaccount user
+ /// user to map volume access to Defaults to serivceaccount user
///
[YamlMember(Alias = "user")]
[JsonProperty("user", NullValueHandling = NullValueHandling.Ignore)]
public string User { get; set; }
///
- /// ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.
+ /// tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin
+ ///
+ [YamlMember(Alias = "tenant")]
+ [JsonProperty("tenant", NullValueHandling = NullValueHandling.Ignore)]
+ public string Tenant { get; set; }
+
+ ///
+ /// readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
public bool? ReadOnly { get; set; }
///
- /// Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes
+ /// registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes
///
[YamlMember(Alias = "registry")]
[JsonProperty("registry", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/RBDPersistentVolumeSourceV1.cs b/src/KubeClient/Models/generated/RBDPersistentVolumeSourceV1.cs
index 3f4b7efd..52a5db3f 100644
--- a/src/KubeClient/Models/generated/RBDPersistentVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/RBDPersistentVolumeSourceV1.cs
@@ -11,56 +11,56 @@ namespace KubeClient.Models
public partial class RBDPersistentVolumeSourceV1
{
///
- /// Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
+ /// fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "image")]
[JsonProperty("image", NullValueHandling = NullValueHandling.Include)]
public string Image { get; set; }
///
- /// SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Ignore)]
public SecretReferenceV1 SecretRef { get; set; }
///
- /// Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "keyring")]
[JsonProperty("keyring", NullValueHandling = NullValueHandling.Ignore)]
public string Keyring { get; set; }
///
- /// The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "pool")]
[JsonProperty("pool", NullValueHandling = NullValueHandling.Ignore)]
public string Pool { get; set; }
///
- /// The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "user")]
[JsonProperty("user", NullValueHandling = NullValueHandling.Ignore)]
public string User { get; set; }
///
- /// A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "monitors")]
[JsonProperty("monitors", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public List Monitors { get; } = new List();
///
- /// ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/RBDVolumeSourceV1.cs b/src/KubeClient/Models/generated/RBDVolumeSourceV1.cs
index 600f80cc..b5d74a69 100644
--- a/src/KubeClient/Models/generated/RBDVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/RBDVolumeSourceV1.cs
@@ -11,56 +11,56 @@ namespace KubeClient.Models
public partial class RBDVolumeSourceV1
{
///
- /// Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
+ /// fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "image")]
[JsonProperty("image", NullValueHandling = NullValueHandling.Include)]
public string Image { get; set; }
///
- /// SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Ignore)]
public LocalObjectReferenceV1 SecretRef { get; set; }
///
- /// Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "keyring")]
[JsonProperty("keyring", NullValueHandling = NullValueHandling.Ignore)]
public string Keyring { get; set; }
///
- /// The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "pool")]
[JsonProperty("pool", NullValueHandling = NullValueHandling.Ignore)]
public string Pool { get; set; }
///
- /// The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "user")]
[JsonProperty("user", NullValueHandling = NullValueHandling.Ignore)]
public string User { get; set; }
///
- /// A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "monitors")]
[JsonProperty("monitors", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public List Monitors { get; } = new List();
///
- /// ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it
+ /// readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/RawExtensionRuntime.cs b/src/KubeClient/Models/generated/RawExtensionRuntime.cs
index 784f28df..db939cfe 100644
--- a/src/KubeClient/Models/generated/RawExtensionRuntime.cs
+++ b/src/KubeClient/Models/generated/RawExtensionRuntime.cs
@@ -10,38 +10,42 @@ namespace KubeClient.Models
///
/// To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.
///
- /// // Internal package: type MyAPIObject struct {
- /// runtime.TypeMeta `json:",inline"`
- /// MyPlugin runtime.Object `json:"myPlugin"`
- /// } type PluginA struct {
- /// AOption string `json:"aOption"`
- /// }
- ///
- /// // External package: type MyAPIObject struct {
- /// runtime.TypeMeta `json:",inline"`
- /// MyPlugin runtime.RawExtension `json:"myPlugin"`
- /// } type PluginA struct {
- /// AOption string `json:"aOption"`
- /// }
- ///
- /// // On the wire, the JSON will look something like this: {
- /// "kind":"MyAPIObject",
- /// "apiVersion":"v1",
- /// "myPlugin": {
- /// "kind":"PluginA",
- /// "aOption":"foo",
- /// },
- /// }
+ /// // Internal package:
+ ///
+ /// type MyAPIObject struct {
+ /// runtime.TypeMeta `json:",inline"`
+ /// MyPlugin runtime.Object `json:"myPlugin"`
+ /// }
+ ///
+ /// type PluginA struct {
+ /// AOption string `json:"aOption"`
+ /// }
+ ///
+ /// // External package:
+ ///
+ /// type MyAPIObject struct {
+ /// runtime.TypeMeta `json:",inline"`
+ /// MyPlugin runtime.RawExtension `json:"myPlugin"`
+ /// }
+ ///
+ /// type PluginA struct {
+ /// AOption string `json:"aOption"`
+ /// }
+ ///
+ /// // On the wire, the JSON will look something like this:
+ ///
+ /// {
+ /// "kind":"MyAPIObject",
+ /// "apiVersion":"v1",
+ /// "myPlugin": {
+ /// "kind":"PluginA",
+ /// "aOption":"foo",
+ /// },
+ /// }
///
/// So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)
///
public partial class RawExtensionRuntime
{
- ///
- /// Raw is the underlying serialization of this object.
- ///
- [YamlMember(Alias = "Raw")]
- [JsonProperty("Raw", NullValueHandling = NullValueHandling.Include)]
- public string Raw { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/ReplicaSetStatusV1.cs b/src/KubeClient/Models/generated/ReplicaSetStatusV1.cs
index 4c090e20..98446285 100644
--- a/src/KubeClient/Models/generated/ReplicaSetStatusV1.cs
+++ b/src/KubeClient/Models/generated/ReplicaSetStatusV1.cs
@@ -45,14 +45,14 @@ public partial class ReplicaSetStatusV1
public int? FullyLabeledReplicas { get; set; }
///
- /// The number of ready replicas for this replica set.
+ /// readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.
///
[YamlMember(Alias = "readyReplicas")]
[JsonProperty("readyReplicas", NullValueHandling = NullValueHandling.Ignore)]
public int? ReadyReplicas { get; set; }
///
- /// Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
+ /// Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
///
[YamlMember(Alias = "replicas")]
[JsonProperty("replicas", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/ReplicaSetV1.cs b/src/KubeClient/Models/generated/ReplicaSetV1.cs
index 7c2b4574..157f1cb4 100644
--- a/src/KubeClient/Models/generated/ReplicaSetV1.cs
+++ b/src/KubeClient/Models/generated/ReplicaSetV1.cs
@@ -26,14 +26,14 @@ namespace KubeClient.Models
public partial class ReplicaSetV1 : KubeResourceV1
{
///
- /// Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
public ReplicaSetSpecV1 Spec { get; set; }
///
- /// Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ReplicationControllerSpecV1.cs b/src/KubeClient/Models/generated/ReplicationControllerSpecV1.cs
index 6c4c0468..52b503be 100644
--- a/src/KubeClient/Models/generated/ReplicationControllerSpecV1.cs
+++ b/src/KubeClient/Models/generated/ReplicationControllerSpecV1.cs
@@ -11,7 +11,7 @@ namespace KubeClient.Models
public partial class ReplicationControllerSpecV1
{
///
- /// Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
+ /// Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
///
[YamlMember(Alias = "template")]
[JsonProperty("template", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ReplicationControllerStatusV1.cs b/src/KubeClient/Models/generated/ReplicationControllerStatusV1.cs
index 7ae66f47..a3865deb 100644
--- a/src/KubeClient/Models/generated/ReplicationControllerStatusV1.cs
+++ b/src/KubeClient/Models/generated/ReplicationControllerStatusV1.cs
@@ -52,7 +52,7 @@ public partial class ReplicationControllerStatusV1
public int? ReadyReplicas { get; set; }
///
- /// Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
+ /// Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
///
[YamlMember(Alias = "replicas")]
[JsonProperty("replicas", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/ReplicationControllerV1.cs b/src/KubeClient/Models/generated/ReplicationControllerV1.cs
index 53ecf415..8e017aeb 100644
--- a/src/KubeClient/Models/generated/ReplicationControllerV1.cs
+++ b/src/KubeClient/Models/generated/ReplicationControllerV1.cs
@@ -26,14 +26,14 @@ namespace KubeClient.Models
public partial class ReplicationControllerV1 : KubeResourceV1
{
///
- /// Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
public ReplicationControllerSpecV1 Spec { get; set; }
///
- /// Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ResourceAttributesV1.cs b/src/KubeClient/Models/generated/ResourceAttributesV1.cs
index 3c52d2ca..bccd1d01 100644
--- a/src/KubeClient/Models/generated/ResourceAttributesV1.cs
+++ b/src/KubeClient/Models/generated/ResourceAttributesV1.cs
@@ -58,5 +58,23 @@ public partial class ResourceAttributesV1
[YamlMember(Alias = "group")]
[JsonProperty("group", NullValueHandling = NullValueHandling.Ignore)]
public string Group { get; set; }
+
+ ///
+ /// fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.
+ ///
+ /// This field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default).
+ ///
+ [YamlMember(Alias = "fieldSelector")]
+ [JsonProperty("fieldSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public FieldSelectorAttributesV1 FieldSelector { get; set; }
+
+ ///
+ /// labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.
+ ///
+ /// This field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default).
+ ///
+ [YamlMember(Alias = "labelSelector")]
+ [JsonProperty("labelSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorAttributesV1 LabelSelector { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/ResourceClaimConsumerReferenceV1Alpha3.cs b/src/KubeClient/Models/generated/ResourceClaimConsumerReferenceV1Alpha3.cs
new file mode 100644
index 00000000..0897fd87
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceClaimConsumerReferenceV1Alpha3.cs
@@ -0,0 +1,41 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
+ ///
+ public partial class ResourceClaimConsumerReferenceV1Alpha3
+ {
+ ///
+ /// UID identifies exactly one incarnation of the resource.
+ ///
+ [YamlMember(Alias = "uid")]
+ [JsonProperty("uid", NullValueHandling = NullValueHandling.Include)]
+ public string Uid { get; set; }
+
+ ///
+ /// Name is the name of resource being referenced.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// Resource is the type of resource being referenced, for example "pods".
+ ///
+ [YamlMember(Alias = "resource")]
+ [JsonProperty("resource", NullValueHandling = NullValueHandling.Include)]
+ public string Resource { get; set; }
+
+ ///
+ /// APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
+ ///
+ [YamlMember(Alias = "apiGroup")]
+ [JsonProperty("apiGroup", NullValueHandling = NullValueHandling.Ignore)]
+ public string ApiGroup { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceClaimListV1Alpha3.cs b/src/KubeClient/Models/generated/ResourceClaimListV1Alpha3.cs
new file mode 100644
index 00000000..af5cc090
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceClaimListV1Alpha3.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceClaimList is a collection of claims.
+ ///
+ [KubeListItem("ResourceClaim", "resource.k8s.io/v1alpha3")]
+ [KubeObject("ResourceClaimList", "resource.k8s.io/v1alpha3")]
+ public partial class ResourceClaimListV1Alpha3 : KubeResourceListV1
+ {
+ ///
+ /// Items is the list of resource claims.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceClaimSchedulingStatusV1Alpha3.cs b/src/KubeClient/Models/generated/ResourceClaimSchedulingStatusV1Alpha3.cs
new file mode 100644
index 00000000..fcf0d3bf
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceClaimSchedulingStatusV1Alpha3.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
+ ///
+ public partial class ResourceClaimSchedulingStatusV1Alpha3
+ {
+ ///
+ /// Name matches the pod.spec.resourceClaims[*].Name field.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
+ ///
+ /// The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
+ ///
+ [YamlMember(Alias = "unsuitableNodes")]
+ [JsonProperty("unsuitableNodes", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List UnsuitableNodes { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeUnsuitableNodes() => UnsuitableNodes.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceClaimSpecV1Alpha3.cs b/src/KubeClient/Models/generated/ResourceClaimSpecV1Alpha3.cs
new file mode 100644
index 00000000..9c9bfc0e
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceClaimSpecV1Alpha3.cs
@@ -0,0 +1,31 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
+ ///
+ public partial class ResourceClaimSpecV1Alpha3
+ {
+ ///
+ /// Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.
+ ///
+ /// Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
+ ///
+ /// This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
+ ///
+ [YamlMember(Alias = "controller")]
+ [JsonProperty("controller", NullValueHandling = NullValueHandling.Ignore)]
+ public string Controller { get; set; }
+
+ ///
+ /// Devices defines how to request devices.
+ ///
+ [YamlMember(Alias = "devices")]
+ [JsonProperty("devices", NullValueHandling = NullValueHandling.Ignore)]
+ public DeviceClaimV1Alpha3 Devices { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceClaimStatusV1Alpha3.cs b/src/KubeClient/Models/generated/ResourceClaimStatusV1Alpha3.cs
new file mode 100644
index 00000000..d2341d11
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceClaimStatusV1Alpha3.cs
@@ -0,0 +1,50 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
+ ///
+ public partial class ResourceClaimStatusV1Alpha3
+ {
+ ///
+ /// Indicates that a claim is to be deallocated. While this is set, no new consumers may be added to ReservedFor.
+ ///
+ /// This is only used if the claim needs to be deallocated by a DRA driver. That driver then must deallocate this claim and reset the field together with clearing the Allocation field.
+ ///
+ /// This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
+ ///
+ [YamlMember(Alias = "deallocationRequested")]
+ [JsonProperty("deallocationRequested", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? DeallocationRequested { get; set; }
+
+ ///
+ /// Allocation is set once the claim has been allocated successfully.
+ ///
+ [YamlMember(Alias = "allocation")]
+ [JsonProperty("allocation", NullValueHandling = NullValueHandling.Ignore)]
+ public AllocationResultV1Alpha3 Allocation { get; set; }
+
+ ///
+ /// ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.
+ ///
+ /// In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.
+ ///
+ /// Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.
+ ///
+ /// There can be at most 32 such reservations. This may get increased in the future, but not reduced.
+ ///
+ [MergeStrategy(Key = "uid")]
+ [YamlMember(Alias = "reservedFor")]
+ [JsonProperty("reservedFor", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ReservedFor { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeReservedFor() => ReservedFor.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceClaimTemplateListV1Alpha3.cs b/src/KubeClient/Models/generated/ResourceClaimTemplateListV1Alpha3.cs
new file mode 100644
index 00000000..d5924255
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceClaimTemplateListV1Alpha3.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceClaimTemplateList is a collection of claim templates.
+ ///
+ [KubeListItem("ResourceClaimTemplate", "resource.k8s.io/v1alpha3")]
+ [KubeObject("ResourceClaimTemplateList", "resource.k8s.io/v1alpha3")]
+ public partial class ResourceClaimTemplateListV1Alpha3 : KubeResourceListV1
+ {
+ ///
+ /// Items is the list of resource claim templates.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceClaimTemplateSpecV1Alpha3.cs b/src/KubeClient/Models/generated/ResourceClaimTemplateSpecV1Alpha3.cs
new file mode 100644
index 00000000..81387eda
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceClaimTemplateSpecV1Alpha3.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
+ ///
+ public partial class ResourceClaimTemplateSpecV1Alpha3
+ {
+ ///
+ /// ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
+ ///
+ [YamlMember(Alias = "metadata")]
+ [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
+ public ObjectMetaV1 Metadata { get; set; }
+
+ ///
+ /// Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public ResourceClaimSpecV1Alpha3 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceClaimTemplateV1Alpha3.cs b/src/KubeClient/Models/generated/ResourceClaimTemplateV1Alpha3.cs
new file mode 100644
index 00000000..441646ff
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceClaimTemplateV1Alpha3.cs
@@ -0,0 +1,36 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceClaimTemplate is used to produce ResourceClaim objects.
+ ///
+ /// This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
+ ///
+ [KubeObject("ResourceClaimTemplate", "resource.k8s.io/v1alpha3")]
+ [KubeApi(KubeAction.List, "apis/resource.k8s.io/v1alpha3/resourceclaimtemplates")]
+ [KubeApi(KubeAction.WatchList, "apis/resource.k8s.io/v1alpha3/watch/resourceclaimtemplates")]
+ [KubeApi(KubeAction.List, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates")]
+ [KubeApi(KubeAction.Create, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates")]
+ [KubeApi(KubeAction.Get, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}")]
+ [KubeApi(KubeAction.Update, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaimtemplates")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates")]
+ [KubeApi(KubeAction.Watch, "apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaimtemplates/{name}")]
+ public partial class ResourceClaimTemplateV1Alpha3 : KubeResourceV1
+ {
+ ///
+ /// Describes the ResourceClaim that is to be generated.
+ ///
+ /// This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public ResourceClaimTemplateSpecV1Alpha3 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceClaimV1.cs b/src/KubeClient/Models/generated/ResourceClaimV1.cs
new file mode 100644
index 00000000..78bda997
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceClaimV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceClaim references one entry in PodSpec.ResourceClaims.
+ ///
+ public partial class ResourceClaimV1
+ {
+ ///
+ /// Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request.
+ ///
+ [YamlMember(Alias = "request")]
+ [JsonProperty("request", NullValueHandling = NullValueHandling.Ignore)]
+ public string Request { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceClaimV1Alpha3.cs b/src/KubeClient/Models/generated/ResourceClaimV1Alpha3.cs
new file mode 100644
index 00000000..08948549
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceClaimV1Alpha3.cs
@@ -0,0 +1,44 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.
+ ///
+ /// This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
+ ///
+ [KubeObject("ResourceClaim", "resource.k8s.io/v1alpha3")]
+ [KubeApi(KubeAction.List, "apis/resource.k8s.io/v1alpha3/resourceclaims")]
+ [KubeApi(KubeAction.WatchList, "apis/resource.k8s.io/v1alpha3/watch/resourceclaims")]
+ [KubeApi(KubeAction.List, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims")]
+ [KubeApi(KubeAction.Create, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims")]
+ [KubeApi(KubeAction.Get, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}")]
+ [KubeApi(KubeAction.Update, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaims")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims")]
+ [KubeApi(KubeAction.Get, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/resource.k8s.io/v1alpha3/watch/namespaces/{namespace}/resourceclaims/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status")]
+ public partial class ResourceClaimV1Alpha3 : KubeResourceV1
+ {
+ ///
+ /// Spec describes what is being requested and how to configure it. The spec is immutable.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public ResourceClaimSpecV1Alpha3 Spec { get; set; }
+
+ ///
+ /// Status describes whether the claim is ready to use and what has been allocated.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public ResourceClaimStatusV1Alpha3 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceHealthV1.cs b/src/KubeClient/Models/generated/ResourceHealthV1.cs
new file mode 100644
index 00000000..408df524
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceHealthV1.cs
@@ -0,0 +1,35 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.
+ ///
+ public partial class ResourceHealthV1
+ {
+ ///
+ /// ResourceID is the unique identifier of the resource. See the ResourceID type for more information.
+ ///
+ [YamlMember(Alias = "resourceID")]
+ [JsonProperty("resourceID", NullValueHandling = NullValueHandling.Include)]
+ public string ResourceID { get; set; }
+
+ ///
+ /// Health of the resource. can be one of:
+ /// - Healthy: operates as normal
+ /// - Unhealthy: reported unhealthy. We consider this a temporary health issue
+ /// since we do not have a mechanism today to distinguish
+ /// temporary and permanent issues.
+ /// - Unknown: The status cannot be determined.
+ /// For example, Device Plugin got unregistered and hasn't been re-registered since.
+ ///
+ /// In future we may want to introduce the PermanentlyUnhealthy Status.
+ ///
+ [YamlMember(Alias = "health")]
+ [JsonProperty("health", NullValueHandling = NullValueHandling.Ignore)]
+ public string Health { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceMetricSourceV2.cs b/src/KubeClient/Models/generated/ResourceMetricSourceV2.cs
new file mode 100644
index 00000000..91606185
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceMetricSourceV2.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.
+ ///
+ public partial class ResourceMetricSourceV2
+ {
+ ///
+ /// name is the name of the resource in question.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// target specifies the target value for the given metric
+ ///
+ [YamlMember(Alias = "target")]
+ [JsonProperty("target", NullValueHandling = NullValueHandling.Include)]
+ public MetricTargetV2 Target { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceMetricStatusV2.cs b/src/KubeClient/Models/generated/ResourceMetricStatusV2.cs
new file mode 100644
index 00000000..32699bc8
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceMetricStatusV2.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
+ ///
+ public partial class ResourceMetricStatusV2
+ {
+ ///
+ /// name is the name of the resource in question.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// current contains the current value for the given metric
+ ///
+ [YamlMember(Alias = "current")]
+ [JsonProperty("current", NullValueHandling = NullValueHandling.Include)]
+ public MetricValueStatusV2 Current { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourcePolicyRuleV1.cs b/src/KubeClient/Models/generated/ResourcePolicyRuleV1.cs
new file mode 100644
index 00000000..0b480a1f
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourcePolicyRuleV1.cs
@@ -0,0 +1,53 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.
+ ///
+ public partial class ResourcePolicyRuleV1
+ {
+ ///
+ /// `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.
+ ///
+ [YamlMember(Alias = "clusterScope")]
+ [JsonProperty("clusterScope", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? ClusterScope { get; set; }
+
+ ///
+ /// `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required.
+ ///
+ [YamlMember(Alias = "apiGroups")]
+ [JsonProperty("apiGroups", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ApiGroups { get; } = new List();
+
+ ///
+ /// `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.
+ ///
+ [YamlMember(Alias = "namespaces")]
+ [JsonProperty("namespaces", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Namespaces { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeNamespaces() => Namespaces.Count > 0;
+
+ ///
+ /// `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required.
+ ///
+ [YamlMember(Alias = "resources")]
+ [JsonProperty("resources", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Resources { get; } = new List();
+
+ ///
+ /// `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required.
+ ///
+ [YamlMember(Alias = "verbs")]
+ [JsonProperty("verbs", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Verbs { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourcePolicyRuleV1Beta3.cs b/src/KubeClient/Models/generated/ResourcePolicyRuleV1Beta3.cs
new file mode 100644
index 00000000..93bda57e
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourcePolicyRuleV1Beta3.cs
@@ -0,0 +1,53 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.
+ ///
+ public partial class ResourcePolicyRuleV1Beta3
+ {
+ ///
+ /// `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.
+ ///
+ [YamlMember(Alias = "clusterScope")]
+ [JsonProperty("clusterScope", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? ClusterScope { get; set; }
+
+ ///
+ /// `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required.
+ ///
+ [YamlMember(Alias = "apiGroups")]
+ [JsonProperty("apiGroups", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ApiGroups { get; } = new List();
+
+ ///
+ /// `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.
+ ///
+ [YamlMember(Alias = "namespaces")]
+ [JsonProperty("namespaces", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Namespaces { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeNamespaces() => Namespaces.Count > 0;
+
+ ///
+ /// `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required.
+ ///
+ [YamlMember(Alias = "resources")]
+ [JsonProperty("resources", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Resources { get; } = new List();
+
+ ///
+ /// `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required.
+ ///
+ [YamlMember(Alias = "verbs")]
+ [JsonProperty("verbs", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Verbs { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourcePoolV1Alpha3.cs b/src/KubeClient/Models/generated/ResourcePoolV1Alpha3.cs
new file mode 100644
index 00000000..aae178fc
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourcePoolV1Alpha3.cs
@@ -0,0 +1,40 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourcePool describes the pool that ResourceSlices belong to.
+ ///
+ public partial class ResourcePoolV1Alpha3
+ {
+ ///
+ /// Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
+ ///
+ /// It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
+ ///
+ /// Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
+ ///
+ [YamlMember(Alias = "generation")]
+ [JsonProperty("generation", NullValueHandling = NullValueHandling.Include)]
+ public long Generation { get; set; }
+
+ ///
+ /// ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
+ ///
+ /// Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
+ ///
+ [YamlMember(Alias = "resourceSliceCount")]
+ [JsonProperty("resourceSliceCount", NullValueHandling = NullValueHandling.Include)]
+ public long ResourceSliceCount { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceQuotaV1.cs b/src/KubeClient/Models/generated/ResourceQuotaV1.cs
index 161dafe0..f54ac790 100644
--- a/src/KubeClient/Models/generated/ResourceQuotaV1.cs
+++ b/src/KubeClient/Models/generated/ResourceQuotaV1.cs
@@ -26,14 +26,14 @@ namespace KubeClient.Models
public partial class ResourceQuotaV1 : KubeResourceV1
{
///
- /// Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
public ResourceQuotaSpecV1 Spec { get; set; }
///
- /// Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ResourceRequirementsV1.cs b/src/KubeClient/Models/generated/ResourceRequirementsV1.cs
index 80aabd78..f42d72d0 100644
--- a/src/KubeClient/Models/generated/ResourceRequirementsV1.cs
+++ b/src/KubeClient/Models/generated/ResourceRequirementsV1.cs
@@ -11,7 +11,23 @@ namespace KubeClient.Models
public partial class ResourceRequirementsV1
{
///
- /// Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
+ /// Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.
+ ///
+ /// This is an alpha field and requires enabling the DynamicResourceAllocation feature gate.
+ ///
+ /// This field is immutable. It can only be set for containers.
+ ///
+ [YamlMember(Alias = "claims")]
+ [JsonProperty("claims", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Claims { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeClaims() => Claims.Count > 0;
+
+ ///
+ /// Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
///
[YamlMember(Alias = "limits")]
[JsonProperty("limits", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -23,7 +39,7 @@ public partial class ResourceRequirementsV1
public bool ShouldSerializeLimits() => Limits.Count > 0;
///
- /// Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
+ /// Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
///
[YamlMember(Alias = "requests")]
[JsonProperty("requests", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
diff --git a/src/KubeClient/Models/generated/ResourceSliceListV1Alpha3.cs b/src/KubeClient/Models/generated/ResourceSliceListV1Alpha3.cs
new file mode 100644
index 00000000..ba277536
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceSliceListV1Alpha3.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceSliceList is a collection of ResourceSlices.
+ ///
+ [KubeListItem("ResourceSlice", "resource.k8s.io/v1alpha3")]
+ [KubeObject("ResourceSliceList", "resource.k8s.io/v1alpha3")]
+ public partial class ResourceSliceListV1Alpha3 : KubeResourceListV1
+ {
+ ///
+ /// Items is the list of resource ResourceSlices.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceSliceSpecV1Alpha3.cs b/src/KubeClient/Models/generated/ResourceSliceSpecV1Alpha3.cs
new file mode 100644
index 00000000..4711335f
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceSliceSpecV1Alpha3.cs
@@ -0,0 +1,74 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
+ ///
+ public partial class ResourceSliceSpecV1Alpha3
+ {
+ ///
+ /// NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
+ ///
+ /// This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
+ ///
+ /// Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
+ ///
+ [YamlMember(Alias = "nodeName")]
+ [JsonProperty("nodeName", NullValueHandling = NullValueHandling.Ignore)]
+ public string NodeName { get; set; }
+
+ ///
+ /// Pool describes the pool that this ResourceSlice belongs to.
+ ///
+ [YamlMember(Alias = "pool")]
+ [JsonProperty("pool", NullValueHandling = NullValueHandling.Include)]
+ public ResourcePoolV1Alpha3 Pool { get; set; }
+
+ ///
+ /// Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
+ ///
+ /// Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
+ ///
+ [YamlMember(Alias = "driver")]
+ [JsonProperty("driver", NullValueHandling = NullValueHandling.Include)]
+ public string Driver { get; set; }
+
+ ///
+ /// NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
+ ///
+ /// Must use exactly one term.
+ ///
+ /// Exactly one of NodeName, NodeSelector and AllNodes must be set.
+ ///
+ [YamlMember(Alias = "nodeSelector")]
+ [JsonProperty("nodeSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public NodeSelectorV1 NodeSelector { get; set; }
+
+ ///
+ /// AllNodes indicates that all nodes have access to the resources in the pool.
+ ///
+ /// Exactly one of NodeName, NodeSelector and AllNodes must be set.
+ ///
+ [YamlMember(Alias = "allNodes")]
+ [JsonProperty("allNodes", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? AllNodes { get; set; }
+
+ ///
+ /// Devices lists some or all of the devices in this pool.
+ ///
+ /// Must not have more than 128 entries.
+ ///
+ [YamlMember(Alias = "devices")]
+ [JsonProperty("devices", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Devices { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeDevices() => Devices.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceSliceV1Alpha3.cs b/src/KubeClient/Models/generated/ResourceSliceV1Alpha3.cs
new file mode 100644
index 00000000..7453c7e5
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceSliceV1Alpha3.cs
@@ -0,0 +1,42 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.
+ ///
+ /// At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>.
+ ///
+ /// Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.
+ ///
+ /// When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.
+ ///
+ /// For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.
+ ///
+ /// This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
+ ///
+ [KubeObject("ResourceSlice", "resource.k8s.io/v1alpha3")]
+ [KubeApi(KubeAction.List, "apis/resource.k8s.io/v1alpha3/resourceslices")]
+ [KubeApi(KubeAction.Create, "apis/resource.k8s.io/v1alpha3/resourceslices")]
+ [KubeApi(KubeAction.Get, "apis/resource.k8s.io/v1alpha3/resourceslices/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/resource.k8s.io/v1alpha3/resourceslices/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/resource.k8s.io/v1alpha3/resourceslices/{name}")]
+ [KubeApi(KubeAction.Update, "apis/resource.k8s.io/v1alpha3/resourceslices/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/resource.k8s.io/v1alpha3/watch/resourceslices")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/resource.k8s.io/v1alpha3/resourceslices")]
+ [KubeApi(KubeAction.Watch, "apis/resource.k8s.io/v1alpha3/watch/resourceslices/{name}")]
+ public partial class ResourceSliceV1Alpha3 : KubeResourceV1
+ {
+ ///
+ /// Contains the information published by the driver.
+ ///
+ /// Changing the spec automatically increments the metadata.generation number.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public ResourceSliceSpecV1Alpha3 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ResourceStatusV1.cs b/src/KubeClient/Models/generated/ResourceStatusV1.cs
new file mode 100644
index 00000000..e9f0e4fb
--- /dev/null
+++ b/src/KubeClient/Models/generated/ResourceStatusV1.cs
@@ -0,0 +1,32 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// No description provided.
+ ///
+ public partial class ResourceStatusV1
+ {
+ ///
+ /// Name of the resource. Must be unique within the pod and match one of the resources from the pod spec.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.
+ ///
+ [YamlMember(Alias = "resources")]
+ [JsonProperty("resources", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Resources { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResources() => Resources.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/RoleBindingV1.cs b/src/KubeClient/Models/generated/RoleBindingV1.cs
index 02ed09fb..00130682 100644
--- a/src/KubeClient/Models/generated/RoleBindingV1.cs
+++ b/src/KubeClient/Models/generated/RoleBindingV1.cs
@@ -23,7 +23,7 @@ namespace KubeClient.Models
public partial class RoleBindingV1 : KubeResourceV1
{
///
- /// RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.
+ /// RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable.
///
[YamlMember(Alias = "roleRef")]
[JsonProperty("roleRef", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/RoleV1.cs b/src/KubeClient/Models/generated/RoleV1.cs
index abb27e78..f96d9b50 100644
--- a/src/KubeClient/Models/generated/RoleV1.cs
+++ b/src/KubeClient/Models/generated/RoleV1.cs
@@ -28,5 +28,10 @@ public partial class RoleV1 : KubeResourceV1
[YamlMember(Alias = "rules")]
[JsonProperty("rules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public List Rules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRules() => Rules.Count > 0;
}
}
diff --git a/src/KubeClient/Models/generated/RollingUpdateDaemonSetV1.cs b/src/KubeClient/Models/generated/RollingUpdateDaemonSetV1.cs
index 3ab9bc3f..e84dde5d 100644
--- a/src/KubeClient/Models/generated/RollingUpdateDaemonSetV1.cs
+++ b/src/KubeClient/Models/generated/RollingUpdateDaemonSetV1.cs
@@ -11,7 +11,14 @@ namespace KubeClient.Models
public partial class RollingUpdateDaemonSetV1
{
///
- /// The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.
+ /// The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.
+ ///
+ [YamlMember(Alias = "maxSurge")]
+ [JsonProperty("maxSurge", NullValueHandling = NullValueHandling.Ignore)]
+ public Int32OrStringV1 MaxSurge { get; set; }
+
+ ///
+ /// The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.
///
[YamlMember(Alias = "maxUnavailable")]
[JsonProperty("maxUnavailable", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/RollingUpdateStatefulSetStrategyV1.cs b/src/KubeClient/Models/generated/RollingUpdateStatefulSetStrategyV1.cs
index ff95df2f..ab85d9d6 100644
--- a/src/KubeClient/Models/generated/RollingUpdateStatefulSetStrategyV1.cs
+++ b/src/KubeClient/Models/generated/RollingUpdateStatefulSetStrategyV1.cs
@@ -11,7 +11,14 @@ namespace KubeClient.Models
public partial class RollingUpdateStatefulSetStrategyV1
{
///
- /// Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.
+ /// The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.
+ ///
+ [YamlMember(Alias = "maxUnavailable")]
+ [JsonProperty("maxUnavailable", NullValueHandling = NullValueHandling.Ignore)]
+ public Int32OrStringV1 MaxUnavailable { get; set; }
+
+ ///
+ /// Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.
///
[YamlMember(Alias = "partition")]
[JsonProperty("partition", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/RuleWithOperationsV1.cs b/src/KubeClient/Models/generated/RuleWithOperationsV1.cs
new file mode 100644
index 00000000..18c8b311
--- /dev/null
+++ b/src/KubeClient/Models/generated/RuleWithOperationsV1.cs
@@ -0,0 +1,74 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.
+ ///
+ public partial class RuleWithOperationsV1
+ {
+ ///
+ /// scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*".
+ ///
+ [YamlMember(Alias = "scope")]
+ [JsonProperty("scope", NullValueHandling = NullValueHandling.Ignore)]
+ public string Scope { get; set; }
+
+ ///
+ /// APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
+ ///
+ [YamlMember(Alias = "apiGroups")]
+ [JsonProperty("apiGroups", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ApiGroups { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeApiGroups() => ApiGroups.Count > 0;
+
+ ///
+ /// APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
+ ///
+ [YamlMember(Alias = "apiVersions")]
+ [JsonProperty("apiVersions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ApiVersions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeApiVersions() => ApiVersions.Count > 0;
+
+ ///
+ /// Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.
+ ///
+ [YamlMember(Alias = "operations")]
+ [JsonProperty("operations", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Operations { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeOperations() => Operations.Count > 0;
+
+ ///
+ /// Resources is a list of resources this rule applies to.
+ ///
+ /// For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.
+ ///
+ /// If wildcard is present, the validation rule will ensure resources do not overlap with each other.
+ ///
+ /// Depending on the enclosing object, subresources might not be allowed. Required.
+ ///
+ [YamlMember(Alias = "resources")]
+ [JsonProperty("resources", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Resources { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeResources() => Resources.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/RuntimeClassListV1.cs b/src/KubeClient/Models/generated/RuntimeClassListV1.cs
new file mode 100644
index 00000000..0768fea6
--- /dev/null
+++ b/src/KubeClient/Models/generated/RuntimeClassListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// RuntimeClassList is a list of RuntimeClass objects.
+ ///
+ [KubeListItem("RuntimeClass", "node.k8s.io/v1")]
+ [KubeObject("RuntimeClassList", "node.k8s.io/v1")]
+ public partial class RuntimeClassListV1 : KubeResourceListV1
+ {
+ ///
+ /// items is a list of schema objects.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/RuntimeClassV1.cs b/src/KubeClient/Models/generated/RuntimeClassV1.cs
new file mode 100644
index 00000000..0c91f59a
--- /dev/null
+++ b/src/KubeClient/Models/generated/RuntimeClassV1.cs
@@ -0,0 +1,45 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/
+ ///
+ [KubeObject("RuntimeClass", "node.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/node.k8s.io/v1/runtimeclasses")]
+ [KubeApi(KubeAction.Create, "apis/node.k8s.io/v1/runtimeclasses")]
+ [KubeApi(KubeAction.Get, "apis/node.k8s.io/v1/runtimeclasses/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/node.k8s.io/v1/runtimeclasses/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/node.k8s.io/v1/runtimeclasses/{name}")]
+ [KubeApi(KubeAction.Update, "apis/node.k8s.io/v1/runtimeclasses/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/node.k8s.io/v1/watch/runtimeclasses")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/node.k8s.io/v1/runtimeclasses")]
+ [KubeApi(KubeAction.Watch, "apis/node.k8s.io/v1/watch/runtimeclasses/{name}")]
+ public partial class RuntimeClassV1 : KubeResourceV1
+ {
+ ///
+ /// overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see
+ /// https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+ ///
+ [YamlMember(Alias = "overhead")]
+ [JsonProperty("overhead", NullValueHandling = NullValueHandling.Ignore)]
+ public OverheadV1 Overhead { get; set; }
+
+ ///
+ /// scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.
+ ///
+ [YamlMember(Alias = "scheduling")]
+ [JsonProperty("scheduling", NullValueHandling = NullValueHandling.Ignore)]
+ public SchedulingV1 Scheduling { get; set; }
+
+ ///
+ /// handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
+ ///
+ [YamlMember(Alias = "handler")]
+ [JsonProperty("handler", NullValueHandling = NullValueHandling.Include)]
+ public string Handler { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ScaleIOPersistentVolumeSourceV1.cs b/src/KubeClient/Models/generated/ScaleIOPersistentVolumeSourceV1.cs
index 952291ff..c4258dee 100644
--- a/src/KubeClient/Models/generated/ScaleIOPersistentVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/ScaleIOPersistentVolumeSourceV1.cs
@@ -11,70 +11,70 @@ namespace KubeClient.Models
public partial class ScaleIOPersistentVolumeSourceV1
{
///
- /// Flag to enable/disable SSL communication with Gateway, default false
+ /// sslEnabled is the flag to enable/disable SSL communication with Gateway, default false
///
[YamlMember(Alias = "sslEnabled")]
[JsonProperty("sslEnabled", NullValueHandling = NullValueHandling.Ignore)]
public bool? SslEnabled { get; set; }
///
- /// Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+ /// fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs"
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
+ /// storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.
///
[YamlMember(Alias = "storageMode")]
[JsonProperty("storageMode", NullValueHandling = NullValueHandling.Ignore)]
public string StorageMode { get; set; }
///
- /// The name of a volume already created in the ScaleIO system that is associated with this volume source.
+ /// volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.
///
[YamlMember(Alias = "volumeName")]
[JsonProperty("volumeName", NullValueHandling = NullValueHandling.Ignore)]
public string VolumeName { get; set; }
///
- /// SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.
+ /// secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Include)]
public SecretReferenceV1 SecretRef { get; set; }
///
- /// The ScaleIO Storage Pool associated with the protection domain.
+ /// storagePool is the ScaleIO Storage Pool associated with the protection domain.
///
[YamlMember(Alias = "storagePool")]
[JsonProperty("storagePool", NullValueHandling = NullValueHandling.Ignore)]
public string StoragePool { get; set; }
///
- /// The name of the storage system as configured in ScaleIO.
+ /// system is the name of the storage system as configured in ScaleIO.
///
[YamlMember(Alias = "system")]
[JsonProperty("system", NullValueHandling = NullValueHandling.Include)]
public string System { get; set; }
///
- /// The name of the ScaleIO Protection Domain for the configured storage.
+ /// protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.
///
[YamlMember(Alias = "protectionDomain")]
[JsonProperty("protectionDomain", NullValueHandling = NullValueHandling.Ignore)]
public string ProtectionDomain { get; set; }
///
- /// The host address of the ScaleIO API Gateway.
+ /// gateway is the host address of the ScaleIO API Gateway.
///
[YamlMember(Alias = "gateway")]
[JsonProperty("gateway", NullValueHandling = NullValueHandling.Include)]
public string Gateway { get; set; }
///
- /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
+ /// readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ScaleIOVolumeSourceV1.cs b/src/KubeClient/Models/generated/ScaleIOVolumeSourceV1.cs
index 0167cefc..28469df1 100644
--- a/src/KubeClient/Models/generated/ScaleIOVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/ScaleIOVolumeSourceV1.cs
@@ -11,70 +11,70 @@ namespace KubeClient.Models
public partial class ScaleIOVolumeSourceV1
{
///
- /// Flag to enable/disable SSL communication with Gateway, default false
+ /// sslEnabled Flag enable/disable SSL communication with Gateway, default false
///
[YamlMember(Alias = "sslEnabled")]
[JsonProperty("sslEnabled", NullValueHandling = NullValueHandling.Ignore)]
public bool? SslEnabled { get; set; }
///
- /// Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+ /// fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs".
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
+ /// storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.
///
[YamlMember(Alias = "storageMode")]
[JsonProperty("storageMode", NullValueHandling = NullValueHandling.Ignore)]
public string StorageMode { get; set; }
///
- /// The name of a volume already created in the ScaleIO system that is associated with this volume source.
+ /// volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.
///
[YamlMember(Alias = "volumeName")]
[JsonProperty("volumeName", NullValueHandling = NullValueHandling.Ignore)]
public string VolumeName { get; set; }
///
- /// SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.
+ /// secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Include)]
public LocalObjectReferenceV1 SecretRef { get; set; }
///
- /// The ScaleIO Storage Pool associated with the protection domain.
+ /// storagePool is the ScaleIO Storage Pool associated with the protection domain.
///
[YamlMember(Alias = "storagePool")]
[JsonProperty("storagePool", NullValueHandling = NullValueHandling.Ignore)]
public string StoragePool { get; set; }
///
- /// The name of the storage system as configured in ScaleIO.
+ /// system is the name of the storage system as configured in ScaleIO.
///
[YamlMember(Alias = "system")]
[JsonProperty("system", NullValueHandling = NullValueHandling.Include)]
public string System { get; set; }
///
- /// The name of the ScaleIO Protection Domain for the configured storage.
+ /// protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.
///
[YamlMember(Alias = "protectionDomain")]
[JsonProperty("protectionDomain", NullValueHandling = NullValueHandling.Ignore)]
public string ProtectionDomain { get; set; }
///
- /// The host address of the ScaleIO API Gateway.
+ /// gateway is the host address of the ScaleIO API Gateway.
///
[YamlMember(Alias = "gateway")]
[JsonProperty("gateway", NullValueHandling = NullValueHandling.Include)]
public string Gateway { get; set; }
///
- /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
+ /// readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ScaleSpecV1.cs b/src/KubeClient/Models/generated/ScaleSpecV1.cs
index 381f0f45..830fa707 100644
--- a/src/KubeClient/Models/generated/ScaleSpecV1.cs
+++ b/src/KubeClient/Models/generated/ScaleSpecV1.cs
@@ -11,7 +11,7 @@ namespace KubeClient.Models
public partial class ScaleSpecV1
{
///
- /// desired number of instances for the scaled object.
+ /// replicas is the desired number of instances for the scaled object.
///
[YamlMember(Alias = "replicas")]
[JsonProperty("replicas", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ScaleStatusV1.cs b/src/KubeClient/Models/generated/ScaleStatusV1.cs
index 75f8dc73..3fe3ee93 100644
--- a/src/KubeClient/Models/generated/ScaleStatusV1.cs
+++ b/src/KubeClient/Models/generated/ScaleStatusV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class ScaleStatusV1
{
///
- /// label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors
+ /// selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
///
[YamlMember(Alias = "selector")]
[JsonProperty("selector", NullValueHandling = NullValueHandling.Ignore)]
public string Selector { get; set; }
///
- /// actual number of observed instances of the scaled object.
+ /// replicas is the actual number of observed instances of the scaled object.
///
[YamlMember(Alias = "replicas")]
[JsonProperty("replicas", NullValueHandling = NullValueHandling.Include)]
diff --git a/src/KubeClient/Models/generated/ScaleV1.cs b/src/KubeClient/Models/generated/ScaleV1.cs
index 69f4d919..82011072 100644
--- a/src/KubeClient/Models/generated/ScaleV1.cs
+++ b/src/KubeClient/Models/generated/ScaleV1.cs
@@ -24,14 +24,14 @@ namespace KubeClient.Models
public partial class ScaleV1 : KubeResourceV1
{
///
- /// defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.
+ /// spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
public ScaleSpecV1 Spec { get; set; }
///
- /// current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.
+ /// status is the current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/SchedulingV1.cs b/src/KubeClient/Models/generated/SchedulingV1.cs
new file mode 100644
index 00000000..c3f81120
--- /dev/null
+++ b/src/KubeClient/Models/generated/SchedulingV1.cs
@@ -0,0 +1,37 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
+ ///
+ public partial class SchedulingV1
+ {
+ ///
+ /// nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.
+ ///
+ [YamlMember(Alias = "nodeSelector")]
+ [JsonProperty("nodeSelector", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary NodeSelector { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeNodeSelector() => NodeSelector.Count > 0;
+
+ ///
+ /// tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
+ ///
+ [YamlMember(Alias = "tolerations")]
+ [JsonProperty("tolerations", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Tolerations { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeTolerations() => Tolerations.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/SeccompProfileV1.cs b/src/KubeClient/Models/generated/SeccompProfileV1.cs
new file mode 100644
index 00000000..3a83f585
--- /dev/null
+++ b/src/KubeClient/Models/generated/SeccompProfileV1.cs
@@ -0,0 +1,29 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.
+ ///
+ public partial class SeccompProfileV1
+ {
+ ///
+ /// localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type.
+ ///
+ [YamlMember(Alias = "localhostProfile")]
+ [JsonProperty("localhostProfile", NullValueHandling = NullValueHandling.Ignore)]
+ public string LocalhostProfile { get; set; }
+
+ ///
+ /// type indicates which kind of seccomp profile will be applied. Valid options are:
+ ///
+ /// Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/SecretEnvSourceV1.cs b/src/KubeClient/Models/generated/SecretEnvSourceV1.cs
index f276391e..7ab795cc 100644
--- a/src/KubeClient/Models/generated/SecretEnvSourceV1.cs
+++ b/src/KubeClient/Models/generated/SecretEnvSourceV1.cs
@@ -13,7 +13,7 @@ namespace KubeClient.Models
public partial class SecretEnvSourceV1
{
///
- /// Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ /// Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/SecretKeySelectorV1.cs b/src/KubeClient/Models/generated/SecretKeySelectorV1.cs
index a57311eb..486858cb 100644
--- a/src/KubeClient/Models/generated/SecretKeySelectorV1.cs
+++ b/src/KubeClient/Models/generated/SecretKeySelectorV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class SecretKeySelectorV1
{
///
- /// Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ /// Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
public string Name { get; set; }
///
- /// Specify whether the Secret or it's key must be defined
+ /// Specify whether the Secret or its key must be defined
///
[YamlMember(Alias = "optional")]
[JsonProperty("optional", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/SecretProjectionV1.cs b/src/KubeClient/Models/generated/SecretProjectionV1.cs
index d4c964c0..1c9ad1a8 100644
--- a/src/KubeClient/Models/generated/SecretProjectionV1.cs
+++ b/src/KubeClient/Models/generated/SecretProjectionV1.cs
@@ -14,21 +14,21 @@ namespace KubeClient.Models
public partial class SecretProjectionV1
{
///
- /// Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ /// Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
public string Name { get; set; }
///
- /// Specify whether the Secret or its key must be defined
+ /// optional field specify whether the Secret or its key must be defined
///
[YamlMember(Alias = "optional")]
[JsonProperty("optional", NullValueHandling = NullValueHandling.Ignore)]
public bool? Optional { get; set; }
///
- /// If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
+ /// items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
///
[YamlMember(Alias = "items")]
[JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
diff --git a/src/KubeClient/Models/generated/SecretReferenceV1.cs b/src/KubeClient/Models/generated/SecretReferenceV1.cs
index 58de5302..c441bca2 100644
--- a/src/KubeClient/Models/generated/SecretReferenceV1.cs
+++ b/src/KubeClient/Models/generated/SecretReferenceV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class SecretReferenceV1
{
///
- /// Name is unique within a namespace to reference a secret resource.
+ /// name is unique within a namespace to reference a secret resource.
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
public string Name { get; set; }
///
- /// Namespace defines the space within which the secret name must be unique.
+ /// namespace defines the space within which the secret name must be unique.
///
[YamlMember(Alias = "namespace")]
[JsonProperty("namespace", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/SecretV1.cs b/src/KubeClient/Models/generated/SecretV1.cs
index 1633d2a1..5965121d 100644
--- a/src/KubeClient/Models/generated/SecretV1.cs
+++ b/src/KubeClient/Models/generated/SecretV1.cs
@@ -1,5 +1,5 @@
using Newtonsoft.Json;
-using Newtonsoft.Json.Serialization;
+using System;
using System.Collections.Generic;
using YamlDotNet.Serialization;
@@ -35,7 +35,7 @@ public partial class SecretV1 : KubeResourceV1
public bool ShouldSerializeData() => Data.Count > 0;
///
- /// stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.
+ /// stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.
///
[YamlMember(Alias = "stringData")]
[JsonProperty("stringData", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -47,7 +47,14 @@ public partial class SecretV1 : KubeResourceV1
public bool ShouldSerializeStringData() => StringData.Count > 0;
///
- /// Used to facilitate programmatic handling of secret data.
+ /// Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.
+ ///
+ [YamlMember(Alias = "immutable")]
+ [JsonProperty("immutable", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? Immutable { get; set; }
+
+ ///
+ /// Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
///
[YamlMember(Alias = "type")]
[JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/SecretVolumeSourceV1.cs b/src/KubeClient/Models/generated/SecretVolumeSourceV1.cs
index 68e2b0c7..bf96e852 100644
--- a/src/KubeClient/Models/generated/SecretVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/SecretVolumeSourceV1.cs
@@ -14,28 +14,28 @@ namespace KubeClient.Models
public partial class SecretVolumeSourceV1
{
///
- /// Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
+ /// defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
///
[YamlMember(Alias = "defaultMode")]
[JsonProperty("defaultMode", NullValueHandling = NullValueHandling.Ignore)]
public int? DefaultMode { get; set; }
///
- /// Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
+ /// secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
///
[YamlMember(Alias = "secretName")]
[JsonProperty("secretName", NullValueHandling = NullValueHandling.Ignore)]
public string SecretName { get; set; }
///
- /// Specify whether the Secret or it's keys must be defined
+ /// optional field specify whether the Secret or its keys must be defined
///
[YamlMember(Alias = "optional")]
[JsonProperty("optional", NullValueHandling = NullValueHandling.Ignore)]
public bool? Optional { get; set; }
///
- /// If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
+ /// items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.
///
[YamlMember(Alias = "items")]
[JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
diff --git a/src/KubeClient/Models/generated/SecurityContextV1.cs b/src/KubeClient/Models/generated/SecurityContextV1.cs
index 0dc95094..478cb8f1 100644
--- a/src/KubeClient/Models/generated/SecurityContextV1.cs
+++ b/src/KubeClient/Models/generated/SecurityContextV1.cs
@@ -11,54 +11,82 @@ namespace KubeClient.Models
public partial class SecurityContextV1
{
///
- /// Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.
+ /// Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.
///
[YamlMember(Alias = "privileged")]
[JsonProperty("privileged", NullValueHandling = NullValueHandling.Ignore)]
public bool? Privileged { get; set; }
///
- /// Whether this container has a read-only root filesystem. Default is false.
+ /// appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows.
+ ///
+ [YamlMember(Alias = "appArmorProfile")]
+ [JsonProperty("appArmorProfile", NullValueHandling = NullValueHandling.Ignore)]
+ public AppArmorProfileV1 AppArmorProfile { get; set; }
+
+ ///
+ /// The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.
+ ///
+ [YamlMember(Alias = "seccompProfile")]
+ [JsonProperty("seccompProfile", NullValueHandling = NullValueHandling.Ignore)]
+ public SeccompProfileV1 SeccompProfile { get; set; }
+
+ ///
+ /// Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.
///
[YamlMember(Alias = "readOnlyRootFilesystem")]
[JsonProperty("readOnlyRootFilesystem", NullValueHandling = NullValueHandling.Ignore)]
public bool? ReadOnlyRootFilesystem { get; set; }
///
- /// AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN
+ /// AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.
///
[YamlMember(Alias = "allowPrivilegeEscalation")]
[JsonProperty("allowPrivilegeEscalation", NullValueHandling = NullValueHandling.Ignore)]
public bool? AllowPrivilegeEscalation { get; set; }
///
- /// The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
+ /// The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.
///
[YamlMember(Alias = "runAsGroup")]
[JsonProperty("runAsGroup", NullValueHandling = NullValueHandling.Ignore)]
public long? RunAsGroup { get; set; }
///
- /// The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
+ /// The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.
///
[YamlMember(Alias = "runAsUser")]
[JsonProperty("runAsUser", NullValueHandling = NullValueHandling.Ignore)]
public long? RunAsUser { get; set; }
///
- /// The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.
+ /// The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows.
///
[YamlMember(Alias = "capabilities")]
[JsonProperty("capabilities", NullValueHandling = NullValueHandling.Ignore)]
public CapabilitiesV1 Capabilities { get; set; }
///
- /// The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
+ /// The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.
///
[YamlMember(Alias = "seLinuxOptions")]
[JsonProperty("seLinuxOptions", NullValueHandling = NullValueHandling.Ignore)]
public SELinuxOptionsV1 SeLinuxOptions { get; set; }
+ ///
+ /// The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.
+ ///
+ [YamlMember(Alias = "windowsOptions")]
+ [JsonProperty("windowsOptions", NullValueHandling = NullValueHandling.Ignore)]
+ public WindowsSecurityContextOptionsV1 WindowsOptions { get; set; }
+
+ ///
+ /// procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.
+ ///
+ [YamlMember(Alias = "procMount")]
+ [JsonProperty("procMount", NullValueHandling = NullValueHandling.Ignore)]
+ public string ProcMount { get; set; }
+
///
/// Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
///
diff --git a/src/KubeClient/Models/generated/SelectableFieldV1.cs b/src/KubeClient/Models/generated/SelectableFieldV1.cs
new file mode 100644
index 00000000..1e0f9f2f
--- /dev/null
+++ b/src/KubeClient/Models/generated/SelectableFieldV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// SelectableField specifies the JSON path of a field that may be used with field selectors.
+ ///
+ public partial class SelectableFieldV1
+ {
+ ///
+ /// jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.
+ ///
+ [YamlMember(Alias = "jsonPath")]
+ [JsonProperty("jsonPath", NullValueHandling = NullValueHandling.Include)]
+ public string JsonPath { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/SelfSubjectReviewStatusV1.cs b/src/KubeClient/Models/generated/SelfSubjectReviewStatusV1.cs
new file mode 100644
index 00000000..aa6deed7
--- /dev/null
+++ b/src/KubeClient/Models/generated/SelfSubjectReviewStatusV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.
+ ///
+ public partial class SelfSubjectReviewStatusV1
+ {
+ ///
+ /// User attributes of the user making this request.
+ ///
+ [YamlMember(Alias = "userInfo")]
+ [JsonProperty("userInfo", NullValueHandling = NullValueHandling.Ignore)]
+ public UserInfoV1 UserInfo { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/SelfSubjectReviewStatusV1Alpha1.cs b/src/KubeClient/Models/generated/SelfSubjectReviewStatusV1Alpha1.cs
new file mode 100644
index 00000000..09fcb479
--- /dev/null
+++ b/src/KubeClient/Models/generated/SelfSubjectReviewStatusV1Alpha1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.
+ ///
+ public partial class SelfSubjectReviewStatusV1Alpha1
+ {
+ ///
+ /// User attributes of the user making this request.
+ ///
+ [YamlMember(Alias = "userInfo")]
+ [JsonProperty("userInfo", NullValueHandling = NullValueHandling.Ignore)]
+ public UserInfoV1 UserInfo { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/SelfSubjectReviewStatusV1Beta1.cs b/src/KubeClient/Models/generated/SelfSubjectReviewStatusV1Beta1.cs
new file mode 100644
index 00000000..e4172a0d
--- /dev/null
+++ b/src/KubeClient/Models/generated/SelfSubjectReviewStatusV1Beta1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.
+ ///
+ public partial class SelfSubjectReviewStatusV1Beta1
+ {
+ ///
+ /// User attributes of the user making this request.
+ ///
+ [YamlMember(Alias = "userInfo")]
+ [JsonProperty("userInfo", NullValueHandling = NullValueHandling.Ignore)]
+ public UserInfoV1 UserInfo { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/SelfSubjectReviewV1.cs b/src/KubeClient/Models/generated/SelfSubjectReviewV1.cs
new file mode 100644
index 00000000..d217cc0b
--- /dev/null
+++ b/src/KubeClient/Models/generated/SelfSubjectReviewV1.cs
@@ -0,0 +1,22 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.
+ ///
+ [KubeObject("SelfSubjectReview", "authentication.k8s.io/v1")]
+ [KubeApi(KubeAction.Create, "apis/authentication.k8s.io/v1/selfsubjectreviews")]
+ public partial class SelfSubjectReviewV1 : KubeResourceV1
+ {
+ ///
+ /// Status is filled in by the server with the user attributes.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public SelfSubjectReviewStatusV1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/SelfSubjectReviewV1Alpha1.cs b/src/KubeClient/Models/generated/SelfSubjectReviewV1Alpha1.cs
new file mode 100644
index 00000000..0a63b1c5
--- /dev/null
+++ b/src/KubeClient/Models/generated/SelfSubjectReviewV1Alpha1.cs
@@ -0,0 +1,22 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.
+ ///
+ [KubeObject("SelfSubjectReview", "authentication.k8s.io/v1alpha1")]
+ [KubeApi(KubeAction.Create, "apis/authentication.k8s.io/v1alpha1/selfsubjectreviews")]
+ public partial class SelfSubjectReviewV1Alpha1 : KubeResourceV1
+ {
+ ///
+ /// Status is filled in by the server with the user attributes.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public SelfSubjectReviewStatusV1Alpha1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/SelfSubjectReviewV1Beta1.cs b/src/KubeClient/Models/generated/SelfSubjectReviewV1Beta1.cs
new file mode 100644
index 00000000..ebf2fd61
--- /dev/null
+++ b/src/KubeClient/Models/generated/SelfSubjectReviewV1Beta1.cs
@@ -0,0 +1,22 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.
+ ///
+ [KubeObject("SelfSubjectReview", "authentication.k8s.io/v1beta1")]
+ [KubeApi(KubeAction.Create, "apis/authentication.k8s.io/v1beta1/selfsubjectreviews")]
+ public partial class SelfSubjectReviewV1Beta1 : KubeResourceV1
+ {
+ ///
+ /// Status is filled in by the server with the user attributes.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public SelfSubjectReviewStatusV1Beta1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/SelfSubjectRulesReviewSpecV1.cs b/src/KubeClient/Models/generated/SelfSubjectRulesReviewSpecV1.cs
index b466faaf..35b421d9 100644
--- a/src/KubeClient/Models/generated/SelfSubjectRulesReviewSpecV1.cs
+++ b/src/KubeClient/Models/generated/SelfSubjectRulesReviewSpecV1.cs
@@ -6,7 +6,7 @@
namespace KubeClient.Models
{
///
- /// No description provided.
+ /// SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.
///
public partial class SelfSubjectRulesReviewSpecV1
{
diff --git a/src/KubeClient/Models/generated/ServerStorageVersionV1Alpha1.cs b/src/KubeClient/Models/generated/ServerStorageVersionV1Alpha1.cs
new file mode 100644
index 00000000..5cac8551
--- /dev/null
+++ b/src/KubeClient/Models/generated/ServerStorageVersionV1Alpha1.cs
@@ -0,0 +1,51 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.
+ ///
+ public partial class ServerStorageVersionV1Alpha1
+ {
+ ///
+ /// The ID of the reporting API server.
+ ///
+ [YamlMember(Alias = "apiServerID")]
+ [JsonProperty("apiServerID", NullValueHandling = NullValueHandling.Ignore)]
+ public string ApiServerID { get; set; }
+
+ ///
+ /// The API server encodes the object to this version when persisting it in the backend (e.g., etcd).
+ ///
+ [YamlMember(Alias = "encodingVersion")]
+ [JsonProperty("encodingVersion", NullValueHandling = NullValueHandling.Ignore)]
+ public string EncodingVersion { get; set; }
+
+ ///
+ /// The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.
+ ///
+ [YamlMember(Alias = "decodableVersions")]
+ [JsonProperty("decodableVersions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List DecodableVersions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeDecodableVersions() => DecodableVersions.Count > 0;
+
+ ///
+ /// The API server can serve these versions. DecodableVersions must include all ServedVersions.
+ ///
+ [YamlMember(Alias = "servedVersions")]
+ [JsonProperty("servedVersions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ServedVersions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeServedVersions() => ServedVersions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ServiceAccountSubjectV1.cs b/src/KubeClient/Models/generated/ServiceAccountSubjectV1.cs
new file mode 100644
index 00000000..65fccc44
--- /dev/null
+++ b/src/KubeClient/Models/generated/ServiceAccountSubjectV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ServiceAccountSubject holds detailed information for service-account-kind subject.
+ ///
+ public partial class ServiceAccountSubjectV1
+ {
+ ///
+ /// `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// `namespace` is the namespace of matching ServiceAccount objects. Required.
+ ///
+ [YamlMember(Alias = "namespace")]
+ [JsonProperty("namespace", NullValueHandling = NullValueHandling.Include)]
+ public string Namespace { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ServiceAccountSubjectV1Beta3.cs b/src/KubeClient/Models/generated/ServiceAccountSubjectV1Beta3.cs
new file mode 100644
index 00000000..3825a6d9
--- /dev/null
+++ b/src/KubeClient/Models/generated/ServiceAccountSubjectV1Beta3.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ServiceAccountSubject holds detailed information for service-account-kind subject.
+ ///
+ public partial class ServiceAccountSubjectV1Beta3
+ {
+ ///
+ /// `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// `namespace` is the namespace of matching ServiceAccount objects. Required.
+ ///
+ [YamlMember(Alias = "namespace")]
+ [JsonProperty("namespace", NullValueHandling = NullValueHandling.Include)]
+ public string Namespace { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ServiceAccountTokenProjectionV1.cs b/src/KubeClient/Models/generated/ServiceAccountTokenProjectionV1.cs
index cc5c6b51..ca2eb86c 100644
--- a/src/KubeClient/Models/generated/ServiceAccountTokenProjectionV1.cs
+++ b/src/KubeClient/Models/generated/ServiceAccountTokenProjectionV1.cs
@@ -11,21 +11,21 @@ namespace KubeClient.Models
public partial class ServiceAccountTokenProjectionV1
{
///
- /// Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.
+ /// audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.
///
[YamlMember(Alias = "audience")]
[JsonProperty("audience", NullValueHandling = NullValueHandling.Ignore)]
public string Audience { get; set; }
///
- /// Path is the path relative to the mount point of the file to project the token into.
+ /// path is the path relative to the mount point of the file to project the token into.
///
[YamlMember(Alias = "path")]
[JsonProperty("path", NullValueHandling = NullValueHandling.Include)]
public string Path { get; set; }
///
- /// ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.
+ /// expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.
///
[YamlMember(Alias = "expirationSeconds")]
[JsonProperty("expirationSeconds", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ServiceAccountV1.cs b/src/KubeClient/Models/generated/ServiceAccountV1.cs
index 04063b01..8eee9764 100644
--- a/src/KubeClient/Models/generated/ServiceAccountV1.cs
+++ b/src/KubeClient/Models/generated/ServiceAccountV1.cs
@@ -42,7 +42,7 @@ public partial class ServiceAccountV1 : KubeResourceV1
public bool ShouldSerializeImagePullSecrets() => ImagePullSecrets.Count > 0;
///
- /// Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret
+ /// Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret
///
[MergeStrategy(Key = "name")]
[YamlMember(Alias = "secrets")]
diff --git a/src/KubeClient/Models/generated/ServiceBackendPortV1.cs b/src/KubeClient/Models/generated/ServiceBackendPortV1.cs
new file mode 100644
index 00000000..d7de3c8e
--- /dev/null
+++ b/src/KubeClient/Models/generated/ServiceBackendPortV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ServiceBackendPort is the service port being referenced.
+ ///
+ public partial class ServiceBackendPortV1
+ {
+ ///
+ /// name is the name of the port on the Service. This is a mutually exclusive setting with "Number".
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
+ public string Name { get; set; }
+
+ ///
+ /// number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with "Name".
+ ///
+ [YamlMember(Alias = "number")]
+ [JsonProperty("number", NullValueHandling = NullValueHandling.Ignore)]
+ public int? Number { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ServiceCIDRListV1Beta1.cs b/src/KubeClient/Models/generated/ServiceCIDRListV1Beta1.cs
new file mode 100644
index 00000000..f9c7e037
--- /dev/null
+++ b/src/KubeClient/Models/generated/ServiceCIDRListV1Beta1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ServiceCIDRList contains a list of ServiceCIDR objects.
+ ///
+ [KubeListItem("ServiceCIDR", "networking.k8s.io/v1beta1")]
+ [KubeObject("ServiceCIDRList", "networking.k8s.io/v1beta1")]
+ public partial class ServiceCIDRListV1Beta1 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of ServiceCIDRs.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ServiceCIDRSpecV1Beta1.cs b/src/KubeClient/Models/generated/ServiceCIDRSpecV1Beta1.cs
new file mode 100644
index 00000000..47a2d8bd
--- /dev/null
+++ b/src/KubeClient/Models/generated/ServiceCIDRSpecV1Beta1.cs
@@ -0,0 +1,25 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.
+ ///
+ public partial class ServiceCIDRSpecV1Beta1
+ {
+ ///
+ /// CIDRs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.
+ ///
+ [YamlMember(Alias = "cidrs")]
+ [JsonProperty("cidrs", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Cidrs { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeCidrs() => Cidrs.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ServiceCIDRStatusV1Beta1.cs b/src/KubeClient/Models/generated/ServiceCIDRStatusV1Beta1.cs
new file mode 100644
index 00000000..b3d138ae
--- /dev/null
+++ b/src/KubeClient/Models/generated/ServiceCIDRStatusV1Beta1.cs
@@ -0,0 +1,26 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ServiceCIDRStatus describes the current state of the ServiceCIDR.
+ ///
+ public partial class ServiceCIDRStatusV1Beta1
+ {
+ ///
+ /// conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state
+ ///
+ [MergeStrategy(Key = "type")]
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ServiceCIDRV1Beta1.cs b/src/KubeClient/Models/generated/ServiceCIDRV1Beta1.cs
new file mode 100644
index 00000000..a7186406
--- /dev/null
+++ b/src/KubeClient/Models/generated/ServiceCIDRV1Beta1.cs
@@ -0,0 +1,40 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.
+ ///
+ [KubeObject("ServiceCIDR", "networking.k8s.io/v1beta1")]
+ [KubeApi(KubeAction.List, "apis/networking.k8s.io/v1beta1/servicecidrs")]
+ [KubeApi(KubeAction.Create, "apis/networking.k8s.io/v1beta1/servicecidrs")]
+ [KubeApi(KubeAction.Get, "apis/networking.k8s.io/v1beta1/servicecidrs/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/networking.k8s.io/v1beta1/servicecidrs/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/networking.k8s.io/v1beta1/servicecidrs/{name}")]
+ [KubeApi(KubeAction.Update, "apis/networking.k8s.io/v1beta1/servicecidrs/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/networking.k8s.io/v1beta1/watch/servicecidrs")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/networking.k8s.io/v1beta1/servicecidrs")]
+ [KubeApi(KubeAction.Get, "apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/networking.k8s.io/v1beta1/watch/servicecidrs/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status")]
+ public partial class ServiceCIDRV1Beta1 : KubeResourceV1
+ {
+ ///
+ /// spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public ServiceCIDRSpecV1Beta1 Spec { get; set; }
+
+ ///
+ /// status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public ServiceCIDRStatusV1Beta1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ServicePortV1.cs b/src/KubeClient/Models/generated/ServicePortV1.cs
index bf1bfa68..a84b9772 100644
--- a/src/KubeClient/Models/generated/ServicePortV1.cs
+++ b/src/KubeClient/Models/generated/ServicePortV1.cs
@@ -11,21 +11,37 @@ namespace KubeClient.Models
public partial class ServicePortV1
{
///
- /// The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service.
+ /// The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.
///
[YamlMember(Alias = "name")]
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
public string Name { get; set; }
///
- /// The IP protocol for this port. Supports "TCP" and "UDP". Default is TCP.
+ /// The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:
+ ///
+ /// * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).
+ ///
+ /// * Kubernetes-defined prefixed names:
+ /// * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+ /// * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+ /// * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+ ///
+ /// * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.
+ ///
+ [YamlMember(Alias = "appProtocol")]
+ [JsonProperty("appProtocol", NullValueHandling = NullValueHandling.Ignore)]
+ public string AppProtocol { get; set; }
+
+ ///
+ /// The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP.
///
[YamlMember(Alias = "protocol")]
[JsonProperty("protocol", NullValueHandling = NullValueHandling.Ignore)]
public string Protocol { get; set; }
///
- /// The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
+ /// The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
///
[YamlMember(Alias = "nodePort")]
[JsonProperty("nodePort", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/ServiceReferenceV1.cs b/src/KubeClient/Models/generated/ServiceReferenceV1.cs
index 976bd330..ab357d38 100644
--- a/src/KubeClient/Models/generated/ServiceReferenceV1.cs
+++ b/src/KubeClient/Models/generated/ServiceReferenceV1.cs
@@ -23,5 +23,12 @@ public partial class ServiceReferenceV1
[YamlMember(Alias = "namespace")]
[JsonProperty("namespace", NullValueHandling = NullValueHandling.Ignore)]
public string Namespace { get; set; }
+
+ ///
+ /// If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
+ ///
+ [YamlMember(Alias = "port")]
+ [JsonProperty("port", NullValueHandling = NullValueHandling.Ignore)]
+ public int? Port { get; set; }
}
}
diff --git a/src/KubeClient/Models/generated/ServiceSpecV1.cs b/src/KubeClient/Models/generated/ServiceSpecV1.cs
index f41267db..440fa8fc 100644
--- a/src/KubeClient/Models/generated/ServiceSpecV1.cs
+++ b/src/KubeClient/Models/generated/ServiceSpecV1.cs
@@ -11,28 +11,28 @@ namespace KubeClient.Models
public partial class ServiceSpecV1
{
///
- /// clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are "None", empty string (""), or a valid IP address. "None" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
+ /// clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
///
[YamlMember(Alias = "clusterIP")]
[JsonProperty("clusterIP", NullValueHandling = NullValueHandling.Ignore)]
public string ClusterIP { get; set; }
///
- /// Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature.
+ /// Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available.
///
[YamlMember(Alias = "loadBalancerIP")]
[JsonProperty("loadBalancerIP", NullValueHandling = NullValueHandling.Ignore)]
public string LoadBalancerIP { get; set; }
///
- /// externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName.
+ /// externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
///
[YamlMember(Alias = "externalName")]
[JsonProperty("externalName", NullValueHandling = NullValueHandling.Ignore)]
public string ExternalName { get; set; }
///
- /// type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ExternalName" maps to the specified externalName. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types
+ /// type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. "ExternalName" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
///
[YamlMember(Alias = "type")]
[JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)]
@@ -45,6 +45,13 @@ public partial class ServiceSpecV1
[JsonProperty("sessionAffinityConfig", NullValueHandling = NullValueHandling.Ignore)]
public SessionAffinityConfigV1 SessionAffinityConfig { get; set; }
+ ///
+ /// TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to "PreferClose", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature.
+ ///
+ [YamlMember(Alias = "trafficDistribution")]
+ [JsonProperty("trafficDistribution", NullValueHandling = NullValueHandling.Ignore)]
+ public string TrafficDistribution { get; set; }
+
///
/// Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/
///
@@ -57,6 +64,27 @@ public partial class ServiceSpecV1
///
public bool ShouldSerializeSelector() => Selector.Count > 0;
+ ///
+ /// allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is "true". It may be set to "false" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.
+ ///
+ [YamlMember(Alias = "allocateLoadBalancerNodePorts")]
+ [JsonProperty("allocateLoadBalancerNodePorts", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? AllocateLoadBalancerNodePorts { get; set; }
+
+ ///
+ /// ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.
+ ///
+ /// This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
+ ///
+ [YamlMember(Alias = "clusterIPs")]
+ [JsonProperty("clusterIPs", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ClusterIPs { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeClusterIPs() => ClusterIPs.Count > 0;
+
///
/// externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.
///
@@ -70,7 +98,28 @@ public partial class ServiceSpecV1
public bool ShouldSerializeExternalIPs() => ExternalIPs.Count > 0;
///
- /// If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/
+ /// IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are "IPv4" and "IPv6". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to "headless" services. This field will be wiped when updating a Service to type ExternalName.
+ ///
+ /// This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
+ ///
+ [YamlMember(Alias = "ipFamilies")]
+ [JsonProperty("ipFamilies", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List IpFamilies { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeIpFamilies() => IpFamilies.Count > 0;
+
+ ///
+ /// loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
+ ///
+ [YamlMember(Alias = "loadBalancerClass")]
+ [JsonProperty("loadBalancerClass", NullValueHandling = NullValueHandling.Ignore)]
+ public string LoadBalancerClass { get; set; }
+
+ ///
+ /// If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
///
[YamlMember(Alias = "loadBalancerSourceRanges")]
[JsonProperty("loadBalancerSourceRanges", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -95,26 +144,40 @@ public partial class ServiceSpecV1
public bool ShouldSerializePorts() => Ports.Count > 0;
///
- /// publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery.
+ /// publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered "ready" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.
///
[YamlMember(Alias = "publishNotReadyAddresses")]
[JsonProperty("publishNotReadyAddresses", NullValueHandling = NullValueHandling.Ignore)]
public bool? PublishNotReadyAddresses { get; set; }
///
- /// healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local.
+ /// healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.
///
[YamlMember(Alias = "healthCheckNodePort")]
[JsonProperty("healthCheckNodePort", NullValueHandling = NullValueHandling.Ignore)]
public int? HealthCheckNodePort { get; set; }
///
- /// externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading.
+ /// externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get "Cluster" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.
///
[YamlMember(Alias = "externalTrafficPolicy")]
[JsonProperty("externalTrafficPolicy", NullValueHandling = NullValueHandling.Ignore)]
public string ExternalTrafficPolicy { get; set; }
+ ///
+ /// InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to "Local", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).
+ ///
+ [YamlMember(Alias = "internalTrafficPolicy")]
+ [JsonProperty("internalTrafficPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string InternalTrafficPolicy { get; set; }
+
+ ///
+ /// IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be "SingleStack" (a single IP family), "PreferDualStack" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or "RequireDualStack" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.
+ ///
+ [YamlMember(Alias = "ipFamilyPolicy")]
+ [JsonProperty("ipFamilyPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string IpFamilyPolicy { get; set; }
+
///
/// Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
///
diff --git a/src/KubeClient/Models/generated/ServiceStatusV1.cs b/src/KubeClient/Models/generated/ServiceStatusV1.cs
index a6f3d39d..c0232095 100644
--- a/src/KubeClient/Models/generated/ServiceStatusV1.cs
+++ b/src/KubeClient/Models/generated/ServiceStatusV1.cs
@@ -16,5 +16,18 @@ public partial class ServiceStatusV1
[YamlMember(Alias = "loadBalancer")]
[JsonProperty("loadBalancer", NullValueHandling = NullValueHandling.Ignore)]
public LoadBalancerStatusV1 LoadBalancer { get; set; }
+
+ ///
+ /// Current service state
+ ///
+ [MergeStrategy(Key = "type")]
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
}
}
diff --git a/src/KubeClient/Models/generated/ServiceV1.cs b/src/KubeClient/Models/generated/ServiceV1.cs
index 43baffcf..3080db55 100644
--- a/src/KubeClient/Models/generated/ServiceV1.cs
+++ b/src/KubeClient/Models/generated/ServiceV1.cs
@@ -18,23 +18,22 @@ namespace KubeClient.Models
[KubeApi(KubeAction.Delete, "api/v1/namespaces/{namespace}/services/{name}")]
[KubeApi(KubeAction.Update, "api/v1/namespaces/{namespace}/services/{name}")]
[KubeApi(KubeAction.WatchList, "api/v1/watch/namespaces/{namespace}/services")]
+ [KubeApi(KubeAction.DeleteCollection, "api/v1/namespaces/{namespace}/services")]
[KubeApi(KubeAction.Get, "api/v1/namespaces/{namespace}/services/{name}/status")]
[KubeApi(KubeAction.Watch, "api/v1/watch/namespaces/{namespace}/services/{name}")]
[KubeApi(KubeAction.Patch, "api/v1/namespaces/{namespace}/services/{name}/status")]
- [KubeApi(KubeAction.Connect, "api/v1/namespaces/{namespace}/services/{name}/proxy")]
[KubeApi(KubeAction.Update, "api/v1/namespaces/{namespace}/services/{name}/status")]
- [KubeApi(KubeAction.Connect, "api/v1/namespaces/{namespace}/services/{name}/proxy/{path}")]
public partial class ServiceV1 : KubeResourceV1
{
///
- /// Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "spec")]
[JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
public ServiceSpecV1 Spec { get; set; }
///
- /// Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/SleepActionV1.cs b/src/KubeClient/Models/generated/SleepActionV1.cs
new file mode 100644
index 00000000..60edd15a
--- /dev/null
+++ b/src/KubeClient/Models/generated/SleepActionV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// SleepAction describes a "sleep" action.
+ ///
+ public partial class SleepActionV1
+ {
+ ///
+ /// Seconds is the number of seconds to sleep.
+ ///
+ [YamlMember(Alias = "seconds")]
+ [JsonProperty("seconds", NullValueHandling = NullValueHandling.Include)]
+ public long Seconds { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/StatefulSetListV1.cs b/src/KubeClient/Models/generated/StatefulSetListV1.cs
index 9c8a35f9..19c8c760 100644
--- a/src/KubeClient/Models/generated/StatefulSetListV1.cs
+++ b/src/KubeClient/Models/generated/StatefulSetListV1.cs
@@ -13,7 +13,7 @@ namespace KubeClient.Models
public partial class StatefulSetListV1 : KubeResourceListV1
{
///
- /// Description not provided.
+ /// Items is the list of stateful sets.
///
[JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public override List Items { get; } = new List();
diff --git a/src/KubeClient/Models/generated/StatefulSetOrdinalsV1.cs b/src/KubeClient/Models/generated/StatefulSetOrdinalsV1.cs
new file mode 100644
index 00000000..b44093d6
--- /dev/null
+++ b/src/KubeClient/Models/generated/StatefulSetOrdinalsV1.cs
@@ -0,0 +1,23 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.
+ ///
+ public partial class StatefulSetOrdinalsV1
+ {
+ ///
+ /// start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:
+ /// [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).
+ /// If unset, defaults to 0. Replica indices will be in the range:
+ /// [0, .spec.replicas).
+ ///
+ [YamlMember(Alias = "start")]
+ [JsonProperty("start", NullValueHandling = NullValueHandling.Ignore)]
+ public int? Start { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/StatefulSetPersistentVolumeClaimRetentionPolicyV1.cs b/src/KubeClient/Models/generated/StatefulSetPersistentVolumeClaimRetentionPolicyV1.cs
new file mode 100644
index 00000000..c27e99fb
--- /dev/null
+++ b/src/KubeClient/Models/generated/StatefulSetPersistentVolumeClaimRetentionPolicyV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.
+ ///
+ public partial class StatefulSetPersistentVolumeClaimRetentionPolicyV1
+ {
+ ///
+ /// WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.
+ ///
+ [YamlMember(Alias = "whenDeleted")]
+ [JsonProperty("whenDeleted", NullValueHandling = NullValueHandling.Ignore)]
+ public string WhenDeleted { get; set; }
+
+ ///
+ /// WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.
+ ///
+ [YamlMember(Alias = "whenScaled")]
+ [JsonProperty("whenScaled", NullValueHandling = NullValueHandling.Ignore)]
+ public string WhenScaled { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/StatefulSetSpecV1.cs b/src/KubeClient/Models/generated/StatefulSetSpecV1.cs
index 70b2f4ae..f1c338b4 100644
--- a/src/KubeClient/Models/generated/StatefulSetSpecV1.cs
+++ b/src/KubeClient/Models/generated/StatefulSetSpecV1.cs
@@ -18,7 +18,7 @@ public partial class StatefulSetSpecV1
public string ServiceName { get; set; }
///
- /// template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.
+ /// template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3". The only allowed template.spec.restartPolicy value is "Always".
///
[YamlMember(Alias = "template")]
[JsonProperty("template", NullValueHandling = NullValueHandling.Include)]
@@ -31,6 +31,20 @@ public partial class StatefulSetSpecV1
[JsonProperty("selector", NullValueHandling = NullValueHandling.Include)]
public LabelSelectorV1 Selector { get; set; }
+ ///
+ /// Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
+ ///
+ [YamlMember(Alias = "minReadySeconds")]
+ [JsonProperty("minReadySeconds", NullValueHandling = NullValueHandling.Ignore)]
+ public int? MinReadySeconds { get; set; }
+
+ ///
+ /// ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested.
+ ///
+ [YamlMember(Alias = "ordinals")]
+ [JsonProperty("ordinals", NullValueHandling = NullValueHandling.Ignore)]
+ public StatefulSetOrdinalsV1 Ordinals { get; set; }
+
///
/// replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.
///
@@ -57,6 +71,13 @@ public partial class StatefulSetSpecV1
[JsonProperty("revisionHistoryLimit", NullValueHandling = NullValueHandling.Ignore)]
public int? RevisionHistoryLimit { get; set; }
+ ///
+ /// persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.
+ ///
+ [YamlMember(Alias = "persistentVolumeClaimRetentionPolicy")]
+ [JsonProperty("persistentVolumeClaimRetentionPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public StatefulSetPersistentVolumeClaimRetentionPolicyV1 PersistentVolumeClaimRetentionPolicy { get; set; }
+
///
/// podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.
///
diff --git a/src/KubeClient/Models/generated/StatefulSetStatusV1.cs b/src/KubeClient/Models/generated/StatefulSetStatusV1.cs
index 382f610a..1020fb8b 100644
--- a/src/KubeClient/Models/generated/StatefulSetStatusV1.cs
+++ b/src/KubeClient/Models/generated/StatefulSetStatusV1.cs
@@ -31,6 +31,13 @@ public partial class StatefulSetStatusV1
[JsonProperty("updateRevision", NullValueHandling = NullValueHandling.Ignore)]
public string UpdateRevision { get; set; }
+ ///
+ /// Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.
+ ///
+ [YamlMember(Alias = "availableReplicas")]
+ [JsonProperty("availableReplicas", NullValueHandling = NullValueHandling.Ignore)]
+ public int? AvailableReplicas { get; set; }
+
///
/// Represents the latest available observations of a statefulset's current state.
///
@@ -52,7 +59,7 @@ public partial class StatefulSetStatusV1
public int? CurrentReplicas { get; set; }
///
- /// readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.
+ /// readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.
///
[YamlMember(Alias = "readyReplicas")]
[JsonProperty("readyReplicas", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/StatefulSetV1.cs b/src/KubeClient/Models/generated/StatefulSetV1.cs
index d834c462..396d9485 100644
--- a/src/KubeClient/Models/generated/StatefulSetV1.cs
+++ b/src/KubeClient/Models/generated/StatefulSetV1.cs
@@ -7,8 +7,9 @@ namespace KubeClient.Models
{
///
/// StatefulSet represents a set of pods with consistent identities. Identities are defined as:
- /// - Network: A single stable DNS and hostname.
- /// - Storage: As many VolumeClaims as requested.
+ /// - Network: A single stable DNS and hostname.
+ /// - Storage: As many VolumeClaims as requested.
+ ///
/// The StatefulSet guarantees that a given network identity will always map to the same storage identity.
///
[KubeObject("StatefulSet", "apps/v1")]
diff --git a/src/KubeClient/Models/generated/StatusDetailsV1.cs b/src/KubeClient/Models/generated/StatusDetailsV1.cs
index c3379072..6373e9fd 100644
--- a/src/KubeClient/Models/generated/StatusDetailsV1.cs
+++ b/src/KubeClient/Models/generated/StatusDetailsV1.cs
@@ -11,14 +11,14 @@ namespace KubeClient.Models
public partial class StatusDetailsV1
{
///
- /// The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
+ /// The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
///
[YamlMember(Alias = "kind")]
[JsonProperty("kind", NullValueHandling = NullValueHandling.Ignore)]
public string Kind { get; set; }
///
- /// UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids
+ /// UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
///
[YamlMember(Alias = "uid")]
[JsonProperty("uid", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/StatusV1.cs b/src/KubeClient/Models/generated/StatusV1.cs
index da663cd8..306490aa 100644
--- a/src/KubeClient/Models/generated/StatusV1.cs
+++ b/src/KubeClient/Models/generated/StatusV1.cs
@@ -40,7 +40,7 @@ public partial class StatusV1 : KubeResourceListV1
public StatusDetailsV1 Details { get; set; }
///
- /// Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
+ /// Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
///
[YamlMember(Alias = "status")]
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/StorageClassListV1.cs b/src/KubeClient/Models/generated/StorageClassListV1.cs
index e6dc47a0..a6bc661c 100644
--- a/src/KubeClient/Models/generated/StorageClassListV1.cs
+++ b/src/KubeClient/Models/generated/StorageClassListV1.cs
@@ -13,7 +13,7 @@ namespace KubeClient.Models
public partial class StorageClassListV1 : KubeResourceListV1
{
///
- /// Items is the list of StorageClasses
+ /// items is the list of StorageClasses
///
[JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
public override List Items { get; } = new List();
diff --git a/src/KubeClient/Models/generated/StorageClassV1.cs b/src/KubeClient/Models/generated/StorageClassV1.cs
index c2841a95..a59fc4f8 100644
--- a/src/KubeClient/Models/generated/StorageClassV1.cs
+++ b/src/KubeClient/Models/generated/StorageClassV1.cs
@@ -23,28 +23,28 @@ namespace KubeClient.Models
public partial class StorageClassV1 : KubeResourceV1
{
///
- /// VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is alpha-level and is only honored by servers that enable the VolumeScheduling feature.
+ /// volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
///
[YamlMember(Alias = "volumeBindingMode")]
[JsonProperty("volumeBindingMode", NullValueHandling = NullValueHandling.Ignore)]
public string VolumeBindingMode { get; set; }
///
- /// AllowVolumeExpansion shows whether the storage class allow volume expand
+ /// allowVolumeExpansion shows whether the storage class allow volume expand.
///
[YamlMember(Alias = "allowVolumeExpansion")]
[JsonProperty("allowVolumeExpansion", NullValueHandling = NullValueHandling.Ignore)]
public bool? AllowVolumeExpansion { get; set; }
///
- /// Provisioner indicates the type of the provisioner.
+ /// provisioner indicates the type of the provisioner.
///
[YamlMember(Alias = "provisioner")]
[JsonProperty("provisioner", NullValueHandling = NullValueHandling.Include)]
public string Provisioner { get; set; }
///
- /// Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is alpha-level and is only honored by servers that enable the DynamicProvisioningScheduling feature.
+ /// allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.
///
[YamlMember(Alias = "allowedTopologies")]
[JsonProperty("allowedTopologies", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -56,7 +56,7 @@ public partial class StorageClassV1 : KubeResourceV1
public bool ShouldSerializeAllowedTopologies() => AllowedTopologies.Count > 0;
///
- /// Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
+ /// mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
///
[YamlMember(Alias = "mountOptions")]
[JsonProperty("mountOptions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -68,7 +68,7 @@ public partial class StorageClassV1 : KubeResourceV1
public bool ShouldSerializeMountOptions() => MountOptions.Count > 0;
///
- /// Parameters holds the parameters for the provisioner that should create volumes of this storage class.
+ /// parameters holds the parameters for the provisioner that should create volumes of this storage class.
///
[YamlMember(Alias = "parameters")]
[JsonProperty("parameters", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
@@ -80,7 +80,7 @@ public partial class StorageClassV1 : KubeResourceV1
public bool ShouldSerializeParameters() => Parameters.Count > 0;
///
- /// Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
+ /// reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.
///
[YamlMember(Alias = "reclaimPolicy")]
[JsonProperty("reclaimPolicy", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/StorageOSPersistentVolumeSourceV1.cs b/src/KubeClient/Models/generated/StorageOSPersistentVolumeSourceV1.cs
index 896b57bc..e403e04f 100644
--- a/src/KubeClient/Models/generated/StorageOSPersistentVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/StorageOSPersistentVolumeSourceV1.cs
@@ -11,35 +11,35 @@ namespace KubeClient.Models
public partial class StorageOSPersistentVolumeSourceV1
{
///
- /// Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+ /// fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
+ /// volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
///
[YamlMember(Alias = "volumeName")]
[JsonProperty("volumeName", NullValueHandling = NullValueHandling.Ignore)]
public string VolumeName { get; set; }
///
- /// VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.
+ /// volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.
///
[YamlMember(Alias = "volumeNamespace")]
[JsonProperty("volumeNamespace", NullValueHandling = NullValueHandling.Ignore)]
public string VolumeNamespace { get; set; }
///
- /// SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.
+ /// secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Ignore)]
public ObjectReferenceV1 SecretRef { get; set; }
///
- /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
+ /// readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/StorageOSVolumeSourceV1.cs b/src/KubeClient/Models/generated/StorageOSVolumeSourceV1.cs
index 8e074eae..f99eccbe 100644
--- a/src/KubeClient/Models/generated/StorageOSVolumeSourceV1.cs
+++ b/src/KubeClient/Models/generated/StorageOSVolumeSourceV1.cs
@@ -11,35 +11,35 @@ namespace KubeClient.Models
public partial class StorageOSVolumeSourceV1
{
///
- /// Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+ /// fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
///
[YamlMember(Alias = "fsType")]
[JsonProperty("fsType", NullValueHandling = NullValueHandling.Ignore)]
public string FsType { get; set; }
///
- /// VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
+ /// volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
///
[YamlMember(Alias = "volumeName")]
[JsonProperty("volumeName", NullValueHandling = NullValueHandling.Ignore)]
public string VolumeName { get; set; }
///
- /// VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.
+ /// volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.
///
[YamlMember(Alias = "volumeNamespace")]
[JsonProperty("volumeNamespace", NullValueHandling = NullValueHandling.Ignore)]
public string VolumeNamespace { get; set; }
///
- /// SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.
+ /// secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.
///
[YamlMember(Alias = "secretRef")]
[JsonProperty("secretRef", NullValueHandling = NullValueHandling.Ignore)]
public LocalObjectReferenceV1 SecretRef { get; set; }
///
- /// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
+ /// readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
///
[YamlMember(Alias = "readOnly")]
[JsonProperty("readOnly", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/StorageVersionConditionV1Alpha1.cs b/src/KubeClient/Models/generated/StorageVersionConditionV1Alpha1.cs
new file mode 100644
index 00000000..abdc9f3e
--- /dev/null
+++ b/src/KubeClient/Models/generated/StorageVersionConditionV1Alpha1.cs
@@ -0,0 +1,55 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Describes the state of the storageVersion at a certain point.
+ ///
+ public partial class StorageVersionConditionV1Alpha1
+ {
+ ///
+ /// Last time the condition transitioned from one status to another.
+ ///
+ [YamlMember(Alias = "lastTransitionTime")]
+ [JsonProperty("lastTransitionTime", NullValueHandling = NullValueHandling.Ignore)]
+ public DateTime? LastTransitionTime { get; set; }
+
+ ///
+ /// A human readable message indicating details about the transition.
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Include)]
+ public string Message { get; set; }
+
+ ///
+ /// Type of the condition.
+ ///
+ [YamlMember(Alias = "type")]
+ [JsonProperty("type", NullValueHandling = NullValueHandling.Include)]
+ public string Type { get; set; }
+
+ ///
+ /// If set, this represents the .metadata.generation that the condition was set based upon.
+ ///
+ [YamlMember(Alias = "observedGeneration")]
+ [JsonProperty("observedGeneration", NullValueHandling = NullValueHandling.Ignore)]
+ public long? ObservedGeneration { get; set; }
+
+ ///
+ /// The reason for the condition's last transition.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Include)]
+ public string Reason { get; set; }
+
+ ///
+ /// Status of the condition, one of True, False, Unknown.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Include)]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/StorageVersionListV1Alpha1.cs b/src/KubeClient/Models/generated/StorageVersionListV1Alpha1.cs
new file mode 100644
index 00000000..4c1306ff
--- /dev/null
+++ b/src/KubeClient/Models/generated/StorageVersionListV1Alpha1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// A list of StorageVersions.
+ ///
+ [KubeListItem("StorageVersion", "internal.apiserver.k8s.io/v1alpha1")]
+ [KubeObject("StorageVersionList", "internal.apiserver.k8s.io/v1alpha1")]
+ public partial class StorageVersionListV1Alpha1 : KubeResourceListV1
+ {
+ ///
+ /// Items holds a list of StorageVersion
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/StorageVersionMigrationListV1Alpha1.cs b/src/KubeClient/Models/generated/StorageVersionMigrationListV1Alpha1.cs
new file mode 100644
index 00000000..eba4a32d
--- /dev/null
+++ b/src/KubeClient/Models/generated/StorageVersionMigrationListV1Alpha1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// StorageVersionMigrationList is a collection of storage version migrations.
+ ///
+ [KubeListItem("StorageVersionMigration", "storagemigration.k8s.io/v1alpha1")]
+ [KubeObject("StorageVersionMigrationList", "storagemigration.k8s.io/v1alpha1")]
+ public partial class StorageVersionMigrationListV1Alpha1 : KubeResourceListV1
+ {
+ ///
+ /// Items is the list of StorageVersionMigration
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/StorageVersionMigrationSpecV1Alpha1.cs b/src/KubeClient/Models/generated/StorageVersionMigrationSpecV1Alpha1.cs
new file mode 100644
index 00000000..427ec259
--- /dev/null
+++ b/src/KubeClient/Models/generated/StorageVersionMigrationSpecV1Alpha1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Spec of the storage version migration.
+ ///
+ public partial class StorageVersionMigrationSpecV1Alpha1
+ {
+ ///
+ /// The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable.
+ ///
+ [YamlMember(Alias = "resource")]
+ [JsonProperty("resource", NullValueHandling = NullValueHandling.Include)]
+ public GroupVersionResourceV1Alpha1 Resource { get; set; }
+
+ ///
+ /// The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is "Running", users can use this token to check the progress of the migration.
+ ///
+ [YamlMember(Alias = "continueToken")]
+ [JsonProperty("continueToken", NullValueHandling = NullValueHandling.Ignore)]
+ public string ContinueToken { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/StorageVersionMigrationStatusV1Alpha1.cs b/src/KubeClient/Models/generated/StorageVersionMigrationStatusV1Alpha1.cs
new file mode 100644
index 00000000..5e4aca4f
--- /dev/null
+++ b/src/KubeClient/Models/generated/StorageVersionMigrationStatusV1Alpha1.cs
@@ -0,0 +1,33 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Status of the storage version migration.
+ ///
+ public partial class StorageVersionMigrationStatusV1Alpha1
+ {
+ ///
+ /// ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource.
+ ///
+ [YamlMember(Alias = "resourceVersion")]
+ [JsonProperty("resourceVersion", NullValueHandling = NullValueHandling.Ignore)]
+ public string ResourceVersion { get; set; }
+
+ ///
+ /// The latest available observations of the migration's current state.
+ ///
+ [MergeStrategy(Key = "type")]
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/StorageVersionMigrationV1Alpha1.cs b/src/KubeClient/Models/generated/StorageVersionMigrationV1Alpha1.cs
new file mode 100644
index 00000000..638901dc
--- /dev/null
+++ b/src/KubeClient/Models/generated/StorageVersionMigrationV1Alpha1.cs
@@ -0,0 +1,40 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// StorageVersionMigration represents a migration of stored data to the latest storage version.
+ ///
+ [KubeObject("StorageVersionMigration", "storagemigration.k8s.io/v1alpha1")]
+ [KubeApi(KubeAction.List, "apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations")]
+ [KubeApi(KubeAction.Create, "apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations")]
+ [KubeApi(KubeAction.Get, "apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}")]
+ [KubeApi(KubeAction.Update, "apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/storagemigration.k8s.io/v1alpha1/watch/storageversionmigrations")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations")]
+ [KubeApi(KubeAction.Get, "apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/storagemigration.k8s.io/v1alpha1/watch/storageversionmigrations/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status")]
+ public partial class StorageVersionMigrationV1Alpha1 : KubeResourceV1
+ {
+ ///
+ /// Specification of the migration.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public StorageVersionMigrationSpecV1Alpha1 Spec { get; set; }
+
+ ///
+ /// Status of the migration.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public StorageVersionMigrationStatusV1Alpha1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/StorageVersionSpecV1Alpha1.cs b/src/KubeClient/Models/generated/StorageVersionSpecV1Alpha1.cs
new file mode 100644
index 00000000..873e6edd
--- /dev/null
+++ b/src/KubeClient/Models/generated/StorageVersionSpecV1Alpha1.cs
@@ -0,0 +1,14 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// StorageVersionSpec is an empty spec.
+ ///
+ public partial class StorageVersionSpecV1Alpha1
+ {
+ }
+}
diff --git a/src/KubeClient/Models/generated/StorageVersionStatusV1Alpha1.cs b/src/KubeClient/Models/generated/StorageVersionStatusV1Alpha1.cs
new file mode 100644
index 00000000..199870ef
--- /dev/null
+++ b/src/KubeClient/Models/generated/StorageVersionStatusV1Alpha1.cs
@@ -0,0 +1,44 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.
+ ///
+ public partial class StorageVersionStatusV1Alpha1
+ {
+ ///
+ /// If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.
+ ///
+ [YamlMember(Alias = "commonEncodingVersion")]
+ [JsonProperty("commonEncodingVersion", NullValueHandling = NullValueHandling.Ignore)]
+ public string CommonEncodingVersion { get; set; }
+
+ ///
+ /// The latest available observations of the storageVersion's state.
+ ///
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+
+ ///
+ /// The reported versions per API server instance.
+ ///
+ [YamlMember(Alias = "storageVersions")]
+ [JsonProperty("storageVersions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List StorageVersions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeStorageVersions() => StorageVersions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/StorageVersionV1Alpha1.cs b/src/KubeClient/Models/generated/StorageVersionV1Alpha1.cs
new file mode 100644
index 00000000..b4342638
--- /dev/null
+++ b/src/KubeClient/Models/generated/StorageVersionV1Alpha1.cs
@@ -0,0 +1,40 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Storage version of a specific resource.
+ ///
+ [KubeObject("StorageVersion", "internal.apiserver.k8s.io/v1alpha1")]
+ [KubeApi(KubeAction.List, "apis/internal.apiserver.k8s.io/v1alpha1/storageversions")]
+ [KubeApi(KubeAction.Create, "apis/internal.apiserver.k8s.io/v1alpha1/storageversions")]
+ [KubeApi(KubeAction.Get, "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}")]
+ [KubeApi(KubeAction.Update, "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/internal.apiserver.k8s.io/v1alpha1/storageversions")]
+ [KubeApi(KubeAction.Get, "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status")]
+ public partial class StorageVersionV1Alpha1 : KubeResourceV1
+ {
+ ///
+ /// Spec is an empty spec. It is here to comply with Kubernetes API style.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public StorageVersionSpecV1Alpha1 Spec { get; set; }
+
+ ///
+ /// API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Include)]
+ public StorageVersionStatusV1Alpha1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/SubjectV1Beta3.cs b/src/KubeClient/Models/generated/SubjectV1Beta3.cs
new file mode 100644
index 00000000..e9767b82
--- /dev/null
+++ b/src/KubeClient/Models/generated/SubjectV1Beta3.cs
@@ -0,0 +1,41 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.
+ ///
+ public partial class SubjectV1Beta3
+ {
+ ///
+ /// `kind` indicates which one of the other fields is non-empty. Required
+ ///
+ [YamlMember(Alias = "kind")]
+ [JsonProperty("kind", NullValueHandling = NullValueHandling.Include)]
+ public string Kind { get; set; }
+
+ ///
+ /// `group` matches based on user group name.
+ ///
+ [YamlMember(Alias = "group")]
+ [JsonProperty("group", NullValueHandling = NullValueHandling.Ignore)]
+ public GroupSubjectV1Beta3 Group { get; set; }
+
+ ///
+ /// `user` matches based on username.
+ ///
+ [YamlMember(Alias = "user")]
+ [JsonProperty("user", NullValueHandling = NullValueHandling.Ignore)]
+ public UserSubjectV1Beta3 User { get; set; }
+
+ ///
+ /// `serviceAccount` matches ServiceAccounts.
+ ///
+ [YamlMember(Alias = "serviceAccount")]
+ [JsonProperty("serviceAccount", NullValueHandling = NullValueHandling.Ignore)]
+ public ServiceAccountSubjectV1Beta3 ServiceAccount { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/SuccessPolicyRuleV1.cs b/src/KubeClient/Models/generated/SuccessPolicyRuleV1.cs
new file mode 100644
index 00000000..9e5179fb
--- /dev/null
+++ b/src/KubeClient/Models/generated/SuccessPolicyRuleV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the "succeededIndexes" or "succeededCount" specified.
+ ///
+ public partial class SuccessPolicyRuleV1
+ {
+ ///
+ /// succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to ".spec.completions-1" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". When this field is null, this field doesn't default to any value and is never evaluated at any time.
+ ///
+ [YamlMember(Alias = "succeededIndexes")]
+ [JsonProperty("succeededIndexes", NullValueHandling = NullValueHandling.Ignore)]
+ public string SucceededIndexes { get; set; }
+
+ ///
+ /// succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is "1-4", succeededCount is "3", and completed indexes are "1", "3", and "5", the Job isn't declared as succeeded because only "1" and "3" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.
+ ///
+ [YamlMember(Alias = "succeededCount")]
+ [JsonProperty("succeededCount", NullValueHandling = NullValueHandling.Ignore)]
+ public int? SucceededCount { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/SuccessPolicyV1.cs b/src/KubeClient/Models/generated/SuccessPolicyV1.cs
new file mode 100644
index 00000000..d609e44e
--- /dev/null
+++ b/src/KubeClient/Models/generated/SuccessPolicyV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
+ ///
+ public partial class SuccessPolicyV1
+ {
+ ///
+ /// rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the "SucceededCriteriaMet" condition is added, and the lingering pods are removed. The terminal state for such a Job has the "Complete" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.
+ ///
+ [YamlMember(Alias = "rules")]
+ [JsonProperty("rules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Rules { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/TaintV1.cs b/src/KubeClient/Models/generated/TaintV1.cs
index 3a64c21a..83349ad6 100644
--- a/src/KubeClient/Models/generated/TaintV1.cs
+++ b/src/KubeClient/Models/generated/TaintV1.cs
@@ -18,7 +18,7 @@ public partial class TaintV1
public DateTime? TimeAdded { get; set; }
///
- /// Required. The taint value corresponding to the taint key.
+ /// The taint value corresponding to the taint key.
///
[YamlMember(Alias = "value")]
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/src/KubeClient/Models/generated/TokenRequestSpecV1.cs b/src/KubeClient/Models/generated/TokenRequestSpecV1.cs
new file mode 100644
index 00000000..553c74db
--- /dev/null
+++ b/src/KubeClient/Models/generated/TokenRequestSpecV1.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// TokenRequestSpec contains client provided parameters of a token request.
+ ///
+ public partial class TokenRequestSpecV1
+ {
+ ///
+ /// BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation.
+ ///
+ [YamlMember(Alias = "boundObjectRef")]
+ [JsonProperty("boundObjectRef", NullValueHandling = NullValueHandling.Ignore)]
+ public BoundObjectReferenceV1 BoundObjectRef { get; set; }
+
+ ///
+ /// Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.
+ ///
+ [YamlMember(Alias = "audiences")]
+ [JsonProperty("audiences", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Audiences { get; } = new List();
+
+ ///
+ /// ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.
+ ///
+ [YamlMember(Alias = "expirationSeconds")]
+ [JsonProperty("expirationSeconds", NullValueHandling = NullValueHandling.Ignore)]
+ public long? ExpirationSeconds { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/TokenRequestStatusV1.cs b/src/KubeClient/Models/generated/TokenRequestStatusV1.cs
new file mode 100644
index 00000000..82e5dcc8
--- /dev/null
+++ b/src/KubeClient/Models/generated/TokenRequestStatusV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// TokenRequestStatus is the result of a token request.
+ ///
+ public partial class TokenRequestStatusV1
+ {
+ ///
+ /// Token is the opaque bearer token.
+ ///
+ [YamlMember(Alias = "token")]
+ [JsonProperty("token", NullValueHandling = NullValueHandling.Include)]
+ public string Token { get; set; }
+
+ ///
+ /// ExpirationTimestamp is the time of expiration of the returned token.
+ ///
+ [YamlMember(Alias = "expirationTimestamp")]
+ [JsonProperty("expirationTimestamp", NullValueHandling = NullValueHandling.Include)]
+ public DateTime? ExpirationTimestamp { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/TokenRequestV1.cs b/src/KubeClient/Models/generated/TokenRequestV1.cs
new file mode 100644
index 00000000..22e7b45c
--- /dev/null
+++ b/src/KubeClient/Models/generated/TokenRequestV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// TokenRequest contains parameters of a service account token.
+ ///
+ public partial class TokenRequestV1
+ {
+ ///
+ /// audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.
+ ///
+ [YamlMember(Alias = "audience")]
+ [JsonProperty("audience", NullValueHandling = NullValueHandling.Include)]
+ public string Audience { get; set; }
+
+ ///
+ /// expirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec".
+ ///
+ [YamlMember(Alias = "expirationSeconds")]
+ [JsonProperty("expirationSeconds", NullValueHandling = NullValueHandling.Ignore)]
+ public long? ExpirationSeconds { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/TokenReviewSpecV1.cs b/src/KubeClient/Models/generated/TokenReviewSpecV1.cs
index 84ff7b2a..e948f342 100644
--- a/src/KubeClient/Models/generated/TokenReviewSpecV1.cs
+++ b/src/KubeClient/Models/generated/TokenReviewSpecV1.cs
@@ -16,5 +16,17 @@ public partial class TokenReviewSpecV1
[YamlMember(Alias = "token")]
[JsonProperty("token", NullValueHandling = NullValueHandling.Ignore)]
public string Token { get; set; }
+
+ ///
+ /// Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.
+ ///
+ [YamlMember(Alias = "audiences")]
+ [JsonProperty("audiences", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Audiences { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAudiences() => Audiences.Count > 0;
}
}
diff --git a/src/KubeClient/Models/generated/TokenReviewStatusV1.cs b/src/KubeClient/Models/generated/TokenReviewStatusV1.cs
index a68f8e69..7284033c 100644
--- a/src/KubeClient/Models/generated/TokenReviewStatusV1.cs
+++ b/src/KubeClient/Models/generated/TokenReviewStatusV1.cs
@@ -30,5 +30,17 @@ public partial class TokenReviewStatusV1
[YamlMember(Alias = "user")]
[JsonProperty("user", NullValueHandling = NullValueHandling.Ignore)]
public UserInfoV1 User { get; set; }
+
+ ///
+ /// Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server.
+ ///
+ [YamlMember(Alias = "audiences")]
+ [JsonProperty("audiences", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Audiences { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAudiences() => Audiences.Count > 0;
}
}
diff --git a/src/KubeClient/Models/generated/TopologySpreadConstraintV1.cs b/src/KubeClient/Models/generated/TopologySpreadConstraintV1.cs
new file mode 100644
index 00000000..e4c2bb20
--- /dev/null
+++ b/src/KubeClient/Models/generated/TopologySpreadConstraintV1.cs
@@ -0,0 +1,85 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// TopologySpreadConstraint specifies how to spread matching pods among the given topology.
+ ///
+ public partial class TopologySpreadConstraintV1
+ {
+ ///
+ /// WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,
+ /// but giving higher precedence to topologies that would help reduce the
+ /// skew.
+ /// A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.
+ ///
+ [YamlMember(Alias = "whenUnsatisfiable")]
+ [JsonProperty("whenUnsatisfiable", NullValueHandling = NullValueHandling.Include)]
+ public string WhenUnsatisfiable { get; set; }
+
+ ///
+ /// LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.
+ ///
+ [YamlMember(Alias = "labelSelector")]
+ [JsonProperty("labelSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 LabelSelector { get; set; }
+
+ ///
+ /// MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.
+ ///
+ /// This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).
+ ///
+ [YamlMember(Alias = "matchLabelKeys")]
+ [JsonProperty("matchLabelKeys", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List MatchLabelKeys { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeMatchLabelKeys() => MatchLabelKeys.Count > 0;
+
+ ///
+ /// MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.
+ ///
+ /// For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.
+ ///
+ [YamlMember(Alias = "minDomains")]
+ [JsonProperty("minDomains", NullValueHandling = NullValueHandling.Ignore)]
+ public int? MinDomains { get; set; }
+
+ ///
+ /// MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.
+ ///
+ [YamlMember(Alias = "maxSkew")]
+ [JsonProperty("maxSkew", NullValueHandling = NullValueHandling.Include)]
+ public int MaxSkew { get; set; }
+
+ ///
+ /// NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.
+ ///
+ /// If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
+ ///
+ [YamlMember(Alias = "nodeAffinityPolicy")]
+ [JsonProperty("nodeAffinityPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string NodeAffinityPolicy { get; set; }
+
+ ///
+ /// NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.
+ ///
+ /// If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
+ ///
+ [YamlMember(Alias = "nodeTaintsPolicy")]
+ [JsonProperty("nodeTaintsPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string NodeTaintsPolicy { get; set; }
+
+ ///
+ /// TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field.
+ ///
+ [YamlMember(Alias = "topologyKey")]
+ [JsonProperty("topologyKey", NullValueHandling = NullValueHandling.Include)]
+ public string TopologyKey { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/TypeCheckingV1.cs b/src/KubeClient/Models/generated/TypeCheckingV1.cs
new file mode 100644
index 00000000..0933e5b6
--- /dev/null
+++ b/src/KubeClient/Models/generated/TypeCheckingV1.cs
@@ -0,0 +1,25 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy
+ ///
+ public partial class TypeCheckingV1
+ {
+ ///
+ /// The type checking warnings for each expression.
+ ///
+ [YamlMember(Alias = "expressionWarnings")]
+ [JsonProperty("expressionWarnings", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ExpressionWarnings { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeExpressionWarnings() => ExpressionWarnings.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/TypeCheckingV1Alpha1.cs b/src/KubeClient/Models/generated/TypeCheckingV1Alpha1.cs
new file mode 100644
index 00000000..04c3fc4f
--- /dev/null
+++ b/src/KubeClient/Models/generated/TypeCheckingV1Alpha1.cs
@@ -0,0 +1,25 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy
+ ///
+ public partial class TypeCheckingV1Alpha1
+ {
+ ///
+ /// The type checking warnings for each expression.
+ ///
+ [YamlMember(Alias = "expressionWarnings")]
+ [JsonProperty("expressionWarnings", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ExpressionWarnings { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeExpressionWarnings() => ExpressionWarnings.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/TypeCheckingV1Beta1.cs b/src/KubeClient/Models/generated/TypeCheckingV1Beta1.cs
new file mode 100644
index 00000000..25d27c00
--- /dev/null
+++ b/src/KubeClient/Models/generated/TypeCheckingV1Beta1.cs
@@ -0,0 +1,25 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy
+ ///
+ public partial class TypeCheckingV1Beta1
+ {
+ ///
+ /// The type checking warnings for each expression.
+ ///
+ [YamlMember(Alias = "expressionWarnings")]
+ [JsonProperty("expressionWarnings", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ExpressionWarnings { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeExpressionWarnings() => ExpressionWarnings.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/TypedLocalObjectReferenceV1.cs b/src/KubeClient/Models/generated/TypedLocalObjectReferenceV1.cs
new file mode 100644
index 00000000..44a91a39
--- /dev/null
+++ b/src/KubeClient/Models/generated/TypedLocalObjectReferenceV1.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.
+ ///
+ public partial class TypedLocalObjectReferenceV1
+ {
+ ///
+ /// Kind is the type of resource being referenced
+ ///
+ [YamlMember(Alias = "kind")]
+ [JsonProperty("kind", NullValueHandling = NullValueHandling.Include)]
+ public string Kind { get; set; }
+
+ ///
+ /// Name is the name of resource being referenced
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
+ ///
+ [YamlMember(Alias = "apiGroup")]
+ [JsonProperty("apiGroup", NullValueHandling = NullValueHandling.Ignore)]
+ public string ApiGroup { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/TypedObjectReferenceV1.cs b/src/KubeClient/Models/generated/TypedObjectReferenceV1.cs
new file mode 100644
index 00000000..bcccb7c6
--- /dev/null
+++ b/src/KubeClient/Models/generated/TypedObjectReferenceV1.cs
@@ -0,0 +1,41 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// No description provided.
+ ///
+ public partial class TypedObjectReferenceV1
+ {
+ ///
+ /// Kind is the type of resource being referenced
+ ///
+ [YamlMember(Alias = "kind")]
+ [JsonProperty("kind", NullValueHandling = NullValueHandling.Include)]
+ public string Kind { get; set; }
+
+ ///
+ /// Name is the name of resource being referenced
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
+ ///
+ [YamlMember(Alias = "namespace")]
+ [JsonProperty("namespace", NullValueHandling = NullValueHandling.Ignore)]
+ public string Namespace { get; set; }
+
+ ///
+ /// APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
+ ///
+ [YamlMember(Alias = "apiGroup")]
+ [JsonProperty("apiGroup", NullValueHandling = NullValueHandling.Ignore)]
+ public string ApiGroup { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/UncountedTerminatedPodsV1.cs b/src/KubeClient/Models/generated/UncountedTerminatedPodsV1.cs
new file mode 100644
index 00000000..03c7d8ac
--- /dev/null
+++ b/src/KubeClient/Models/generated/UncountedTerminatedPodsV1.cs
@@ -0,0 +1,37 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.
+ ///
+ public partial class UncountedTerminatedPodsV1
+ {
+ ///
+ /// failed holds UIDs of failed Pods.
+ ///
+ [YamlMember(Alias = "failed")]
+ [JsonProperty("failed", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Failed { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeFailed() => Failed.Count > 0;
+
+ ///
+ /// succeeded holds UIDs of succeeded Pods.
+ ///
+ [YamlMember(Alias = "succeeded")]
+ [JsonProperty("succeeded", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Succeeded { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeSucceeded() => Succeeded.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/UserSubjectV1.cs b/src/KubeClient/Models/generated/UserSubjectV1.cs
new file mode 100644
index 00000000..8268457a
--- /dev/null
+++ b/src/KubeClient/Models/generated/UserSubjectV1.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// UserSubject holds detailed information for user-kind subject.
+ ///
+ public partial class UserSubjectV1
+ {
+ ///
+ /// `name` is the username that matches, or "*" to match all usernames. Required.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/UserSubjectV1Beta3.cs b/src/KubeClient/Models/generated/UserSubjectV1Beta3.cs
new file mode 100644
index 00000000..22b0be37
--- /dev/null
+++ b/src/KubeClient/Models/generated/UserSubjectV1Beta3.cs
@@ -0,0 +1,20 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// UserSubject holds detailed information for user-kind subject.
+ ///
+ public partial class UserSubjectV1Beta3
+ {
+ ///
+ /// `name` is the username that matches, or "*" to match all usernames. Required.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingListV1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingListV1.cs
new file mode 100644
index 00000000..0ca54354
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.
+ ///
+ [KubeListItem("ValidatingAdmissionPolicyBinding", "admissionregistration.k8s.io/v1")]
+ [KubeObject("ValidatingAdmissionPolicyBindingList", "admissionregistration.k8s.io/v1")]
+ public partial class ValidatingAdmissionPolicyBindingListV1 : KubeResourceListV1
+ {
+ ///
+ /// List of PolicyBinding.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingListV1Alpha1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingListV1Alpha1.cs
new file mode 100644
index 00000000..fc91be10
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingListV1Alpha1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.
+ ///
+ [KubeListItem("ValidatingAdmissionPolicyBinding", "admissionregistration.k8s.io/v1alpha1")]
+ [KubeObject("ValidatingAdmissionPolicyBindingList", "admissionregistration.k8s.io/v1alpha1")]
+ public partial class ValidatingAdmissionPolicyBindingListV1Alpha1 : KubeResourceListV1
+ {
+ ///
+ /// List of PolicyBinding.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingListV1Beta1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingListV1Beta1.cs
new file mode 100644
index 00000000..83e1e329
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingListV1Beta1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.
+ ///
+ [KubeListItem("ValidatingAdmissionPolicyBinding", "admissionregistration.k8s.io/v1beta1")]
+ [KubeObject("ValidatingAdmissionPolicyBindingList", "admissionregistration.k8s.io/v1beta1")]
+ public partial class ValidatingAdmissionPolicyBindingListV1Beta1 : KubeResourceListV1
+ {
+ ///
+ /// List of PolicyBinding.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingSpecV1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingSpecV1.cs
new file mode 100644
index 00000000..9a7188b0
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingSpecV1.cs
@@ -0,0 +1,64 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
+ ///
+ public partial class ValidatingAdmissionPolicyBindingSpecV1
+ {
+ ///
+ /// PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.
+ ///
+ [YamlMember(Alias = "policyName")]
+ [JsonProperty("policyName", NullValueHandling = NullValueHandling.Ignore)]
+ public string PolicyName { get; set; }
+
+ ///
+ /// paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+ ///
+ [YamlMember(Alias = "paramRef")]
+ [JsonProperty("paramRef", NullValueHandling = NullValueHandling.Ignore)]
+ public ParamRefV1 ParamRef { get; set; }
+
+ ///
+ /// MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required.
+ ///
+ [YamlMember(Alias = "matchResources")]
+ [JsonProperty("matchResources", NullValueHandling = NullValueHandling.Ignore)]
+ public MatchResourcesV1 MatchResources { get; set; }
+
+ ///
+ /// validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
+ ///
+ /// Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.
+ ///
+ /// validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.
+ ///
+ /// The supported actions values are:
+ ///
+ /// "Deny" specifies that a validation failure results in a denied request.
+ ///
+ /// "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
+ ///
+ /// "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
+ ///
+ /// Clients should expect to handle additional values by ignoring any values not recognized.
+ ///
+ /// "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "validationActions")]
+ [JsonProperty("validationActions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ValidationActions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeValidationActions() => ValidationActions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingSpecV1Alpha1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingSpecV1Alpha1.cs
new file mode 100644
index 00000000..55eb2e26
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingSpecV1Alpha1.cs
@@ -0,0 +1,64 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
+ ///
+ public partial class ValidatingAdmissionPolicyBindingSpecV1Alpha1
+ {
+ ///
+ /// PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.
+ ///
+ [YamlMember(Alias = "policyName")]
+ [JsonProperty("policyName", NullValueHandling = NullValueHandling.Ignore)]
+ public string PolicyName { get; set; }
+
+ ///
+ /// paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+ ///
+ [YamlMember(Alias = "paramRef")]
+ [JsonProperty("paramRef", NullValueHandling = NullValueHandling.Ignore)]
+ public ParamRefV1Alpha1 ParamRef { get; set; }
+
+ ///
+ /// MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required.
+ ///
+ [YamlMember(Alias = "matchResources")]
+ [JsonProperty("matchResources", NullValueHandling = NullValueHandling.Ignore)]
+ public MatchResourcesV1Alpha1 MatchResources { get; set; }
+
+ ///
+ /// validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
+ ///
+ /// Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.
+ ///
+ /// validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.
+ ///
+ /// The supported actions values are:
+ ///
+ /// "Deny" specifies that a validation failure results in a denied request.
+ ///
+ /// "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
+ ///
+ /// "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
+ ///
+ /// Clients should expect to handle additional values by ignoring any values not recognized.
+ ///
+ /// "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "validationActions")]
+ [JsonProperty("validationActions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ValidationActions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeValidationActions() => ValidationActions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingSpecV1Beta1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingSpecV1Beta1.cs
new file mode 100644
index 00000000..8b75be5c
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingSpecV1Beta1.cs
@@ -0,0 +1,64 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
+ ///
+ public partial class ValidatingAdmissionPolicyBindingSpecV1Beta1
+ {
+ ///
+ /// PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.
+ ///
+ [YamlMember(Alias = "policyName")]
+ [JsonProperty("policyName", NullValueHandling = NullValueHandling.Ignore)]
+ public string PolicyName { get; set; }
+
+ ///
+ /// paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+ ///
+ [YamlMember(Alias = "paramRef")]
+ [JsonProperty("paramRef", NullValueHandling = NullValueHandling.Ignore)]
+ public ParamRefV1Beta1 ParamRef { get; set; }
+
+ ///
+ /// MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required.
+ ///
+ [YamlMember(Alias = "matchResources")]
+ [JsonProperty("matchResources", NullValueHandling = NullValueHandling.Ignore)]
+ public MatchResourcesV1Beta1 MatchResources { get; set; }
+
+ ///
+ /// validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
+ ///
+ /// Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.
+ ///
+ /// validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.
+ ///
+ /// The supported actions values are:
+ ///
+ /// "Deny" specifies that a validation failure results in a denied request.
+ ///
+ /// "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
+ ///
+ /// "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
+ ///
+ /// Clients should expect to handle additional values by ignoring any values not recognized.
+ ///
+ /// "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.
+ ///
+ /// Required.
+ ///
+ [YamlMember(Alias = "validationActions")]
+ [JsonProperty("validationActions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List ValidationActions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeValidationActions() => ValidationActions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingV1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingV1.cs
new file mode 100644
index 00000000..800b86d1
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingV1.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
+ ///
+ /// For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.
+ ///
+ /// The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
+ ///
+ [KubeObject("ValidatingAdmissionPolicyBinding", "admissionregistration.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings")]
+ [KubeApi(KubeAction.Create, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings")]
+ [KubeApi(KubeAction.Get, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}")]
+ [KubeApi(KubeAction.Update, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicybindings")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings")]
+ [KubeApi(KubeAction.Watch, "apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicybindings/{name}")]
+ public partial class ValidatingAdmissionPolicyBindingV1 : KubeResourceV1
+ {
+ ///
+ /// Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public ValidatingAdmissionPolicyBindingSpecV1 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingV1Alpha1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingV1Alpha1.cs
new file mode 100644
index 00000000..bffa81a0
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingV1Alpha1.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
+ ///
+ /// For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.
+ ///
+ /// The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
+ ///
+ [KubeObject("ValidatingAdmissionPolicyBinding", "admissionregistration.k8s.io/v1alpha1")]
+ [KubeApi(KubeAction.List, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings")]
+ [KubeApi(KubeAction.Create, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings")]
+ [KubeApi(KubeAction.Get, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}")]
+ [KubeApi(KubeAction.Update, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings")]
+ [KubeApi(KubeAction.Watch, "apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings/{name}")]
+ public partial class ValidatingAdmissionPolicyBindingV1Alpha1 : KubeResourceV1
+ {
+ ///
+ /// Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public ValidatingAdmissionPolicyBindingSpecV1Alpha1 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingV1Beta1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingV1Beta1.cs
new file mode 100644
index 00000000..33226e4c
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyBindingV1Beta1.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
+ ///
+ /// For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.
+ ///
+ /// The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
+ ///
+ [KubeObject("ValidatingAdmissionPolicyBinding", "admissionregistration.k8s.io/v1beta1")]
+ [KubeApi(KubeAction.List, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings")]
+ [KubeApi(KubeAction.Create, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings")]
+ [KubeApi(KubeAction.Get, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}")]
+ [KubeApi(KubeAction.Update, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicybindings")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings")]
+ [KubeApi(KubeAction.Watch, "apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicybindings/{name}")]
+ public partial class ValidatingAdmissionPolicyBindingV1Beta1 : KubeResourceV1
+ {
+ ///
+ /// Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public ValidatingAdmissionPolicyBindingSpecV1Beta1 Spec { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyListV1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyListV1.cs
new file mode 100644
index 00000000..58b487ec
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.
+ ///
+ [KubeListItem("ValidatingAdmissionPolicy", "admissionregistration.k8s.io/v1")]
+ [KubeObject("ValidatingAdmissionPolicyList", "admissionregistration.k8s.io/v1")]
+ public partial class ValidatingAdmissionPolicyListV1 : KubeResourceListV1
+ {
+ ///
+ /// List of ValidatingAdmissionPolicy.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyListV1Alpha1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyListV1Alpha1.cs
new file mode 100644
index 00000000..c49fadb3
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyListV1Alpha1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.
+ ///
+ [KubeListItem("ValidatingAdmissionPolicy", "admissionregistration.k8s.io/v1alpha1")]
+ [KubeObject("ValidatingAdmissionPolicyList", "admissionregistration.k8s.io/v1alpha1")]
+ public partial class ValidatingAdmissionPolicyListV1Alpha1 : KubeResourceListV1
+ {
+ ///
+ /// List of ValidatingAdmissionPolicy.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyListV1Beta1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyListV1Beta1.cs
new file mode 100644
index 00000000..6b39bdd9
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyListV1Beta1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.
+ ///
+ [KubeListItem("ValidatingAdmissionPolicy", "admissionregistration.k8s.io/v1beta1")]
+ [KubeObject("ValidatingAdmissionPolicyList", "admissionregistration.k8s.io/v1beta1")]
+ public partial class ValidatingAdmissionPolicyListV1Beta1 : KubeResourceListV1
+ {
+ ///
+ /// List of ValidatingAdmissionPolicy.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicySpecV1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicySpecV1.cs
new file mode 100644
index 00000000..42c99c8f
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicySpecV1.cs
@@ -0,0 +1,103 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
+ ///
+ public partial class ValidatingAdmissionPolicySpecV1
+ {
+ ///
+ /// ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
+ ///
+ [YamlMember(Alias = "paramKind")]
+ [JsonProperty("paramKind", NullValueHandling = NullValueHandling.Ignore)]
+ public ParamKindV1 ParamKind { get; set; }
+
+ ///
+ /// auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.
+ ///
+ [YamlMember(Alias = "auditAnnotations")]
+ [JsonProperty("auditAnnotations", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List AuditAnnotations { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAuditAnnotations() => AuditAnnotations.Count > 0;
+
+ ///
+ /// MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
+ ///
+ /// If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
+ ///
+ /// The exact matching logic is (in order):
+ /// 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+ /// 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+ /// 3. If any matchCondition evaluates to an error (but none are FALSE):
+ /// - If failurePolicy=Fail, reject the request
+ /// - If failurePolicy=Ignore, the policy is skipped
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "matchConditions")]
+ [JsonProperty("matchConditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List MatchConditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeMatchConditions() => MatchConditions.Count > 0;
+
+ ///
+ /// MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required.
+ ///
+ [YamlMember(Alias = "matchConstraints")]
+ [JsonProperty("matchConstraints", NullValueHandling = NullValueHandling.Ignore)]
+ public MatchResourcesV1 MatchConstraints { get; set; }
+
+ ///
+ /// Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.
+ ///
+ [YamlMember(Alias = "validations")]
+ [JsonProperty("validations", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Validations { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeValidations() => Validations.Count > 0;
+
+ ///
+ /// Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.
+ ///
+ /// The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "variables")]
+ [JsonProperty("variables", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Variables { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeVariables() => Variables.Count > 0;
+
+ ///
+ /// failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.
+ ///
+ /// A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.
+ ///
+ /// failurePolicy does not define how validations that evaluate to false are handled.
+ ///
+ /// When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
+ ///
+ /// Allowed values are Ignore or Fail. Defaults to Fail.
+ ///
+ [YamlMember(Alias = "failurePolicy")]
+ [JsonProperty("failurePolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string FailurePolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicySpecV1Alpha1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicySpecV1Alpha1.cs
new file mode 100644
index 00000000..abd49521
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicySpecV1Alpha1.cs
@@ -0,0 +1,103 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
+ ///
+ public partial class ValidatingAdmissionPolicySpecV1Alpha1
+ {
+ ///
+ /// ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
+ ///
+ [YamlMember(Alias = "paramKind")]
+ [JsonProperty("paramKind", NullValueHandling = NullValueHandling.Ignore)]
+ public ParamKindV1Alpha1 ParamKind { get; set; }
+
+ ///
+ /// auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.
+ ///
+ [YamlMember(Alias = "auditAnnotations")]
+ [JsonProperty("auditAnnotations", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List AuditAnnotations { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAuditAnnotations() => AuditAnnotations.Count > 0;
+
+ ///
+ /// MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
+ ///
+ /// If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
+ ///
+ /// The exact matching logic is (in order):
+ /// 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+ /// 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+ /// 3. If any matchCondition evaluates to an error (but none are FALSE):
+ /// - If failurePolicy=Fail, reject the request
+ /// - If failurePolicy=Ignore, the policy is skipped
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "matchConditions")]
+ [JsonProperty("matchConditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List MatchConditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeMatchConditions() => MatchConditions.Count > 0;
+
+ ///
+ /// MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required.
+ ///
+ [YamlMember(Alias = "matchConstraints")]
+ [JsonProperty("matchConstraints", NullValueHandling = NullValueHandling.Ignore)]
+ public MatchResourcesV1Alpha1 MatchConstraints { get; set; }
+
+ ///
+ /// Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.
+ ///
+ [YamlMember(Alias = "validations")]
+ [JsonProperty("validations", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Validations { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeValidations() => Validations.Count > 0;
+
+ ///
+ /// Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.
+ ///
+ /// The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "variables")]
+ [JsonProperty("variables", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Variables { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeVariables() => Variables.Count > 0;
+
+ ///
+ /// failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.
+ ///
+ /// A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.
+ ///
+ /// failurePolicy does not define how validations that evaluate to false are handled.
+ ///
+ /// When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
+ ///
+ /// Allowed values are Ignore or Fail. Defaults to Fail.
+ ///
+ [YamlMember(Alias = "failurePolicy")]
+ [JsonProperty("failurePolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string FailurePolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicySpecV1Beta1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicySpecV1Beta1.cs
new file mode 100644
index 00000000..1af69007
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicySpecV1Beta1.cs
@@ -0,0 +1,103 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
+ ///
+ public partial class ValidatingAdmissionPolicySpecV1Beta1
+ {
+ ///
+ /// ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
+ ///
+ [YamlMember(Alias = "paramKind")]
+ [JsonProperty("paramKind", NullValueHandling = NullValueHandling.Ignore)]
+ public ParamKindV1Beta1 ParamKind { get; set; }
+
+ ///
+ /// auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.
+ ///
+ [YamlMember(Alias = "auditAnnotations")]
+ [JsonProperty("auditAnnotations", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List AuditAnnotations { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAuditAnnotations() => AuditAnnotations.Count > 0;
+
+ ///
+ /// MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
+ ///
+ /// If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
+ ///
+ /// The exact matching logic is (in order):
+ /// 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+ /// 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+ /// 3. If any matchCondition evaluates to an error (but none are FALSE):
+ /// - If failurePolicy=Fail, reject the request
+ /// - If failurePolicy=Ignore, the policy is skipped
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "matchConditions")]
+ [JsonProperty("matchConditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List MatchConditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeMatchConditions() => MatchConditions.Count > 0;
+
+ ///
+ /// MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required.
+ ///
+ [YamlMember(Alias = "matchConstraints")]
+ [JsonProperty("matchConstraints", NullValueHandling = NullValueHandling.Ignore)]
+ public MatchResourcesV1Beta1 MatchConstraints { get; set; }
+
+ ///
+ /// Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.
+ ///
+ [YamlMember(Alias = "validations")]
+ [JsonProperty("validations", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Validations { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeValidations() => Validations.Count > 0;
+
+ ///
+ /// Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.
+ ///
+ /// The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "variables")]
+ [JsonProperty("variables", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Variables { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeVariables() => Variables.Count > 0;
+
+ ///
+ /// failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.
+ ///
+ /// A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.
+ ///
+ /// failurePolicy does not define how validations that evaluate to false are handled.
+ ///
+ /// When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
+ ///
+ /// Allowed values are Ignore or Fail. Defaults to Fail.
+ ///
+ [YamlMember(Alias = "failurePolicy")]
+ [JsonProperty("failurePolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string FailurePolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyStatusV1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyStatusV1.cs
new file mode 100644
index 00000000..0da568ba
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyStatusV1.cs
@@ -0,0 +1,39 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.
+ ///
+ public partial class ValidatingAdmissionPolicyStatusV1
+ {
+ ///
+ /// The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
+ ///
+ [YamlMember(Alias = "typeChecking")]
+ [JsonProperty("typeChecking", NullValueHandling = NullValueHandling.Ignore)]
+ public TypeCheckingV1 TypeChecking { get; set; }
+
+ ///
+ /// The generation observed by the controller.
+ ///
+ [YamlMember(Alias = "observedGeneration")]
+ [JsonProperty("observedGeneration", NullValueHandling = NullValueHandling.Ignore)]
+ public long? ObservedGeneration { get; set; }
+
+ ///
+ /// The conditions represent the latest available observations of a policy's current state.
+ ///
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyStatusV1Alpha1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyStatusV1Alpha1.cs
new file mode 100644
index 00000000..8f912138
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyStatusV1Alpha1.cs
@@ -0,0 +1,39 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.
+ ///
+ public partial class ValidatingAdmissionPolicyStatusV1Alpha1
+ {
+ ///
+ /// The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
+ ///
+ [YamlMember(Alias = "typeChecking")]
+ [JsonProperty("typeChecking", NullValueHandling = NullValueHandling.Ignore)]
+ public TypeCheckingV1Alpha1 TypeChecking { get; set; }
+
+ ///
+ /// The generation observed by the controller.
+ ///
+ [YamlMember(Alias = "observedGeneration")]
+ [JsonProperty("observedGeneration", NullValueHandling = NullValueHandling.Ignore)]
+ public long? ObservedGeneration { get; set; }
+
+ ///
+ /// The conditions represent the latest available observations of a policy's current state.
+ ///
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyStatusV1Beta1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyStatusV1Beta1.cs
new file mode 100644
index 00000000..3b4fed79
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyStatusV1Beta1.cs
@@ -0,0 +1,39 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.
+ ///
+ public partial class ValidatingAdmissionPolicyStatusV1Beta1
+ {
+ ///
+ /// The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
+ ///
+ [YamlMember(Alias = "typeChecking")]
+ [JsonProperty("typeChecking", NullValueHandling = NullValueHandling.Ignore)]
+ public TypeCheckingV1Beta1 TypeChecking { get; set; }
+
+ ///
+ /// The generation observed by the controller.
+ ///
+ [YamlMember(Alias = "observedGeneration")]
+ [JsonProperty("observedGeneration", NullValueHandling = NullValueHandling.Ignore)]
+ public long? ObservedGeneration { get; set; }
+
+ ///
+ /// The conditions represent the latest available observations of a policy's current state.
+ ///
+ [YamlMember(Alias = "conditions")]
+ [JsonProperty("conditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Conditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeConditions() => Conditions.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyV1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyV1.cs
new file mode 100644
index 00000000..8e7d5729
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyV1.cs
@@ -0,0 +1,40 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
+ ///
+ [KubeObject("ValidatingAdmissionPolicy", "admissionregistration.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies")]
+ [KubeApi(KubeAction.Create, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies")]
+ [KubeApi(KubeAction.Get, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.Update, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies")]
+ [KubeApi(KubeAction.Get, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status")]
+ public partial class ValidatingAdmissionPolicyV1 : KubeResourceV1
+ {
+ ///
+ /// Specification of the desired behavior of the ValidatingAdmissionPolicy.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public ValidatingAdmissionPolicySpecV1 Spec { get; set; }
+
+ ///
+ /// The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public ValidatingAdmissionPolicyStatusV1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyV1Alpha1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyV1Alpha1.cs
new file mode 100644
index 00000000..e0ffef68
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyV1Alpha1.cs
@@ -0,0 +1,40 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
+ ///
+ [KubeObject("ValidatingAdmissionPolicy", "admissionregistration.k8s.io/v1alpha1")]
+ [KubeApi(KubeAction.List, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies")]
+ [KubeApi(KubeAction.Create, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies")]
+ [KubeApi(KubeAction.Get, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.Update, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies")]
+ [KubeApi(KubeAction.Get, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status")]
+ public partial class ValidatingAdmissionPolicyV1Alpha1 : KubeResourceV1
+ {
+ ///
+ /// Specification of the desired behavior of the ValidatingAdmissionPolicy.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public ValidatingAdmissionPolicySpecV1Alpha1 Spec { get; set; }
+
+ ///
+ /// The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public ValidatingAdmissionPolicyStatusV1Alpha1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingAdmissionPolicyV1Beta1.cs b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyV1Beta1.cs
new file mode 100644
index 00000000..0dda47a2
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingAdmissionPolicyV1Beta1.cs
@@ -0,0 +1,40 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
+ ///
+ [KubeObject("ValidatingAdmissionPolicy", "admissionregistration.k8s.io/v1beta1")]
+ [KubeApi(KubeAction.List, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies")]
+ [KubeApi(KubeAction.Create, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies")]
+ [KubeApi(KubeAction.Get, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.Update, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicies")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies")]
+ [KubeApi(KubeAction.Get, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/admissionregistration.k8s.io/v1beta1/watch/validatingadmissionpolicies/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status")]
+ public partial class ValidatingAdmissionPolicyV1Beta1 : KubeResourceV1
+ {
+ ///
+ /// Specification of the desired behavior of the ValidatingAdmissionPolicy.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Ignore)]
+ public ValidatingAdmissionPolicySpecV1Beta1 Spec { get; set; }
+
+ ///
+ /// The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public ValidatingAdmissionPolicyStatusV1Beta1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingWebhookConfigurationListV1.cs b/src/KubeClient/Models/generated/ValidatingWebhookConfigurationListV1.cs
new file mode 100644
index 00000000..19396748
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingWebhookConfigurationListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.
+ ///
+ [KubeListItem("ValidatingWebhookConfiguration", "admissionregistration.k8s.io/v1")]
+ [KubeObject("ValidatingWebhookConfigurationList", "admissionregistration.k8s.io/v1")]
+ public partial class ValidatingWebhookConfigurationListV1 : KubeResourceListV1
+ {
+ ///
+ /// List of ValidatingWebhookConfiguration.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingWebhookConfigurationV1.cs b/src/KubeClient/Models/generated/ValidatingWebhookConfigurationV1.cs
new file mode 100644
index 00000000..e8b760f0
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingWebhookConfigurationV1.cs
@@ -0,0 +1,36 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.
+ ///
+ [KubeObject("ValidatingWebhookConfiguration", "admissionregistration.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations")]
+ [KubeApi(KubeAction.Create, "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations")]
+ [KubeApi(KubeAction.Get, "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}")]
+ [KubeApi(KubeAction.Update, "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations")]
+ [KubeApi(KubeAction.Watch, "apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations/{name}")]
+ public partial class ValidatingWebhookConfigurationV1 : KubeResourceV1
+ {
+ ///
+ /// Webhooks is a list of webhooks and the affected resources and operations.
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "webhooks")]
+ [JsonProperty("webhooks", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Webhooks { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeWebhooks() => Webhooks.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidatingWebhookV1.cs b/src/KubeClient/Models/generated/ValidatingWebhookV1.cs
new file mode 100644
index 00000000..a5a4b218
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidatingWebhookV1.cs
@@ -0,0 +1,144 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidatingWebhook describes an admission webhook and the resources and operations it applies to.
+ ///
+ public partial class ValidatingWebhookV1
+ {
+ ///
+ /// The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required.
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// ClientConfig defines how to communicate with the hook. Required
+ ///
+ [YamlMember(Alias = "clientConfig")]
+ [JsonProperty("clientConfig", NullValueHandling = NullValueHandling.Include)]
+ public WebhookClientConfigV1 ClientConfig { get; set; }
+
+ ///
+ /// NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.
+ ///
+ /// For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": {
+ /// "matchExpressions": [
+ /// {
+ /// "key": "runlevel",
+ /// "operator": "NotIn",
+ /// "values": [
+ /// "0",
+ /// "1"
+ /// ]
+ /// }
+ /// ]
+ /// }
+ ///
+ /// If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": {
+ /// "matchExpressions": [
+ /// {
+ /// "key": "environment",
+ /// "operator": "In",
+ /// "values": [
+ /// "prod",
+ /// "staging"
+ /// ]
+ /// }
+ /// ]
+ /// }
+ ///
+ /// See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.
+ ///
+ /// Default to the empty LabelSelector, which matches everything.
+ ///
+ [YamlMember(Alias = "namespaceSelector")]
+ [JsonProperty("namespaceSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 NamespaceSelector { get; set; }
+
+ ///
+ /// ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.
+ ///
+ [YamlMember(Alias = "objectSelector")]
+ [JsonProperty("objectSelector", NullValueHandling = NullValueHandling.Ignore)]
+ public LabelSelectorV1 ObjectSelector { get; set; }
+
+ ///
+ /// AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.
+ ///
+ [YamlMember(Alias = "admissionReviewVersions")]
+ [JsonProperty("admissionReviewVersions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List AdmissionReviewVersions { get; } = new List();
+
+ ///
+ /// MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
+ ///
+ /// The exact matching logic is (in order):
+ /// 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+ /// 2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+ /// 3. If any matchCondition evaluates to an error (but none are FALSE):
+ /// - If failurePolicy=Fail, reject the request
+ /// - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+ ///
+ [MergeStrategy(Key = "name")]
+ [YamlMember(Alias = "matchConditions")]
+ [JsonProperty("matchConditions", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List MatchConditions { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeMatchConditions() => MatchConditions.Count > 0;
+
+ ///
+ /// Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+ ///
+ [YamlMember(Alias = "rules")]
+ [JsonProperty("rules", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public List Rules { get; } = new List();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeRules() => Rules.Count > 0;
+
+ ///
+ /// SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.
+ ///
+ [YamlMember(Alias = "sideEffects")]
+ [JsonProperty("sideEffects", NullValueHandling = NullValueHandling.Include)]
+ public string SideEffects { get; set; }
+
+ ///
+ /// TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.
+ ///
+ [YamlMember(Alias = "timeoutSeconds")]
+ [JsonProperty("timeoutSeconds", NullValueHandling = NullValueHandling.Ignore)]
+ public int? TimeoutSeconds { get; set; }
+
+ ///
+ /// FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.
+ ///
+ [YamlMember(Alias = "failurePolicy")]
+ [JsonProperty("failurePolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string FailurePolicy { get; set; }
+
+ ///
+ /// matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
+ ///
+ /// - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
+ ///
+ /// - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
+ ///
+ /// Defaults to "Equivalent"
+ ///
+ [YamlMember(Alias = "matchPolicy")]
+ [JsonProperty("matchPolicy", NullValueHandling = NullValueHandling.Ignore)]
+ public string MatchPolicy { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidationRuleV1.cs b/src/KubeClient/Models/generated/ValidationRuleV1.cs
new file mode 100644
index 00000000..08891867
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidationRuleV1.cs
@@ -0,0 +1,93 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// ValidationRule describes a validation rule written in the CEL expression language.
+ ///
+ public partial class ValidationRuleV1
+ {
+ ///
+ /// Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host"
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
+ public string Message { get; set; }
+
+ ///
+ /// Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {"rule": "self.status.actual <= self.spec.maxDesired"}
+ ///
+ /// If the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {"rule": "self.components['Widget'].priority < 10"} - Rule scoped to a list of integers: {"rule": "self.values.all(value, value >= 0 && value < 100)"} - Rule scoped to a string value: {"rule": "self.startsWith('kube')"}
+ ///
+ /// The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible.
+ ///
+ /// Unknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an "unknown type". An "unknown type" is recursively defined as:
+ /// - A schema with no type and x-kubernetes-preserve-unknown-fields set to true
+ /// - An array where the items schema is of an "unknown type"
+ /// - An object where the additionalProperties schema is of an "unknown type"
+ ///
+ /// Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:
+ /// "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if",
+ /// "import", "let", "loop", "package", "namespace", "return".
+ /// Examples:
+ /// - Rule accessing a property named "namespace": {"rule": "self.__namespace__ > 0"}
+ /// - Rule accessing a property named "x-prop": {"rule": "self.x__dash__prop > 0"}
+ /// - Rule accessing a property named "redact__d": {"rule": "self.redact__underscores__d > 0"}
+ ///
+ /// Equality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:
+ /// - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and
+ /// non-intersecting elements in `Y` are appended, retaining their partial order.
+ /// - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values
+ /// are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with
+ /// non-intersecting keys are appended, retaining their partial order.
+ ///
+ /// If `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`.
+ ///
+ /// By default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional
+ /// variable whose value() is the same type as `self`.
+ /// See the documentation for the `optionalOldSelf` field for details.
+ ///
+ /// Transition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true.
+ ///
+ [YamlMember(Alias = "rule")]
+ [JsonProperty("rule", NullValueHandling = NullValueHandling.Include)]
+ public string Rule { get; set; }
+
+ ///
+ /// optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value.
+ ///
+ /// When enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created.
+ ///
+ /// You may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes
+ ///
+ /// May not be set unless `oldSelf` is used in `rule`.
+ ///
+ [YamlMember(Alias = "optionalOldSelf")]
+ [JsonProperty("optionalOldSelf", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? OptionalOldSelf { get; set; }
+
+ ///
+ /// fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']`
+ ///
+ [YamlMember(Alias = "fieldPath")]
+ [JsonProperty("fieldPath", NullValueHandling = NullValueHandling.Ignore)]
+ public string FieldPath { get; set; }
+
+ ///
+ /// MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: "x must be less than max ("+string(self.max)+")"
+ ///
+ [YamlMember(Alias = "messageExpression")]
+ [JsonProperty("messageExpression", NullValueHandling = NullValueHandling.Ignore)]
+ public string MessageExpression { get; set; }
+
+ ///
+ /// reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: "FieldValueInvalid", "FieldValueForbidden", "FieldValueRequired", "FieldValueDuplicate". If not set, default to use "FieldValueInvalid". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reason { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidationV1.cs b/src/KubeClient/Models/generated/ValidationV1.cs
new file mode 100644
index 00000000..5774909a
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidationV1.cs
@@ -0,0 +1,66 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Validation specifies the CEL expression which is used to apply the validation.
+ ///
+ public partial class ValidationV1
+ {
+ ///
+ /// Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is "failed Expression: {Expression}".
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
+ public string Message { get; set; }
+
+ ///
+ /// Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
+ ///
+ /// - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+ /// For example, a variable named 'foo' can be accessed as 'variables.foo'.
+ /// - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+ /// See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+ /// - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+ /// request resource.
+ ///
+ /// The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
+ ///
+ /// Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:
+ /// "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if",
+ /// "import", "let", "loop", "package", "namespace", "return".
+ /// Examples:
+ /// - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"}
+ /// - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"}
+ /// - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"}
+ ///
+ /// Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:
+ /// - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and
+ /// non-intersecting elements in `Y` are appended, retaining their partial order.
+ /// - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values
+ /// are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with
+ /// non-intersecting keys are appended, retaining their partial order.
+ /// Required.
+ ///
+ [YamlMember(Alias = "expression")]
+ [JsonProperty("expression", NullValueHandling = NullValueHandling.Include)]
+ public string Expression { get; set; }
+
+ ///
+ /// messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: "object.x must be less than max ("+string(params.max)+")"
+ ///
+ [YamlMember(Alias = "messageExpression")]
+ [JsonProperty("messageExpression", NullValueHandling = NullValueHandling.Ignore)]
+ public string MessageExpression { get; set; }
+
+ ///
+ /// Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". If not set, StatusReasonInvalid is used in the response to the client.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reason { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidationV1Alpha1.cs b/src/KubeClient/Models/generated/ValidationV1Alpha1.cs
new file mode 100644
index 00000000..d5b5815a
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidationV1Alpha1.cs
@@ -0,0 +1,66 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Validation specifies the CEL expression which is used to apply the validation.
+ ///
+ public partial class ValidationV1Alpha1
+ {
+ ///
+ /// Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is "failed Expression: {Expression}".
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
+ public string Message { get; set; }
+
+ ///
+ /// Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
+ ///
+ /// - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+ /// For example, a variable named 'foo' can be accessed as 'variables.foo'.
+ /// - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+ /// See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+ /// - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+ /// request resource.
+ ///
+ /// The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
+ ///
+ /// Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:
+ /// "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if",
+ /// "import", "let", "loop", "package", "namespace", "return".
+ /// Examples:
+ /// - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"}
+ /// - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"}
+ /// - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"}
+ ///
+ /// Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:
+ /// - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and
+ /// non-intersecting elements in `Y` are appended, retaining their partial order.
+ /// - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values
+ /// are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with
+ /// non-intersecting keys are appended, retaining their partial order.
+ /// Required.
+ ///
+ [YamlMember(Alias = "expression")]
+ [JsonProperty("expression", NullValueHandling = NullValueHandling.Include)]
+ public string Expression { get; set; }
+
+ ///
+ /// messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: "object.x must be less than max ("+string(params.max)+")"
+ ///
+ [YamlMember(Alias = "messageExpression")]
+ [JsonProperty("messageExpression", NullValueHandling = NullValueHandling.Ignore)]
+ public string MessageExpression { get; set; }
+
+ ///
+ /// Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". If not set, StatusReasonInvalid is used in the response to the client.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reason { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/ValidationV1Beta1.cs b/src/KubeClient/Models/generated/ValidationV1Beta1.cs
new file mode 100644
index 00000000..2ee06bdb
--- /dev/null
+++ b/src/KubeClient/Models/generated/ValidationV1Beta1.cs
@@ -0,0 +1,66 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Validation specifies the CEL expression which is used to apply the validation.
+ ///
+ public partial class ValidationV1Beta1
+ {
+ ///
+ /// Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is "failed Expression: {Expression}".
+ ///
+ [YamlMember(Alias = "message")]
+ [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
+ public string Message { get; set; }
+
+ ///
+ /// Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
+ ///
+ /// - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+ /// For example, a variable named 'foo' can be accessed as 'variables.foo'.
+ /// - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+ /// See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+ /// - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+ /// request resource.
+ ///
+ /// The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
+ ///
+ /// Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:
+ /// "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if",
+ /// "import", "let", "loop", "package", "namespace", "return".
+ /// Examples:
+ /// - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"}
+ /// - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"}
+ /// - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"}
+ ///
+ /// Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:
+ /// - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and
+ /// non-intersecting elements in `Y` are appended, retaining their partial order.
+ /// - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values
+ /// are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with
+ /// non-intersecting keys are appended, retaining their partial order.
+ /// Required.
+ ///
+ [YamlMember(Alias = "expression")]
+ [JsonProperty("expression", NullValueHandling = NullValueHandling.Include)]
+ public string Expression { get; set; }
+
+ ///
+ /// messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: "object.x must be less than max ("+string(params.max)+")"
+ ///
+ [YamlMember(Alias = "messageExpression")]
+ [JsonProperty("messageExpression", NullValueHandling = NullValueHandling.Ignore)]
+ public string MessageExpression { get; set; }
+
+ ///
+ /// Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". If not set, StatusReasonInvalid is used in the response to the client.
+ ///
+ [YamlMember(Alias = "reason")]
+ [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)]
+ public string Reason { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/VariableV1.cs b/src/KubeClient/Models/generated/VariableV1.cs
new file mode 100644
index 00000000..57c728c9
--- /dev/null
+++ b/src/KubeClient/Models/generated/VariableV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.
+ ///
+ public partial class VariableV1
+ {
+ ///
+ /// Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
+ ///
+ [YamlMember(Alias = "expression")]
+ [JsonProperty("expression", NullValueHandling = NullValueHandling.Include)]
+ public string Expression { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/VariableV1Alpha1.cs b/src/KubeClient/Models/generated/VariableV1Alpha1.cs
new file mode 100644
index 00000000..6d4fd616
--- /dev/null
+++ b/src/KubeClient/Models/generated/VariableV1Alpha1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Variable is the definition of a variable that is used for composition.
+ ///
+ public partial class VariableV1Alpha1
+ {
+ ///
+ /// Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
+ ///
+ [YamlMember(Alias = "expression")]
+ [JsonProperty("expression", NullValueHandling = NullValueHandling.Include)]
+ public string Expression { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/VariableV1Beta1.cs b/src/KubeClient/Models/generated/VariableV1Beta1.cs
new file mode 100644
index 00000000..39200af1
--- /dev/null
+++ b/src/KubeClient/Models/generated/VariableV1Beta1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.
+ ///
+ public partial class VariableV1Beta1
+ {
+ ///
+ /// Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
+ ///
+ [YamlMember(Alias = "name")]
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Include)]
+ public string Name { get; set; }
+
+ ///
+ /// Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
+ ///
+ [YamlMember(Alias = "expression")]
+ [JsonProperty("expression", NullValueHandling = NullValueHandling.Include)]
+ public string Expression { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/VolumeAttachmentListV1.cs b/src/KubeClient/Models/generated/VolumeAttachmentListV1.cs
new file mode 100644
index 00000000..b37b297e
--- /dev/null
+++ b/src/KubeClient/Models/generated/VolumeAttachmentListV1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// VolumeAttachmentList is a collection of VolumeAttachment objects.
+ ///
+ [KubeListItem("VolumeAttachment", "storage.k8s.io/v1")]
+ [KubeObject("VolumeAttachmentList", "storage.k8s.io/v1")]
+ public partial class VolumeAttachmentListV1 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of VolumeAttachments
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/VolumeAttachmentSourceV1.cs b/src/KubeClient/Models/generated/VolumeAttachmentSourceV1.cs
new file mode 100644
index 00000000..28039072
--- /dev/null
+++ b/src/KubeClient/Models/generated/VolumeAttachmentSourceV1.cs
@@ -0,0 +1,27 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.
+ ///
+ public partial class VolumeAttachmentSourceV1
+ {
+ ///
+ /// inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature.
+ ///
+ [YamlMember(Alias = "inlineVolumeSpec")]
+ [JsonProperty("inlineVolumeSpec", NullValueHandling = NullValueHandling.Ignore)]
+ public PersistentVolumeSpecV1 InlineVolumeSpec { get; set; }
+
+ ///
+ /// persistentVolumeName represents the name of the persistent volume to attach.
+ ///
+ [YamlMember(Alias = "persistentVolumeName")]
+ [JsonProperty("persistentVolumeName", NullValueHandling = NullValueHandling.Ignore)]
+ public string PersistentVolumeName { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/VolumeAttachmentSpecV1.cs b/src/KubeClient/Models/generated/VolumeAttachmentSpecV1.cs
new file mode 100644
index 00000000..d7a63747
--- /dev/null
+++ b/src/KubeClient/Models/generated/VolumeAttachmentSpecV1.cs
@@ -0,0 +1,34 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// VolumeAttachmentSpec is the specification of a VolumeAttachment request.
+ ///
+ public partial class VolumeAttachmentSpecV1
+ {
+ ///
+ /// nodeName represents the node that the volume should be attached to.
+ ///
+ [YamlMember(Alias = "nodeName")]
+ [JsonProperty("nodeName", NullValueHandling = NullValueHandling.Include)]
+ public string NodeName { get; set; }
+
+ ///
+ /// source represents the volume that should be attached.
+ ///
+ [YamlMember(Alias = "source")]
+ [JsonProperty("source", NullValueHandling = NullValueHandling.Include)]
+ public VolumeAttachmentSourceV1 Source { get; set; }
+
+ ///
+ /// attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().
+ ///
+ [YamlMember(Alias = "attacher")]
+ [JsonProperty("attacher", NullValueHandling = NullValueHandling.Include)]
+ public string Attacher { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/VolumeAttachmentStatusV1.cs b/src/KubeClient/Models/generated/VolumeAttachmentStatusV1.cs
new file mode 100644
index 00000000..341de46a
--- /dev/null
+++ b/src/KubeClient/Models/generated/VolumeAttachmentStatusV1.cs
@@ -0,0 +1,46 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// VolumeAttachmentStatus is the status of a VolumeAttachment request.
+ ///
+ public partial class VolumeAttachmentStatusV1
+ {
+ ///
+ /// attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
+ ///
+ [YamlMember(Alias = "attachmentMetadata")]
+ [JsonProperty("attachmentMetadata", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary AttachmentMetadata { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeAttachmentMetadata() => AttachmentMetadata.Count > 0;
+
+ ///
+ /// attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
+ ///
+ [YamlMember(Alias = "attached")]
+ [JsonProperty("attached", NullValueHandling = NullValueHandling.Include)]
+ public bool Attached { get; set; }
+
+ ///
+ /// attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
+ ///
+ [YamlMember(Alias = "attachError")]
+ [JsonProperty("attachError", NullValueHandling = NullValueHandling.Ignore)]
+ public VolumeErrorV1 AttachError { get; set; }
+
+ ///
+ /// detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.
+ ///
+ [YamlMember(Alias = "detachError")]
+ [JsonProperty("detachError", NullValueHandling = NullValueHandling.Ignore)]
+ public VolumeErrorV1 DetachError { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/VolumeAttachmentV1.cs b/src/KubeClient/Models/generated/VolumeAttachmentV1.cs
new file mode 100644
index 00000000..94b3af02
--- /dev/null
+++ b/src/KubeClient/Models/generated/VolumeAttachmentV1.cs
@@ -0,0 +1,42 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.
+ ///
+ /// VolumeAttachment objects are non-namespaced.
+ ///
+ [KubeObject("VolumeAttachment", "storage.k8s.io/v1")]
+ [KubeApi(KubeAction.List, "apis/storage.k8s.io/v1/volumeattachments")]
+ [KubeApi(KubeAction.Create, "apis/storage.k8s.io/v1/volumeattachments")]
+ [KubeApi(KubeAction.Get, "apis/storage.k8s.io/v1/volumeattachments/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/storage.k8s.io/v1/volumeattachments/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/storage.k8s.io/v1/volumeattachments/{name}")]
+ [KubeApi(KubeAction.Update, "apis/storage.k8s.io/v1/volumeattachments/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/storage.k8s.io/v1/watch/volumeattachments")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/storage.k8s.io/v1/volumeattachments")]
+ [KubeApi(KubeAction.Get, "apis/storage.k8s.io/v1/volumeattachments/{name}/status")]
+ [KubeApi(KubeAction.Watch, "apis/storage.k8s.io/v1/watch/volumeattachments/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/storage.k8s.io/v1/volumeattachments/{name}/status")]
+ [KubeApi(KubeAction.Update, "apis/storage.k8s.io/v1/volumeattachments/{name}/status")]
+ public partial class VolumeAttachmentV1 : KubeResourceV1
+ {
+ ///
+ /// spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.
+ ///
+ [YamlMember(Alias = "spec")]
+ [JsonProperty("spec", NullValueHandling = NullValueHandling.Include)]
+ public VolumeAttachmentSpecV1 Spec { get; set; }
+
+ ///
+ /// status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.
+ ///
+ [YamlMember(Alias = "status")]
+ [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
+ public VolumeAttachmentStatusV1 Status { get; set; }
+ }
+}
diff --git a/src/KubeClient/Models/generated/VolumeAttributesClassListV1Alpha1.cs b/src/KubeClient/Models/generated/VolumeAttributesClassListV1Alpha1.cs
new file mode 100644
index 00000000..5b67072d
--- /dev/null
+++ b/src/KubeClient/Models/generated/VolumeAttributesClassListV1Alpha1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// VolumeAttributesClassList is a collection of VolumeAttributesClass objects.
+ ///
+ [KubeListItem("VolumeAttributesClass", "storage.k8s.io/v1alpha1")]
+ [KubeObject("VolumeAttributesClassList", "storage.k8s.io/v1alpha1")]
+ public partial class VolumeAttributesClassListV1Alpha1 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of VolumeAttributesClass objects.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/VolumeAttributesClassListV1Beta1.cs b/src/KubeClient/Models/generated/VolumeAttributesClassListV1Beta1.cs
new file mode 100644
index 00000000..575e48cb
--- /dev/null
+++ b/src/KubeClient/Models/generated/VolumeAttributesClassListV1Beta1.cs
@@ -0,0 +1,21 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// VolumeAttributesClassList is a collection of VolumeAttributesClass objects.
+ ///
+ [KubeListItem("VolumeAttributesClass", "storage.k8s.io/v1beta1")]
+ [KubeObject("VolumeAttributesClassList", "storage.k8s.io/v1beta1")]
+ public partial class VolumeAttributesClassListV1Beta1 : KubeResourceListV1
+ {
+ ///
+ /// items is the list of VolumeAttributesClass objects.
+ ///
+ [JsonProperty("items", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public override List Items { get; } = new List();
+ }
+}
diff --git a/src/KubeClient/Models/generated/VolumeAttributesClassV1Alpha1.cs b/src/KubeClient/Models/generated/VolumeAttributesClassV1Alpha1.cs
new file mode 100644
index 00000000..dfe43983
--- /dev/null
+++ b/src/KubeClient/Models/generated/VolumeAttributesClassV1Alpha1.cs
@@ -0,0 +1,44 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
+ ///
+ [KubeObject("VolumeAttributesClass", "storage.k8s.io/v1alpha1")]
+ [KubeApi(KubeAction.List, "apis/storage.k8s.io/v1alpha1/volumeattributesclasses")]
+ [KubeApi(KubeAction.Create, "apis/storage.k8s.io/v1alpha1/volumeattributesclasses")]
+ [KubeApi(KubeAction.Get, "apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}")]
+ [KubeApi(KubeAction.Update, "apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/storage.k8s.io/v1alpha1/volumeattributesclasses")]
+ [KubeApi(KubeAction.Watch, "apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses/{name}")]
+ public partial class VolumeAttributesClassV1Alpha1 : KubeResourceV1
+ {
+ ///
+ /// Name of the CSI driver This field is immutable.
+ ///
+ [YamlMember(Alias = "driverName")]
+ [JsonProperty("driverName", NullValueHandling = NullValueHandling.Include)]
+ public string DriverName { get; set; }
+
+ ///
+ /// parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.
+ ///
+ /// This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field.
+ ///
+ [YamlMember(Alias = "parameters")]
+ [JsonProperty("parameters", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary Parameters { get; } = new Dictionary();
+
+ ///
+ /// Determine whether the property should be serialised.
+ ///
+ public bool ShouldSerializeParameters() => Parameters.Count > 0;
+ }
+}
diff --git a/src/KubeClient/Models/generated/VolumeAttributesClassV1Beta1.cs b/src/KubeClient/Models/generated/VolumeAttributesClassV1Beta1.cs
new file mode 100644
index 00000000..0497a9e4
--- /dev/null
+++ b/src/KubeClient/Models/generated/VolumeAttributesClassV1Beta1.cs
@@ -0,0 +1,44 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using YamlDotNet.Serialization;
+
+namespace KubeClient.Models
+{
+ ///
+ /// VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.
+ ///
+ [KubeObject("VolumeAttributesClass", "storage.k8s.io/v1beta1")]
+ [KubeApi(KubeAction.List, "apis/storage.k8s.io/v1beta1/volumeattributesclasses")]
+ [KubeApi(KubeAction.Create, "apis/storage.k8s.io/v1beta1/volumeattributesclasses")]
+ [KubeApi(KubeAction.Get, "apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}")]
+ [KubeApi(KubeAction.Patch, "apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}")]
+ [KubeApi(KubeAction.Delete, "apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}")]
+ [KubeApi(KubeAction.Update, "apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}")]
+ [KubeApi(KubeAction.WatchList, "apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses")]
+ [KubeApi(KubeAction.DeleteCollection, "apis/storage.k8s.io/v1beta1/volumeattributesclasses")]
+ [KubeApi(KubeAction.Watch, "apis/storage.k8s.io/v1beta1/watch/volumeattributesclasses/{name}")]
+ public partial class VolumeAttributesClassV1Beta1 : KubeResourceV1
+ {
+ ///
+ /// Name of the CSI driver This field is immutable.
+ ///
+ [YamlMember(Alias = "driverName")]
+ [JsonProperty("driverName", NullValueHandling = NullValueHandling.Include)]
+ public string DriverName { get; set; }
+
+ ///
+ /// parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.
+ ///
+ /// This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an "Infeasible" state in the modifyVolumeStatus field.
+ ///
+ [YamlMember(Alias = "parameters")]
+ [JsonProperty("parameters", ObjectCreationHandling = ObjectCreationHandling.Reuse)]
+ public Dictionary Parameters { get; } = new Dictionary();
+
+ ///