Skip to content

Map computed properties from output shape to CRD's status #282

@kumargauravsharma

Description

@kumargauravsharma

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.

Metadata

Metadata

Labels

kind/enhancementCategorizes issue or PR as related to existing feature enhancements.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions