cluster-api-provider-aws icon indicating copy to clipboard operation
cluster-api-provider-aws copied to clipboard

Resources should define a `.status.observedGeneration` field, and controllers should update its value

Open dlipovetsky opened this issue 3 years ago • 8 comments
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):

dlipovetsky avatar Oct 17 '22 22:10 dlipovetsky