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
Copy file name to clipboardExpand all lines: apis/v1alpha2/nginxproxy_types.go
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -477,8 +477,7 @@ type DaemonSetSpec struct {
477
477
478
478
// HPASpec is the configuration for the Horizontal Pod Autoscaling.
479
479
//
480
-
// +kubebuilder:validation:XValidation:message="at least one metric must be specified when autoscaling is enabled",rule="!self.enable || (has(self.targetCPUUtilizationPercentage) || has(self.targetMemoryUtilizationPercentage) || (has(self.autoscalingTemplate) && size(self.autoscalingTemplate) > 0))"
481
-
// +kubebuilder:validation:XValidation:message="minReplicas must be less than or equal to maxReplicas",rule="self.minReplicas <= self.maxReplicas"
480
+
// +kubebuilder:validation:XValidation:message="minReplicas must be less than or equal to maxReplicas",rule="(!has(self.minReplicas)) || (self.minReplicas <= self.maxReplicas)"
482
481
//
483
482
//nolint:lll
484
483
typeHPASpecstruct {
@@ -509,10 +508,10 @@ type HPASpec struct {
509
508
// +kubebuilder:validation:Minimum=1
510
509
MinReplicas*int32`json:"minReplicas,omitempty"`
511
510
512
-
// AutoscalingTemplate configures the additional scaling option.
0 commit comments