Reuse const strings and expose PluralName (#811)

* Reuse const strings and expose PluralName

Both in ModelExtensions.cs

* Remove quotes
This commit is contained in:
stan-sz
2022-03-29 22:01:38 +02:00
committed by GitHub
parent 9e6e2f0baa
commit 93c50b4948

View File

@@ -1,17 +1,17 @@
// <auto-generated>
// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
namespace k8s.Models
{
{{#.}}
[KubernetesEntity(Group="{{GetGroup . }}", Kind="{{GetKind . }}", ApiVersion="{{GetApiVersion . }}", PluralName={{GetPlural .}})]
[KubernetesEntity(Group=KubeGroup, Kind=KubeKind, ApiVersion=KubeApiVersion, PluralName=KubePluralName)]
public partial class {{GetClassName . }} : {{GetInterfaceName . }}
{
public const string KubeApiVersion = "{{GetApiVersion . }}";
public const string KubeKind = "{{GetKind . }}";
public const string KubeGroup = "{{GetGroup . }}";
public const string KubePluralName = {{GetPlural . }};
}
{{/.}}