Skip to content

Commit

Permalink
fix: autoscaler enabled detection (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov authored Nov 14, 2024
1 parent e65ba0c commit 474a2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/generic_service_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (h *genericServiceHandler) createOrUpdate(ctx context.Context, avn *aiven.C
}

diskSpace := v1alpha1.ConvertDiskSpace(o.getDiskSpace())
if diskSpace > 0 {
if diskSpace > 0 && exists {
for _, v := range oldService.ServiceIntegrations {
if v.IntegrationType == service.IntegrationTypeAutoscaler {
return fmt.Errorf("cannot set disk space for service with autoscaler integration enabled")
Expand Down

0 comments on commit 474a2c6

Please sign in to comment.