cluster-api-provider-aws
cluster-api-provider-aws copied to clipboard
Resources should define a `.status.observedGeneration` field, and controllers should update its value
trafficstars
/kind feature
Describe the solution you'd like
I update the .spec of a custom resource whose .status is written by a CAPA controller. For example, the AWSManagedControlPlane resource.
I expect the controller to set the .status.observedGeneration field when the controller reconciles the resource.
I need to compare .status.observedGeneration with .metadata.generation to know whether the .status reflects the current, or an outdated .spec.
Anything else you would like to add:
The EKSConfig resource defines a status.observedGeneration, and the EKSConfig controller sets the field. No other CAPA resource does.
Environment:
- Cluster-api-provider-aws version:
- Kubernetes version: (use
kubectl version): - OS (e.g. from
/etc/os-release):