2018-09-27 10:50:39 -07:00
|
|
|
namespace k8s.KubeConfigModels
|
|
|
|
|
{
|
2020-03-17 09:48:23 -07:00
|
|
|
using System;
|
2018-09-27 10:50:39 -07:00
|
|
|
using YamlDotNet.Serialization;
|
2018-02-16 07:32:59 +01:00
|
|
|
|
2018-09-27 10:50:39 -07:00
|
|
|
/// <summary>
|
|
|
|
|
/// Relates nicknames to context information.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class Context
|
2018-02-16 07:32:59 +01:00
|
|
|
{
|
2018-09-27 10:50:39 -07:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the context information.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[YamlMember(Alias = "context")]
|
|
|
|
|
public ContextDetails ContextDetails { get; set; }
|
2018-02-16 07:32:59 +01:00
|
|
|
|
2018-09-27 10:50:39 -07:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the nickname for this context.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[YamlMember(Alias = "name")]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
2020-03-17 09:48:23 -07:00
|
|
|
[Obsolete("This property is not set by the YAML config. Use ContextDetails.Namespace instead.")]
|
2018-09-27 10:50:39 -07:00
|
|
|
[YamlMember(Alias = "namespace")]
|
|
|
|
|
public string Namespace { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|