-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: updates status definition for apps
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 <nik@victoriametrics.com>
- Loading branch information
Showing
12 changed files
with
353 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.