Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: updates status definition for apps #1166

Merged
merged 1 commit into from
Nov 20, 2024
Merged

api: updates status definition for apps #1166

merged 1 commit into from
Nov 20, 2024

Conversation

f41gh7
Copy link
Collaborator

@f41gh7 f41gh7 commented Nov 20, 2024

Previously, applications had different json tags for updataStatus fields. clusterStatus for VMCluster for instance. Print fields for status pointed to the different fields. There were unused fields at status definitions. Code was copy-pasted for status updates.

This commit addresses this issue with the following changes:

  • copy-pasted code replaced with generic implementation
  • after status patch, operator updates object version. This must resolve issues with conflicts during status update requests.
  • unused fields marked as deprecated an will be removed at upcoming releases
  • now all app components uses the same field updateStatus, that holds information about current app state
  • In addition new field observedGeneration was added, in the same way as it used at Kubernetes API. This change must help track CRD objects changes for 3rd party clients.

Related issue:

#1155

Previously, applications had different json tags for `updataStatus` fields.
clusterStatus for VMCluster for instance. Print fields for status pointed to the different fields.
There were unused fields at status definitions. Code was copy-pasted for status updates.

 This commit addresses this issue with the following changes:
* copy-pasted code replaced with generic implementation
* after status patch, operator updates object version. This must resolve issues with conflicts during status update requests.
* unused fields marked as deprecated an will be removed at upcoming releases
* now all app components uses the same field `updateStatus`, that holds information about current app state
* In addition new field `observedGeneration` was added, in the same way as it used at Kubernetes API. This change
 must help track CRD objects changes for 3rd party clients.

 Related issue:

#1155
Signed-off-by: f41gh7 <[email protected]>
@f41gh7 f41gh7 marked this pull request as ready for review November 20, 2024 16:48
@f41gh7 f41gh7 merged commit b3e19a2 into master Nov 20, 2024
4 checks passed
@f41gh7 f41gh7 deleted the gh-1155 branch November 20, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant