feat(appset): deleting applications in order when Progressive sync enabled on applicationSet (#23465)

Signed-off-by: Kanika Rana <krana@redhat.com>
This commit is contained in:
Kanika Rana
2025-07-10 18:16:42 -04:00
committed by GitHub
parent a3eb4e722e
commit 79f152c1ba
13 changed files with 1048 additions and 780 deletions

View File

@@ -84,7 +84,9 @@ type ApplicationPreservedFields struct {
type ApplicationSetStrategy struct {
Type string `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"`
RollingSync *ApplicationSetRolloutStrategy `json:"rollingSync,omitempty" protobuf:"bytes,2,opt,name=rollingSync"`
// RollingUpdate *ApplicationSetRolloutStrategy `json:"rollingUpdate,omitempty" protobuf:"bytes,3,opt,name=rollingUpdate"`
// DeletionOrder allows specifying the order for deleting generated apps when progressive sync is enabled.
// accepts values "AllAtOnce" and "Reverse"
DeletionOrder string `json:"deletionOrder,omitempty" protobuf:"bytes,3,opt,name=deletionOrder"`
}
type ApplicationSetRolloutStrategy struct {
Steps []ApplicationSetRolloutStep `json:"steps,omitempty" protobuf:"bytes,1,opt,name=steps"`

File diff suppressed because it is too large Load Diff

View File

@@ -376,6 +376,10 @@ message ApplicationSetStrategy {
optional string type = 1;
optional ApplicationSetRolloutStrategy rollingSync = 2;
// DeletionOrder allows specifying the order for deleting generated apps when progressive sync is enabled.
// accepts values "AllAtOnce" and "Reverse"
optional string deletionOrder = 3;
}
// ApplicationSetSyncPolicy configures how generated Applications will relate to their