Implement IMetadata interface (#998)
* V1PodTemplateSpec implements IMetadata interface This will allow using the ModelExteions methods over V1PodTemplateSpec * Typo
This commit is contained in:
@@ -21,7 +21,7 @@ namespace customResource
|
|||||||
public string Namespace { get; set; }
|
public string Namespace { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract class CustomResource : KubernetesObject
|
public abstract class CustomResource : KubernetesObject, IMetadata<V1ObjectMeta>
|
||||||
{
|
{
|
||||||
[JsonPropertyName("metadata")]
|
[JsonPropertyName("metadata")]
|
||||||
public V1ObjectMeta Metadata { get; set; }
|
public V1ObjectMeta Metadata { get; set; }
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ namespace k8s.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Describes the resource usage metrics of a node pull from metrics server API.
|
/// Describes the resource usage metrics of a node pull from metrics server API.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class NodeMetrics
|
public class NodeMetrics : IMetadata<V1ObjectMeta>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The kubernetes standard object's metadata.
|
/// The kubernetes standard object's metadata.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace k8s.Models
|
namespace k8s.Models
|
||||||
{
|
{
|
||||||
public class NodeMetricsList
|
public class NodeMetricsList : IMetadata<V1ObjectMeta>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Defines the versioned schema of this representation of an object.
|
/// Defines the versioned schema of this representation of an object.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ namespace k8s.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Describes the resource usage metrics of a pod pull from metrics server API.
|
/// Describes the resource usage metrics of a pod pull from metrics server API.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class PodMetrics
|
public class PodMetrics : IMetadata<V1ObjectMeta>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The kubernetes standard object's metadata.
|
/// The kubernetes standard object's metadata.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace k8s.Models
|
namespace k8s.Models
|
||||||
{
|
{
|
||||||
public class PodMetricsList
|
public class PodMetricsList : IMetadata<V1ObjectMeta>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Defines the versioned schema of this representation of an object.
|
/// Defines the versioned schema of this representation of an object.
|
||||||
|
|||||||
10
src/KubernetesClient.Models/V1PodTemplateSpec.cs
Normal file
10
src/KubernetesClient.Models/V1PodTemplateSpec.cs
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
namespace k8s.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Partial implementation of the IMetadata interface
|
||||||
|
/// to open this class up to ModelExtensions methods
|
||||||
|
/// </summary>
|
||||||
|
public partial class V1PodTemplateSpec : IMetadata<V1ObjectMeta>
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user