Skip to content

AutoscalingGroup: cannot unset/ignore desiredCapacity #2309

Description

@aaronborden-rivianvw

What happened?

Similar to #477, but for ASGs. We have an external controller managing the ASG desiredCapacity and the default desiredCapacity of 1 conflicts with this.

How can we reproduce it?

  1. create an AutoscalingGroup with initProvider.desiredCapacity=0
apiVersion: autoscaling.aws.upbound.io/v1beta3
kind: AutoscalingGroup
spec:
  initProvider:
    desiredCapacity: 0
  1. wait for crossplane to reconcile

Expected behavior

The AutoscalingGroup has desired capacity 0

Actual behavior

The AutoscalingGroup has desired capacity 1

What environment did it happen in?

Crossplane version: 1.18.1
Kubernetes: 1.30
Kubernetes distribution: AWS EKS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions