Skip to content

Commit

Permalink
chore: update part of the work api ReadOnly comment to clarify it's s…
Browse files Browse the repository at this point in the history
…till possible to use status feedback (open-cluster-management-io#338)

Signed-off-by: Mike Ng <[email protected]>
  • Loading branch information
mikeshng authored Jun 27, 2024
1 parent 05dd01d commit bd6f222
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ spec:
ServerSideApply type means to update resource using server side apply with work-controller as the field manager.
If there is conflict, the related Applied condition of manifest will be in the status of False with the
reason of ApplyConflict.
ReadOnly type means the agent will only check the existence of the resource based on its metadata.
ReadOnly type means the agent will only check the existence of the resource based on its metadata,
statusFeedBackRules can still be used to get feedbackResults.
enum:
- Update
- CreateOnly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ spec:
ServerSideApply type means to update resource using server side apply with work-controller as the field manager.
If there is conflict, the related Applied condition of manifest will be in the status of False with the
reason of ApplyConflict.
ReadOnly type means the agent will only check the existence of the resource based on its metadata.
ReadOnly type means the agent will only check the existence of the resource based on its metadata,
statusFeedBackRules can still be used to get feedbackResults.
enum:
- Update
- CreateOnly
Expand Down
3 changes: 2 additions & 1 deletion work/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ type UpdateStrategy struct {
// ServerSideApply type means to update resource using server side apply with work-controller as the field manager.
// If there is conflict, the related Applied condition of manifest will be in the status of False with the
// reason of ApplyConflict.
// ReadOnly type means the agent will only check the existence of the resource based on its metadata.
// ReadOnly type means the agent will only check the existence of the resource based on its metadata,
// statusFeedBackRules can still be used to get feedbackResults.
// +kubebuilder:default=Update
// +kubebuilder:validation:Enum=Update;CreateOnly;ServerSideApply;ReadOnly
// +kubebuilder:validation:Required
Expand Down
2 changes: 1 addition & 1 deletion work/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ spec:
ServerSideApply type means to update resource using server side apply with work-controller as the field manager.
If there is conflict, the related Applied condition of manifest will be in the status of False with the
reason of ApplyConflict.
ReadOnly type means the agent will only check the existence of the resource based on its metadata.
ReadOnly type means the agent will only check the existence of the resource based on its metadata,
statusFeedBackRules can still be used to get feedbackResults.
enum:
- Update
- CreateOnly
Expand Down

0 comments on commit bd6f222

Please sign in to comment.