-
Notifications
You must be signed in to change notification settings - Fork 271
Description
Is your feature request related to a problem?
While populating CRD's status field for ReplicationGroup output shape, the properties like ReplicasPerNodeGroup are not populated/computed. It can be computed using Status.NodeGroups from output shape.
And as the GoCodeSetOutput logic copies the r.ko (desired state) into returned value ko
// Merge in the information we read from the API call above to the copy of
// the original Kubernetes object we passed to the function
ko := r.ko.DeepCopy()
the reconciler fails to identify change in such properties when applied using kubectl apply -f updated_resource.yaml
and no update call is made.
Describe the solution you'd like
Enhance generator.yaml to specify the mapping of output shape properties to CRD's status properties or allowing custom code invocation during GoCodeSetOutput to help services implement the custom logic for such scenarios.
Describe alternatives you've considered
A description of any alternative solutions or features you've considered.