You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[EntityScope(EntityScope.Namespaced)][KubernetesEntity(Group="multicluster.veccsolutions.io",ApiVersion="v1alpha",Kind="GSLB")]publicclassV1Gslb:CustomKubernetesEntity{publicV1Gslb(){Kind="GSLB";ApiVersion="multicluster.veccsolutions.io/v1alpha";}/// <summary>/// Reference to the ingress or service/// </summary>[Required]publicV1ObjectReferenceObjectReference{get;set;}=newV1ObjectReference();/// <summary>/// Hostnames to expose the ingress or service as/// </summary>[Required]publicstring[]Hostnames{get;set;}=Array.Empty<string>();/// <summary>/// External IP to return instead of what is in the ingress or service/// </summary>publicstring[]?IPOverrides{get;set;}/// <summary>/// Priority to assign this GSLB object. Highest priority is chosen first./// </summary>[Required][RangeMinimum(0)]publicintPriority{get;set;}=0;/// <summary>/// Weight to assign this GSLB object when doing round robin load balancing type. Defaults to 50./// The calculation to determine the final weighting of all objects is (weight / sum of all weights) * 100./// </summary>[Required][RangeMinimum(0)]publicintWeight{get;set;}=50;publicclassV1ObjectReference{[Required][Length(minLength:1)]publicstringName{get;set;}=string.Empty;[Required]publicReferenceTypeKind{get;set;}publicenumReferenceType{Ingress,Service}}}
Describe the bug
When using the
Length
attribute and only specifying the min length, like this[Length(minLength: 1)]
, the resulting generated CRD has this in it:To reproduce
Use
dotnet kubeops g op test
Generates this CRD
Expected behavior
The CRD wouldn't have
maxLength
in it.Screenshots
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: