Reuse const strings and expose PluralName (#811)
* Reuse const strings and expose PluralName Both in ModelExtensions.cs * Remove quotes
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator
|
// 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
|
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||||
// regenerated.
|
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
namespace k8s.Models
|
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 partial class {{GetClassName . }} : {{GetInterfaceName . }}
|
||||||
{
|
{
|
||||||
public const string KubeApiVersion = "{{GetApiVersion . }}";
|
public const string KubeApiVersion = "{{GetApiVersion . }}";
|
||||||
public const string KubeKind = "{{GetKind . }}";
|
public const string KubeKind = "{{GetKind . }}";
|
||||||
public const string KubeGroup = "{{GetGroup . }}";
|
public const string KubeGroup = "{{GetGroup . }}";
|
||||||
|
public const string KubePluralName = {{GetPlural . }};
|
||||||
}
|
}
|
||||||
|
|
||||||
{{/.}}
|
{{/.}}
|
||||||
|
|||||||
Reference in New Issue
Block a user