Files
csharp/src/KubernetesClient.Aot/KubeConfigModels/ExternalExecution.cs
Boshi Lian 00c4c6f4ab add KubernetesClient.Aot to support Aot (#1498)
* init aot

* fix ca2007

* xUnit1031

* fix ca2007

* fix ca2007

* remove deprecated ctor

* fix xUnit1031

* fix missing doc

* fix missing dispose

* wait for warnings fix

* fix space

* move aot code to dedicated proj

* Remove commented out code

* eliminate know warnings

* add e2e test for aot

* rever on field convert annotation

* add e2e aot gh

* Add KubernetesClient.Aot project reference

* move CA1812 rule violation to file
2024-01-29 13:58:22 -08:00

43 lines
1.4 KiB
C#

using YamlDotNet.Serialization;
namespace k8s.KubeConfigModels
{
[YamlSerializable]
public class ExternalExecution
{
[YamlMember(Alias = "apiVersion")]
public string ApiVersion { get; set; }
/// <summary>
/// The command to execute. Required.
/// </summary>
[YamlMember(Alias = "command")]
public string Command { get; set; }
/// <summary>
/// Environment variables to set when executing the plugin. Optional.
/// </summary>
[YamlMember(Alias = "env")]
public IList<Dictionary<string, string>> EnvironmentVariables { get; set; }
/// <summary>
/// Arguments to pass when executing the plugin. Optional.
/// </summary>
[YamlMember(Alias = "args")]
public IList<string> Arguments { get; set; }
/// <summary>
/// Text shown to the user when the executable doesn't seem to be present. Optional.
/// </summary>
[YamlMember(Alias = "installHint")]
public string InstallHint { get; set; }
/// <summary>
/// Whether or not to provide cluster information to this exec plugin as a part of
/// the KUBERNETES_EXEC_INFO environment variable. Optional.
/// </summary>
[YamlMember(Alias = "provideClusterInfo")]
public bool ProvideClusterInfo { get; set; }
}
}