func (fas *FleetAutoscaler) Validate(causes []metav1.StatusCause) []metav1.StatusCause {
	switch fas.Spec.Policy.Type {
	case BufferPolicyType:
		causes = fas.Spec.Policy.Buffer.ValidateBufferPolicy(causes)

	case WebhookPolicyType:
		causes = fas.Spec.Policy.Webhook.ValidateWebhookPolicy(causes)
	}
	return causes
}
// Validate validates the FleetAutoscaler scaling settings
Validate validates the FleetAutoscaler scaling settings
// Validate validates the FleetAutoscaler scaling settings
func (fas *FleetAutoscaler) Validate(causes []metav1.StatusCause) []metav1.StatusCause {
	switch fas.Spec.Policy.Type {
	case BufferPolicyType:
		causes = fas.Spec.Policy.Buffer.ValidateBufferPolicy(causes)
	case WebhookPolicyType:
		causes = fas.Spec.Policy.Webhook.ValidateWebhookPolicy(causes)
	}
	return causes
}
func ( fas * FleetAutoscaler ) Validate ( causes [ ] metav1 . StatusCause ) [ ] metav1 . StatusCause { switch fas . Spec . Policy . Type { case BufferPolicyType : causes = fas . Spec . Policy . Buffer . ValidateBufferPolicy ( causes ) case WebhookPolicyType : causes = fas . Spec . Policy . Webhook . ValidateWebhookPolicy ( causes ) } return causes }
Validate validates the FleetAutoscaler scaling settings
Validate validates the FleetAutoscaler scaling settings